版本:2.2.0
硬件平台:GPU CUDA 11.6
操作系统:Linux-x86_64
编程语言:Python 3.7
安装方式:Source
编译过程中报错:
CMake Error at /usr/local/lib/python3.7/dist-packages/cmake/data/share/cmake-3.2 7/Modules/CMakeDetermineCompilerId.cmake:753 (message):
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.6/bin:/root/.cargo/bi n:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/l ocal/games
#$ 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=80400 --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):
/usr/local/lib/python3.7/dist-packages/cmake/data/share/cmake-3.27/Modules/CMa keDetermineCompilerId.cmake:8 (CMAKE_DETERMINE_COMPILER_ID_BUILD)
/usr/local/lib/python3.7/dist-packages/cmake/data/share/cmake-3.27/Modules/CMa keDetermineCompilerId.cmake:53 (__determine_compiler_id_test)
/usr/local/lib/python3.7/dist-packages/cmake/data/share/cmake-3.27/Modules/CMa keDetermineCUDACompiler.cmake:307 (CMAKE_DETERMINE_COMPILER_ID)
cmake/external_libs/nccl.cmake:20 (enable_language)
cmake/mind_expression.cmake:63 (include)
CMakeLists.txt:83 (include)
后来尝试网上的解决方案:sudo apt remove nvidia-cuda-toolkit
重新编译报错:
CMake Error at /usr/local/lib/python3.7/dist-packages/cmake/data/share/cmake-3.27/Modules/CMakeDetermineCUDACompiler.cmake:603 (message):
Failed to detect a default CUDA architecture.
Compiler output:
Call Stack (most recent call first):
cmake/external_libs/nccl.cmake:20 (enable_language)
cmake/mind_expression.cmake:63 (include)
CMakeLists.txt:83 (include)
版本:2.2.0
硬件平台:GPU CUDA 11.6
操作系统:Linux-x86_64
编程语言:Python 3.7
安装方式:Source
编译过程中报错:
CMake Error at /usr/local/lib/python3.7/dist-packages/cmake/data/share/cmake-3.2 7/Modules/CMakeDetermineCompilerId.cmake:753 (message):
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.6/bin:/root/.cargo/bi n:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/l ocal/games
#$ 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=80400 --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):
/usr/local/lib/python3.7/dist-packages/cmake/data/share/cmake-3.27/Modules/CMa keDetermineCompilerId.cmake:8 (CMAKE_DETERMINE_COMPILER_ID_BUILD)
/usr/local/lib/python3.7/dist-packages/cmake/data/share/cmake-3.27/Modules/CMa keDetermineCompilerId.cmake:53 (__determine_compiler_id_test)
/usr/local/lib/python3.7/dist-packages/cmake/data/share/cmake-3.27/Modules/CMa keDetermineCUDACompiler.cmake:307 (CMAKE_DETERMINE_COMPILER_ID)
cmake/external_libs/nccl.cmake:20 (enable_language)
cmake/mind_expression.cmake:63 (include)
CMakeLists.txt:83 (include)
后来尝试网上的解决方案:sudo apt remove nvidia-cuda-toolkit
重新编译报错:
CMake Error at /usr/local/lib/python3.7/dist-packages/cmake/data/share/cmake-3.27/Modules/CMakeDetermineCUDACompiler.cmake:603 (message):
Failed to detect a default CUDA architecture.
Compiler output:
Call Stack (most recent call first):
cmake/external_libs/nccl.cmake:20 (enable_language)
cmake/mind_expression.cmake:63 (include)
CMakeLists.txt:83 (include)