``计算能力''是什么意思CUDA? [英] What does 'compute capability' mean w.r.t. CUDA?

查看:96
本文介绍了``计算能力''是什么意思CUDA?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是CUDA编程的新手,对此了解不多.您能告诉我"CUDA计算能力"是什么意思吗?当我在大学服务器上使用以下代码时,它显示了以下结果.

I am new to CUDA programming and don't know much about it. Can you please tell me what does 'CUDA compute capability' mean? When I use the following code on my university server, it showed me the following result.

for (device = 0; device < deviceCount; ++device) 
{ 
    cudaDeviceProp deviceProp; 
    cudaGetDeviceProperties(&deviceProp, device); 
    printf("\nDevice %d has compute capability %d.%d.\n", device, deviceProp.major, deviceProp.minor);      
}

结果:

Device 0 has compute capability 4199672.0.
Device 1 has compute capability 4199672.0.
Device 2 has compute capability 4199672.0.
.
.

cudaGetDeviceProperties返回两个字段major和minor.你能告诉我 4199672.0.是什么意思吗?

cudaGetDeviceProperties returns two fields major and minor. Can you please tell me what is this 4199672.0. means?

推荐答案

计算能力是设备的功能集"(包括硬件和软件功能).您可能已经听说过NVIDIA GPU架构名称"Tesla","Fermi"或"Kepler".这些架构中的每一种都具有以前版本可能没有的功能.

The compute capability is the "feature set" (both hardware and software features) of the device. You may have heard the NVIDIA GPU architecture names "Tesla", "Fermi" or "Kepler". Each of those architectures have features that previous versions might not have.

在硬盘驱动器上的CUDA工具包安装文件夹中,找到文件 CUDA_C_Programming_Guide.pdf (或用Google搜索),然后找到附录 F.1 .它描述了不同计算功能之间的功能差异.

In your CUDA toolkit installation folder on your hard drive, look for the file CUDA_C_Programming_Guide.pdf (or google it), and find Appendix F.1. It describes the differences in features between the different compute capabilities.

这篇关于``计算能力''是什么意思CUDA?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