/home/exouser/.conda/envs/cf/lib/python3.8/site-packages/encoding/lib/gpu/rectify_cuda.cu(114): error: type name is not allowed
/home/exouser/.conda/envs/cf/lib/python3.8/site-packages/encoding/lib/gpu/rectify_cuda.cu(114): error: type name is not allowed
/home/exouser/.conda/envs/cf/lib/python3.8/site-packages/encoding/lib/gpu/rectify_cuda.cu(114): error: the global scope has no "to"
4 errors detected in the compilation of "/home/exouser/.conda/envs/cf/lib/python3.8/site-packages/encoding/lib/gpu/rectify_cuda.cu".
ninja: build stopped: subcommand failed.
Hi I'm running a model(https://github.com/ashawkey/torch-ngp/issues) and after running this line(python train.py dataset_path=nyu.r3d) I'm getting these errors:
raise RuntimeError(message) from e RuntimeError: Error building extension 'enclib_gpu': [1/3] /home/exouser/.conda/envs/cf/bin/nvcc -DTORCH_EXTENSION_NAME=enclib_gpu -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_gcc\" -DPYBIND11_STDLIB=\"_libstdcpp\" -DPYBIND11_BUILD_ABI=\"_cxxabi1011\" -isystem /home/exouser/.conda/envs/cf/lib/python3.8/site-packages/torch/include -isystem /home/exouser/.conda/envs/cf/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -isystem /home/exouser/.conda/envs/cf/lib/python3.8/site-packages/torch/include/TH -isystem /home/exouser/.conda/envs/cf/lib/python3.8/site-packages/torch/include/THC -isystem /home/exouser/.conda/envs/cf/include -isystem /home/exouser/.conda/envs/cf/include/python3.8 -D_GLIBCXX_USE_CXX11_ABI=0 -DCUDA_NO_HALF_OPERATORS -DCUDA_NO_HALF_CONVERSIONS -DCUDA_NO_BFLOAT16_CONVERSIONS -DCUDA_NO_HALF2_OPERATORS --expt-relaxed-constexpr -gencode=arch=compute_80,code=compute_80 -gencode=arch=compute_80,code=sm_80 --compiler-options '-fPIC' --expt-extended-lambda -std=c++14 -c /home/exouser/.conda/envs/cf/lib/python3.8/site-packages/encoding/lib/gpu/lib_ssd.cu -o lib_ssd.cuda.o FAILED: lib_ssd.cuda.o /home/exouser/.conda/envs/cf/bin/nvcc -DTORCH_EXTENSION_NAME=enclib_gpu -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_gcc\" -DPYBIND11_STDLIB=\"_libstdcpp\" -DPYBIND11_BUILD_ABI=\"_cxxabi1011\" -isystem /home/exouser/.conda/envs/cf/lib/python3.8/site-packages/torch/include -isystem /home/exouser/.conda/envs/cf/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -isystem /home/exouser/.conda/envs/cf/lib/python3.8/site-packages/torch/include/TH -isystem /home/exouser/.conda/envs/cf/lib/python3.8/site-packages/torch/include/THC -isystem /home/exouser/.conda/envs/cf/include -isystem /home/exouser/.conda/envs/cf/include/python3.8 -D_GLIBCXX_USE_CXX11_ABI=0 -DCUDA_NO_HALF_OPERATORS -DCUDA_NO_HALF_CONVERSIONS -DCUDA_NO_BFLOAT16_CONVERSIONS -DCUDA_NO_HALF2_OPERATORS --expt-relaxed-constexpr -gencode=arch=compute_80,code=compute_80 -gencode=arch=compute_80,code=sm_80 --compiler-options '-fPIC' --expt-extended-lambda -std=c++14 -c /home/exouser/.conda/envs/cf/lib/python3.8/site-packages/encoding/lib/gpu/lib_ssd.cu -o lib_ssd.cuda.o /home/exouser/.conda/envs/cf/lib/python3.8/site-packages/encoding/lib/gpu/lib_ssd.cu:22:10: fatal error: THC/THCNumerics.cuh: No such file or directory 22 | #include <THC/THCNumerics.cuh> | ^
~~~~compilation terminated. [2/3] /home/exouser/.conda/envs/cf/bin/nvcc -DTORCH_EXTENSION_NAME=enclib_gpu -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_gcc\" -DPYBIND11_STDLIB=\"_libstdcpp\" -DPYBIND11_BUILD_ABI=\"_cxxabi1011\" -isystem /home/exouser/.conda/envs/cf/lib/python3.8/site-packages/torch/include -isystem /home/exouser/.conda/envs/cf/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -isystem /home/exouser/.conda/envs/cf/lib/python3.8/site-packages/torch/include/TH -isystem /home/exouser/.conda/envs/cf/lib/python3.8/site-packages/torch/include/THC -isystem /home/exouser/.conda/envs/cf/include -isystem /home/exouser/.conda/envs/cf/include/python3.8 -D_GLIBCXX_USE_CXX11_ABI=0 -DCUDA_NO_HALF_OPERATORS -DCUDA_NO_HALF_CONVERSIONS -DCUDA_NO_BFLOAT16_CONVERSIONS -DCUDA_NO_HALF2_OPERATORS --expt-relaxed-constexpr -gencode=arch=compute_80,code=compute_80 -gencode=arch=compute_80,code=sm_80 --compiler-options '-fPIC' --expt-extended-lambda -std=c++14 -c /home/exouser/.conda/envs/cf/lib/python3.8/site-packages/encoding/lib/gpu/rectify_cuda.cu -o rectify_cuda.cuda.o FAILED: rectify_cuda.cuda.o /home/exouser/.conda/envs/cf/bin/nvcc -DTORCH_EXTENSION_NAME=enclib_gpu -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_gcc\" -DPYBIND11_STDLIB=\"_libstdcpp\" -DPYBIND11_BUILD_ABI=\"_cxxabi1011\" -isystem /home/exouser/.conda/envs/cf/lib/python3.8/site-packages/torch/include -isystem /home/exouser/.conda/envs/cf/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -isystem /home/exouser/.conda/envs/cf/lib/python3.8/site-packages/torch/include/TH -isystem /home/exouser/.conda/envs/cf/lib/python3.8/site-packages/torch/include/THC -isystem /home/exouser/.conda/envs/cf/include -isystem /home/exouser/.conda/envs/cf/include/python3.8 -D_GLIBCXX_USE_CXX11_ABI=0 -DCUDA_NO_HALF_OPERATORS -DCUDA_NO_HALF_CONVERSIONS -DCUDA_NO_BFLOAT16_CONVERSIONS -DCUDA_NO_HALF2_OPERATORS --expt-relaxed-constexpr -gencode=arch=compute_80,code=compute_80 -gencode=arch=compute_80,code=sm_80 --compiler-options '-fPIC' --expt-extended-lambda -std=c++14 -c /home/exouser/.conda/envs/cf/lib/python3.8/site-packages/encoding/lib/gpu/rectify_cuda.cu -o rectify_cuda.cuda.o /home/exouser/.conda/envs/cf/lib/python3.8/site-packages/encoding/lib/gpu/rectify_cuda.cu(114): error: identifier "ScalarConvert" is undefined/home/exouser/.conda/envs/cf/lib/python3.8/site-packages/encoding/lib/gpu/rectify_cuda.cu(114): error: type name is not allowed
/home/exouser/.conda/envs/cf/lib/python3.8/site-packages/encoding/lib/gpu/rectify_cuda.cu(114): error: type name is not allowed
/home/exouser/.conda/envs/cf/lib/python3.8/site-packages/encoding/lib/gpu/rectify_cuda.cu(114): error: the global scope has no "to"
4 errors detected in the compilation of "/home/exouser/.conda/envs/cf/lib/python3.8/site-packages/encoding/lib/gpu/rectify_cuda.cu". ninja: build stopped: subcommand failed.
Can you please help me with this?