我是CUDA编程的新手,对它了解甚少。请问什么是“CUDA计算能力”?当我在我的大学服务器上使用以下代码时,它显示了以下结果。
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
的调用失败了。请检查其返回值是否等于cudaSuccess
。 - aland