NVIDIAGameWorks/kaolin

Error during Windows setup

bruno1308 opened this issue · 1 comments

Git branch: v0.12.0
Cuda version: 11.7
Driver Version: 516.94
GPU: NVIDIA 3080
Python: 3.9.13
MSVC: v142 (2019)
PyTorch: 1.12.1

I followed the installation notes, ran this command:
$ pip install torch==1.12.1 torchvision==0.13.1 torchaudio==0.12.1 --extra-index-url https://download.pytorch.org/whl/cu113

Then, after I run
python setup.py develop

I get this error:

"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.7\bin\nvcc" -c kaolin/csrc\ops\mesh\mesh_intersection_cuda.cu -o (...)
C:/Users/bfl/Anaconda3/lib/site-packages/torch/include\c10/macros/Macros.h(143): warning C4067: unexpected tokens following preprocessor directive - expected a newline
C:/Users/bfl/Anaconda3/lib/site-packages/torch/include\c10/core/SymInt.h(84): warning #68-D: integer conversion resulted in a change of sign

C:\Users\bfl\Documents\kaolin\kaolin\csrc\ops\mesh\mesh_intersection_cuda.cu(154): error: expected a ")"
          detected during instantiation of "void kaolin::unbatched_mesh_intersection_cuda_kernel<shm_batch_size,scalar_t,vec2_t,vec3_t>(int, const scalar_t *, int, const scalar_t *, const scalar_t *, const scalar_t *, scalar_t *) [with shm_batch_size=512, scalar_t=float, vec2_t=float2, vec3_t=float3]"
(230): here

C:\Users\bfl\Documents\kaolin\kaolin\csrc\ops\mesh\mesh_intersection_cuda.cu(154): error: expected a ")"
          detected during instantiation of "void kaolin::unbatched_mesh_intersection_cuda_kernel<shm_batch_size,scalar_t,vec2_t,vec3_t>(int, const scalar_t *, int, const scalar_t *, const scalar_t *, const scalar_t *, scalar_t *) [with shm_batch_size=512, scalar_t=double, vec2_t=double2, vec3_t=double3]"
(230): here

2 errors detected in the compilation of "kaolin/csrc/ops/mesh/mesh_intersection_cuda.cu".
error: command 'C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v11.7\\bin\\nvcc.exe' failed with exit code 1

Any ideas here? Happy to provide more info :)

Apparently commit 9085d14 fixed it, so I moved from v0.12.0 to master and it worked.