Fix typo (Mhz -> MHz).

This commit is contained in:
Steven Bellock 2023-06-12 16:34:26 +00:00
parent 5688ee0013
commit d7ea8d009c
2 changed files with 3 additions and 3 deletions

View File

@ -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<int>(&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<int>(&memBusWidth,

View File

@ -107,7 +107,7 @@ int main(int argc, char **argv) {
int memoryClock;
getCudaAttribute<int>(&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<int>(&memBusWidth,