NVlabs/tiny-cuda-nn

python setup.py install raise error

gabiwz opened this issue · 4 comments

windows10
cuda 11.7
visual studio 2022
python 3.10.13

Because run pip install git+https://github.com/NVlabs/tiny-cuda-nn/#subdirectory=bindings/torch failed .

So I download the tiny-cuda-nn code on local.

Compile tiny-cuda-nn is successfull.

When runpython setup.py install on dir bindings/torch raise error:


e:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.38.33130/include\type_traits(1965): error: class template "std::_Function_args" has already been defined

e:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.38.33130/include\type_traits(1965): error: class template "std::_Function_args" has already been defined

e:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.38.33130/include\type_traits(1965): error: class template "std::_Function_args" has already been defined

e:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.38.33130/include\type_traits(1965): error: class template "std::_Function_args" has already been defined

Error limit reached.
100 errors detected in the compilation of "../../src/common_host.cu".
Compilation terminated.
error: command 'E:\\Program Files\\cuda\\11.7d\\bin\\nvcc.exe' failed with exit code 1

windows10 cuda 11.7 visual studio 2022 python 3.10.13

Because run pip install git+https://github.com/NVlabs/tiny-cuda-nn/#subdirectory=bindings/torch failed .

So I download the tiny-cuda-nn code on local.

Compile tiny-cuda-nn is successfull.

When runpython setup.py install on dir bindings/torch raise error:


e:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.38.33130/include\type_traits(1965): error: class template "std::_Function_args" has already been defined

e:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.38.33130/include\type_traits(1965): error: class template "std::_Function_args" has already been defined

e:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.38.33130/include\type_traits(1965): error: class template "std::_Function_args" has already been defined

e:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.38.33130/include\type_traits(1965): error: class template "std::_Function_args" has already been defined

Error limit reached.
100 errors detected in the compilation of "../../src/common_host.cu".
Compilation terminated.
error: command 'E:\\Program Files\\cuda\\11.7d\\bin\\nvcc.exe' failed with exit code 1

Hey! Have you solved the problem? I met the same error and cannot solve it. Could you please give me some advice?

windows10 cuda 11.7 visual studio 2022 python 3.10.13
Because run pip install git+https://github.com/NVlabs/tiny-cuda-nn/#subdirectory=bindings/torch failed .
So I download the tiny-cuda-nn code on local.
Compile tiny-cuda-nn is successfull.
When runpython setup.py install on dir bindings/torch raise error:


e:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.38.33130/include\type_traits(1965): error: class template "std::_Function_args" has already been defined

e:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.38.33130/include\type_traits(1965): error: class template "std::_Function_args" has already been defined

e:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.38.33130/include\type_traits(1965): error: class template "std::_Function_args" has already been defined

e:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.38.33130/include\type_traits(1965): error: class template "std::_Function_args" has already been defined

Error limit reached.
100 errors detected in the compilation of "../../src/common_host.cu".
Compilation terminated.
error: command 'E:\\Program Files\\cuda\\11.7d\\bin\\nvcc.exe' failed with exit code 1

Hey! Have you solved the problem? I met the same error and cannot solve it. Could you please give me some advice?

Metoo/(ㄒoㄒ)/~~

me too

Anyone Solved this issue?