Skip to content

Windows running issue: broken bundled slangc.exe binary and missing compiler location #31

Open
@sleeplessai

Description

@sleeplessai

Traceback (most recent call last):
File "D:\slang-torch-main\examples\inline-mlp-example\mlp_image_fit.py", line 8, in
from image_model import RenderImage
File "D:\slang-torch-main\examples\inline-mlp-example\image_model.py", line 19, in
m = slangtorch.loadModule('image-model.slang',
File "C:\miniconda3\envs\inr\lib\site-packages\slangtorch\slangtorch.py", line 685, in loadModule
rawModule = _loadModule(fileName, moduleName, buildDir, options, sourceDir=outputFolder, verbose=verbose, includePaths=includePaths, dryRun=False, skipNinjaCheck=skipNinjaCheck, extraCudaFlags=extraCudaFlags, extraSlangFlags=extraSlangFlags)
File "C:\miniconda3\envs\inr\lib\site-packages\slangtorch\slangtorch.py", line 563, in _loadModule
resultCpp, metadataCpp = compileSlang(metadata.get("cpp", None), fileName, "torch-binding", options, cppOutName, verbose, includePaths=includePaths, dryRun=dryRun, extraSlangFlags=extraSlangFlags)
File "C:\miniconda3\envs\inr\lib\site-packages\slangtorch\slangtorch.py", line 313, in compileSlang
return True, (_compileSlang(metadata, fileName, targetMode, options, outputFile, includePaths, verbose, extraSlangFlags) if not dryRun else None)
File "C:\miniconda3\envs\inr\lib\site-packages\slangtorch\slangtorch.py", line 342, in _compileSlang
raise RuntimeError(f"Compilation failed with error {result.returncode}")
RuntimeError: Compilation failed with error 3221226505

Try runing examples on Windows with native pytorch package.
My pytorch version is 2.1.2cu118 with nvcc compiler 11.8.
Another success try is on Linux with pytorch 2.6.0cu124 with nvcc compiler 12.4.
How to fix this error? Does slangtorch only support for Linux or latest nvcc compiler?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions