simplePrintf.cu: "Compute capability" text (#299)

Compute %d.%d capability => Compute capability %d.%d
This commit is contained in:
ohmaya 2025-02-20 07:22:34 +08:00 committed by GitHub
parent 8a96d2eee7
commit 61bd39800d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -57,7 +57,7 @@ int main(int argc, char **argv) {
// Get GPU information
checkCudaErrors(cudaGetDevice(&devID));
checkCudaErrors(cudaGetDeviceProperties(&props, devID));
printf("Device %d: \"%s\" with Compute %d.%d capability\n", devID, props.name,
printf("Device %d: \"%s\" with Compute capability %d.%d\n", devID, props.name,
props.major, props.minor);
printf("printf() is called. Output:\n\n");