diff --git a/Samples/1_Utilities/deviceQuery/deviceQuery.cpp b/Samples/1_Utilities/deviceQuery/deviceQuery.cpp index a6c46d54..1805766c 100644 --- a/Samples/1_Utilities/deviceQuery/deviceQuery.cpp +++ b/Samples/1_Utilities/deviceQuery/deviceQuery.cpp @@ -137,7 +137,7 @@ int main(int argc, char **argv) { #if CUDART_VERSION >= 5000 // This is supported in CUDA 5.0 (runtime API device properties) - printf(" Memory Clock rate: %.0f Mhz\n", + printf(" Memory Clock rate: %.0f MHz\n", deviceProp.memoryClockRate * 1e-3f); printf(" Memory Bus Width: %d-bit\n", deviceProp.memoryBusWidth); @@ -153,7 +153,7 @@ int main(int argc, char **argv) { int memoryClock; getCudaAttribute(&memoryClock, CU_DEVICE_ATTRIBUTE_MEMORY_CLOCK_RATE, dev); - printf(" Memory Clock rate: %.0f Mhz\n", + printf(" Memory Clock rate: %.0f MHz\n", memoryClock * 1e-3f); int memBusWidth; getCudaAttribute(&memBusWidth, diff --git a/Samples/1_Utilities/deviceQueryDrv/deviceQueryDrv.cpp b/Samples/1_Utilities/deviceQueryDrv/deviceQueryDrv.cpp index 7d538b56..5f6c865c 100644 --- a/Samples/1_Utilities/deviceQueryDrv/deviceQueryDrv.cpp +++ b/Samples/1_Utilities/deviceQueryDrv/deviceQueryDrv.cpp @@ -107,7 +107,7 @@ int main(int argc, char **argv) { int memoryClock; getCudaAttribute(&memoryClock, CU_DEVICE_ATTRIBUTE_MEMORY_CLOCK_RATE, dev); - printf(" Memory Clock rate: %.0f Mhz\n", + printf(" Memory Clock rate: %.0f MHz\n", memoryClock * 1e-3f); int memBusWidth; getCudaAttribute(&memBusWidth,