22222222222222222

2023-12-13 04:38:13

-- The CXX compiler identification is GNU 7.5.0
CMake Error at /home/ubuntu/anaconda3/envs/second/lib/python3.7/site-packages/cmake/data/share/cmake-3.27/Modules/CMakeDetermineCompilerId.cmake:753 (message):
? Compiling the CUDA compiler identification source file
? "CMakeCUDACompilerId.cu" failed.

? Compiler: /usr/bin/nvcc

? Build flags:
? --expt-relaxed-constexpr;-D__CUDA_NO_HALF_OPERATORS__;-D__CUDA_NO_HALF_CONVERSIONS__


? Id flags: --keep;--keep-dir;tmp -v

? The output was:

? 255

? #$ _SPACE_=

? #$ _CUDART_=cudart

? #$ _HERE_=/usr/lib/nvidia-cuda-toolkit/bin

? #$ _THERE_=/usr/lib/nvidia-cuda-toolkit/bin

? #$ _TARGET_SIZE_=

? #$ _TARGET_DIR_=

? #$ _TARGET_SIZE_=64

? #$ NVVMIR_LIBRARY_DIR=/usr/lib/nvidia-cuda-toolkit/libdevice

? #$
? PATH=/usr/lib/nvidia-cuda-toolkit/bin:/usr/local/cuda-11.3/bin:/home/ubuntu/anaconda3/envs/second/bin:/home/ubuntu/anaconda3/condabin:/home/ubuntu/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin


? #$ LIBRARIES= -L/usr/lib/x86_64-linux-gnu/stubs

? #$ rm tmp/a_dlink.reg.c

? #$ gcc -std=c++14 -D__CUDA_ARCH__=300 -E -x c++
? -DCUDA_DOUBLE_MATH_FUNCTIONS -D__CUDACC__ -D__NVCC__
? -D__CUDACC_RELAXED_CONSTEXPR__ -D"__CUDACC_VER_BUILD__=85"
? -D"__CUDACC_VER_MINOR__=1" -D"__CUDACC_VER_MAJOR__=9"
? -D"__CUDA_NO_HALF_OPERATORS__" -D"__CUDA_NO_HALF_CONVERSIONS__" -include
? "cuda_runtime.h" -m64 "CMakeCUDACompilerId.cu" >
? "tmp/CMakeCUDACompilerId.cpp1.ii"

? #$ cicc --c++14 --gnu_version=70500 --allow_managed --relaxed_constexpr
? -arch compute_30 -m64 -ftz=0 -prec_div=1 -prec_sqrt=1 -fmad=1
? --include_file_name "CMakeCUDACompilerId.fatbin.c" -tused -nvvmir-library
? "/usr/lib/nvidia-cuda-toolkit/libdevice/libdevice.10.bc"
? --gen_module_id_file --module_id_file_name
? "tmp/CMakeCUDACompilerId.module_id" --orig_src_file_name
? "CMakeCUDACompilerId.cu" --gen_c_file_name
? "tmp/CMakeCUDACompilerId.cudafe1.c" --stub_file_name
? "tmp/CMakeCUDACompilerId.cudafe1.stub.c" --gen_device_file_name
? "tmp/CMakeCUDACompilerId.cudafe1.gpu" "tmp/CMakeCUDACompilerId.cpp1.ii" -o
? "tmp/CMakeCUDACompilerId.ptx"

? #$ ptxas -arch=sm_30 -m64 "tmp/CMakeCUDACompilerId.ptx" -o
? "tmp/CMakeCUDACompilerId.sm_30.cubin"

? ptxas fatal : Value 'sm_30' is not defined for option 'gpu-name'

? # --error 0xff --

? Compiling the CUDA compiler identification source file
? "CMakeCUDACompilerId.cu" failed.

? Compiler: /usr/bin/nvcc

? Build flags:

? Id flags: --keep;--keep-dir;tmp -v

? The output was:

? 255

? #$ _SPACE_=

? #$ _CUDART_=cudart

