mirror of
https://github.com/NVIDIA/cuda-samples.git
synced 2024-11-24 14:19:15 +08:00
Fix typo (Mhz -> MHz).
This commit is contained in:
parent
5688ee0013
commit
d7ea8d009c
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue
Block a user