对于像gtx1080这样的特定gpu,我想知道哪个cuda工具包版本支持它。我已经扫描了nvidia的官方网站,但没有找到具体的结果。
答案 0 :(得分:0)
您可以先在以下站点查看GTX1080的计算能力(CC)。这是CC 6.1。
https://developer.nvidia.com/cuda-gpus
然后检查下面的CUDA文档,看它是否在当前版本的CUDA 7.5的受支持的CC列表中。事实并非如此。
http://docs.nvidia.com/cuda/cuda-c-programming-guide/index.html#compute-capabilities
所以它应该得到未来版本的支持。目前即将发布的版本是CUDA 8.您可以在其文档中找到它。
如果您不确定doucments的版本,可以找到与特定CUDA安装相关的文档,例如
/usr/local/cuda-7.5/doc
CUDA编译器的帮助消息也提供了支持的CC列表。
$ nvcc --help
--gpu-code <code>,... (-code)
Specify the name of the NVIDIA GPU to assemble and optimize PTX for.
nvcc embeds a compiled code image in the resulting executable for each specified
<code> architecture, which is a true binary load image for each 'real' architecture
(such as sm_20), and PTX code for the 'virtual' architecture (such as compute_20).
During runtime, such embedded PTX code is dynamically compiled by the CUDA
runtime system if no binary load image is found for the 'current' GPU.
Architectures specified for options '--gpu-architecture' and '--gpu-code'
may be 'virtual' as well as 'real', but the <code> architectures must be
compatible with the <arch> architecture. When the '--gpu-code' option is
used, the value for the '--gpu-architecture' option must be a 'virtual' PTX
architecture.
For instance, '--gpu-architecture=compute_35' is not compatible with '--gpu-code=sm_30',
because the earlier compilation stages will assume the availability of 'compute_35'
features that are not present on 'sm_30'.
Allowed values for this option: 'compute_20','compute_30','compute_32',
'compute_35','compute_37','compute_50','compute_52','compute_53','sm_20',
'sm_21','sm_30','sm_32','sm_35','sm_37','sm_50','sm_52','sm_53'.