fastllm icon indicating copy to clipboard operation
fastllm copied to clipboard

cmake时候报错,CUDA_ARCHITECTURES is set to "native", but no GPU was detected.

Open zyh3826 opened this issue 1 year ago • 2 comments

使用nvidia-smi: image 使用nvcc --version image 是可以看到gpu的,问题出在哪里呢,有时间帮忙看看吧

zyh3826 avatar Aug 25 '23 07:08 zyh3826

-- The CXX compiler identification is GNU 9.4.0
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- USE_CUDA: ON
-- PYTHON_API: OFF
-- CMAKE_CXX_FLAGS -pthread --std=c++17 -O2 -march=native
-- The CUDA compiler identification is NVIDIA 11.7.99
-- Detecting CUDA compiler ABI info
-- Detecting CUDA compiler ABI info - done
-- Check for working CUDA compiler: /usr/local/cuda/bin/nvcc - skipped
-- Detecting CUDA compile features
-- Detecting CUDA compile features - done
-- Configuring done (3.0s)
CMake Error in CMakeLists.txt:
  CUDA_ARCHITECTURES is set to "native", but no GPU was detected.


CMake Error in CMakeLists.txt:
  CUDA_ARCHITECTURES is set to "native", but no GPU was detected.


CMake Error in CMakeLists.txt:
  CUDA_ARCHITECTURES is set to "native", but no GPU was detected.


CMake Error in CMakeLists.txt:
  CUDA_ARCHITECTURES is set to "native", but no GPU was detected.


CMake Error in CMakeLists.txt:
  CUDA_ARCHITECTURES is set to "native", but no GPU was detected.


CMake Error in CMakeLists.txt:
  CUDA_ARCHITECTURES is set to "native", but no GPU was detected.


-- Generating done (0.0s)
CMake Generate step failed.  Build files cannot be regenerated correctly.

补充cmake日志

zyh3826 avatar Aug 25 '23 07:08 zyh3826

same question

matchyc avatar Jan 22 '24 08:01 matchyc