std :: ml::gpu_cuda
Function std::cuda_compute_capability
int cuda_compute_capability()Compute capability of the selected GPU as major * 10 + minor (80 on an A100, 90 on an H100/H200); 0 if there is no GPU.
std :: ml::gpu_cuda
int cuda_compute_capability()Compute capability of the selected GPU as major * 10 + minor (80 on an A100, 90 on an H100/H200); 0 if there is no GPU.