? #$ _HERE_=/usr/lib/nvidia-cuda-toolkit/bin

? #$ _THERE_=/usr/lib/nvidia-cuda-toolkit/bin

? #$ _TARGET_SIZE_=

? #$ _TARGET_DIR_=

? #$ _TARGET_SIZE_=64

? #$ NVVMIR_LIBRARY_DIR=/usr/lib/nvidia-cuda-toolkit/libdevice

? #$
? PATH=/usr/lib/nvidia-cuda-toolkit/bin:/usr/local/cuda-11.3/bin:/home/ubuntu/anaconda3/envs/second/bin:/home/ubuntu/anaconda3/condabin:/home/ubuntu/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin


? #$ LIBRARIES= -L/usr/lib/x86_64-linux-gnu/stubs

? #$ rm tmp/a_dlink.reg.c

? #$ gcc -std=c++14 -D__CUDA_ARCH__=300 -E -x c++
? -DCUDA_DOUBLE_MATH_FUNCTIONS -D__CUDACC__ -D__NVCC__
? -D"__CUDACC_VER_BUILD__=85" -D"__CUDACC_VER_MINOR__=1"
? -D"__CUDACC_VER_MAJOR__=9" -include "cuda_runtime.h" -m64
? "CMakeCUDACompilerId.cu" > "tmp/CMakeCUDACompilerId.cpp1.ii"

? #$ cicc --c++14 --gnu_version=70500 --allow_managed -arch compute_30 -m64
? -ftz=0 -prec_div=1 -prec_sqrt=1 -fmad=1 --include_file_name
? "CMakeCUDACompilerId.fatbin.c" -tused -nvvmir-library
? "/usr/lib/nvidia-cuda-toolkit/libdevice/libdevice.10.bc"
? --gen_module_id_file --module_id_file_name
? "tmp/CMakeCUDACompilerId.module_id" --orig_src_file_name
? "CMakeCUDACompilerId.cu" --gen_c_file_name
? "tmp/CMakeCUDACompilerId.cudafe1.c" --stub_file_name
? "tmp/CMakeCUDACompilerId.cudafe1.stub.c" --gen_device_file_name
? "tmp/CMakeCUDACompilerId.cudafe1.gpu" "tmp/CMakeCUDACompilerId.cpp1.ii" -o
? "tmp/CMakeCUDACompilerId.ptx"

? #$ ptxas -arch=sm_30 -m64 "tmp/CMakeCUDACompilerId.ptx" -o
? "tmp/CMakeCUDACompilerId.sm_30.cubin"

? ptxas fatal : Value 'sm_30' is not defined for option 'gpu-name'

? # --error 0xff --

Call Stack (most recent call first):
? /home/ubuntu/anaconda3/envs/second/lib/python3.7/site-packages/cmake/data/share/cmake-3.27/Modules/CMakeDetermineCompilerId.cmake:8 (CMAKE_DETERMINE_COMPILER_ID_BUILD)
? /home/ubuntu/anaconda3/envs/second/lib/python3.7/site-packages/cmake/data/share/cmake-3.27/Modules/CMakeDetermineCompilerId.cmake:53 (__determine_compiler_id_test)
? /home/ubuntu/anaconda3/envs/second/lib/python3.7/site-packages/cmake/data/share/cmake-3.27/Modules/CMakeDetermineCUDACompiler.cmake:307 (CMAKE_DETERMINE_COMPILER_ID)
? CMakeLists.txt:6 (project)


