-
Notifications
You must be signed in to change notification settings - Fork 365
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nvcc error when complie spconv #21
Comments
same |
@GIMPS I need to know your environment information to solve this problem: |
Thank you for replying. Excuse me for following up under open issues since I am still browsing through all issues for a solution. |
I meet the same problem, and I make it success by simply add one line in the Cmakelist.txt Hope it helps |
I am facing the same exact issue and unable to resolve by adding this line set(CMAKE_CUDA_COMPILER "/usr/local/cuda/bin/nvcc") in CMakeLists.txt Could you please help me if its the right approach or if I have to try any other thing?
|
@vetsasai could you able to resolve this issue finally? I have the same problem now. |
@madanmch that issue wasn't resolved. I tried with different CUDA version and it seemed to work but I faced some other errors after that. So we changed our approach which doesn't involve spconv. Try using compatible CUDA/UBUNTU versions. |
i has meet the same problem, but failed by trying |
(python3.6) linux@linux-System-Product-Name:~/spconv$ python setup.py bdist_wheel
running bdist_wheel
running build
running build_py
running build_ext
/home/linux/spconv/build/lib.linux-x86_64-3.6
Release
-- The CUDA compiler identification is unknown
-- Check for working CUDA compiler: /usr/bin/nvcc
-- Check for working CUDA compiler: /usr/bin/nvcc -- broken
CMake Error at /usr/local/share/cmake-3.13/Modules/CMakeTestCUDACompiler.cmake:46 (message):
The CUDA compiler
is not able to compile a simple test program.
It fails with the following output:
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:2 (project)
-- Configuring incomplete, errors occurred!
See also "/home/linux/spconv/build/temp.linux-x86_64-3.6/CMakeFiles/CMakeOutput.log".
See also "/home/linux/spconv/build/temp.linux-x86_64-3.6/CMakeFiles/CMakeError.log".
Traceback (most recent call last):
File "setup.py", line 86, in
zip_safe=False,
File "/home/linux/anaconda3/envs/python3.6/lib/python3.6/site-packages/setuptools/init.py", line 145, in setup
return distutils.core.setup(**attrs)
File "/home/linux/anaconda3/envs/python3.6/lib/python3.6/distutils/core.py", line 148, in setup
dist.run_commands()
File "/home/linux/anaconda3/envs/python3.6/lib/python3.6/distutils/dist.py", line 955, in run_commands
self.run_command(cmd)
File "/home/linux/anaconda3/envs/python3.6/lib/python3.6/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "/home/linux/anaconda3/envs/python3.6/lib/python3.6/site-packages/wheel/bdist_wheel.py", line 188, in run
self.run_command('build')
File "/home/linux/anaconda3/envs/python3.6/lib/python3.6/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/home/linux/anaconda3/envs/python3.6/lib/python3.6/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "/home/linux/anaconda3/envs/python3.6/lib/python3.6/distutils/command/build.py", line 135, in run
self.run_command(cmd_name)
File "/home/linux/anaconda3/envs/python3.6/lib/python3.6/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/home/linux/anaconda3/envs/python3.6/lib/python3.6/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "setup.py", line 39, in run
self.build_extension(ext)
File "setup.py", line 69, in build_extension
subprocess.check_call(['cmake', ext.sourcedir] + cmake_args, cwd=self.build_temp, env=env)
File "/home/linux/anaconda3/envs/python3.6/lib/python3.6/subprocess.py", line 311, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['cmake', '/home/linux/spconv', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/home/linux/spconv/build/lib.linux-x86_64-3.6/spconv', '-DCMAKE_PREFIX_PATH=/home/linux/anaconda3/envs/python3.6/lib/python3.6/site-packages/torch', '-DPYBIND11_PYTHON_VERSION=3.6', '-DSPCONV_BuildTests=OFF', '-DCMAKE_CUDA_FLAGS="--expt-relaxed-constexpr"', '-DCMAKE_BUILD_TYPE=Release']' returned non-zero exit status 1.
The text was updated successfully, but these errors were encountered: