megengine.get_cuda_compute_capability

get_cuda_compute_capability(device, device_type=DeviceType.CUDA)[源代码]

Gets compute capability of the specified device.

参数

device (int) – device number.

返回类型

int

返回

a version number, or SM version.