From d7ea8d009cf572e25d28cf32003ee76d01e88d76 Mon Sep 17 00:00:00 2001 From: Steven Bellock Date: Mon, 12 Jun 2023 16:34:26 +0000 Subject: [PATCH] Fix typo (Mhz -> MHz). --- Samples/1_Utilities/deviceQuery/deviceQuery.cpp | 4 ++-- Samples/1_Utilities/deviceQueryDrv/deviceQueryDrv.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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,