-- Configuring incomplete, errors occurred!
Traceback (most recent call last):
? File "setup.py", line 108, in <module>
??? zip_safe=False,
? File "/home/ubuntu/.local/lib/python3.7/site-packages/setuptools/__init__.py", line 161, in setup
??? return distutils.core.setup(**attrs)
? File "/home/ubuntu/anaconda3/envs/second/lib/python3.7/distutils/core.py", line 148, in setup
??? dist.run_commands()
? File "/home/ubuntu/anaconda3/envs/second/lib/python3.7/distutils/dist.py", line 966, in run_commands
??? self.run_command(cmd)
? File "/home/ubuntu/anaconda3/envs/second/lib/python3.7/distutils/dist.py", line 985, in run_command
??? cmd_obj.run()
? File "/home/ubuntu/anaconda3/envs/second/lib/python3.7/site-packages/wheel/bdist_wheel.py", line 325, in run
??? self.run_command("build")
? File "/home/ubuntu/anaconda3/envs/second/lib/python3.7/distutils/cmd.py", line 313, in run_command
??? self.distribution.run_command(command)
? File "/home/ubuntu/anaconda3/envs/second/lib/python3.7/distutils/dist.py", line 985, in run_command
??? cmd_obj.run()
? File "/home/ubuntu/anaconda3/envs/second/lib/python3.7/distutils/command/build.py", line 135, in run
??? self.run_command(cmd_name)
? File "/home/ubuntu/anaconda3/envs/second/lib/python3.7/distutils/cmd.py", line 313, in run_command
??? self.distribution.run_command(command)
? File "/home/ubuntu/anaconda3/envs/second/lib/python3.7/distutils/dist.py", line 985, in run_command
??? cmd_obj.run()
? File "setup.py", line 48, in run
??? self.build_extension(ext)
? File "setup.py", line 91, in build_extension
??? subprocess.check_call(['cmake', ext.sourcedir] + cmake_args, cwd=self.build_temp, env=env)
? File "/home/ubuntu/anaconda3/envs/second/lib/python3.7/subprocess.py", line 363, in check_call
??? raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['cmake', '/home/ubuntu/spconv', '-DCMAKE_PREFIX_PATH=/home/ubuntu/anaconda3/envs/second/lib/python3.7/site-packages/torch', '-DPYBIND11_PYTHON_VERSION=3.7', '-DSPCONV_BuildTests=OFF', '-DPYTORCH_VERSION=11000', '-DCMAKE_CUDA_FLAGS="--expt-relaxed-constexpr" -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/home/ubuntu/spconv/build/lib.linux-x86_64-3.7/spconv', '-DCMAKE_BUILD_TYPE=Release']' returned non-zero exit status 1.

In file included from /tmp/tmpxft_0000318c_00000000-5_hash_functions.cudafe1.stub.c:7:0,
???????????????? from tmpxft_0000318c_00000000-5_hash_functions.cudafe1.stub.c:1:
/tmp/tmpxft_0000318c_00000000-2_hash_functions.fatbin.c:40:14: error: ‘__fatBinC_Wrapper_t’ does not name a type
?extern const __fatBinC_Wrapper_t __FATIDNAME(__NV_MODULE_ID) __attribute__ ((aligned (8))) __attribute__ ((section (__CUDAFATBINSECTION)))=
????????????? ^~~~~~~~~~~~~~~~~~~
/tmp/tmpxft_0000318c_00000000-5_hash_functions.cudafe1.stub.c: In function ‘void __sti____cudaRegisterAll()’:
/tmp/tmpxft_0000318c_00000000-5_hash_functions.cudafe1.stub.c:11:44: error: ‘__fatbinwrap_49_tmpxft_0000318c_00000000_6_hash_functions_cpp1_ii_23b82c9e’ was not declared in this scope
?static void __sti____cudaRegisterAll(void){____cudaRegisterLinkedBinary(__nv_cudaEntityRegisterCallback);}
??????????????????????????????????????????? ^
src/cuhash/CMakeFiles/cuhash.dir/build.make:75: recipe for target 'src/cuhash/CMakeFiles/cuhash.dir/hash_functions.cu.o' failed
make[2]: *** [src/cuhash/CMakeFiles/cuhash.dir/hash_functions.cu.o] Error 1
CMakeFiles/Makefile2:153: recipe for target 'src/cuhash/CMakeFiles/cuhash.dir/all' failed
make[1]: *** [src/cuhash/CMakeFiles/cuhash.dir/all] Error 2

文章来源:https://blog.csdn.net/qq_43448818/article/details/134960757
本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。