gpt4 book ai didi

c++ - nvcc fatal : Unsupported gpu architecture 'compute_20' while cuda9. 0 已安装

转载 作者:行者123 更新时间:2023-11-30 05:07:46 25 4
gpt4 key购买 nike

我在安装 GROMACS-5.1.2 时遇到问题。该错误表明不支持 gpu 架构“compute_20”。我有 CUDA 9.0、g++4.9.3 和 GTX1080 GPU。我现在应该怎么做?有什么问题吗?

[  0%] Built target fftwBuild    
[ 1%] Building NVCC (Device) object src/gromacs/CMakeFiles/libgromacs.dir/gmxlib/cuda_tools/./libgromacs_generated_copyrite_gpu.cu.o
nvcc fatal : Unsupported gpu architecture 'compute_20'
CMake Error at libgromacs_generated_copyrite_gpu.cu.o.cmake:208 (message):
Error generating
/opt/gromacs/build-gromacs/src/gromacs/CMakeFiles/libgromacs.dir/gmxlib/cuda_tools/./libgromacs_generated_copyrite_gpu.cu.o

src/gromacs/CMakeFiles/libgromacs.dir/build.make:55: recipe for target 'src/gromacs/CMakeFiles/libgromacs.dir/gmxlib/cuda_tools/./libgromacs_generated_copyrite_gpu.cu.o' failed
make[2]: *** [src/gromacs/CMakeFiles/libgromacs.dir/gmxlib/cuda_tools/./libgromacs_generated_copyrite_gpu.cu.o] Error 1
CMakeFiles/Makefile2:1938: recipe for target 'src/gromacs/CMakeFiles/libgromacs.dir/all' failed
make[1]: *** [src/gromacs/CMakeFiles/libgromacs.dir/all] Error 2
Makefile:143: recipe for target 'all' failed
make: *** [all] Error 2

最佳答案

“compute_20”、“sm_20”和“sm_21”架构在 CUDA 8 和 9 中已弃用

分辨率

  1. 更改为兼容的 CUDA 版本
  2. 修改您的 CMake 文件以删除这些已弃用的架构

关于c++ - nvcc fatal : Unsupported gpu architecture 'compute_20' while cuda9. 0 已安装,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47129220/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com