Skip to content
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

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

Open
zyh3826 opened this issue Aug 25, 2023 · 2 comments · May be fixed by #309
Open

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

zyh3826 opened this issue Aug 25, 2023 · 2 comments · May be fixed by #309

Comments

@zyh3826
Copy link

zyh3826 commented Aug 25, 2023

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

@zyh3826
Copy link
Author

zyh3826 commented Aug 25, 2023

-- 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日志

@ydm-amazon ydm-amazon linked a pull request Sep 11, 2023 that will close this issue
@matchyc
Copy link

matchyc commented Jan 22, 2024

same question

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants