mirror of
https://github.com/NVIDIA/cuda-samples.git
synced 2024-11-24 18:49:18 +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
|
#if CUDART_VERSION >= 5000
|
||||||
// This is supported in CUDA 5.0 (runtime API device properties)
|
// 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);
|
deviceProp.memoryClockRate * 1e-3f);
|
||||||
printf(" Memory Bus Width: %d-bit\n",
|
printf(" Memory Bus Width: %d-bit\n",
|
||||||
deviceProp.memoryBusWidth);
|
deviceProp.memoryBusWidth);
|
||||||
|
@ -153,7 +153,7 @@ int main(int argc, char **argv) {
|
||||||
int memoryClock;
|
int memoryClock;
|
||||||
getCudaAttribute<int>(&memoryClock, CU_DEVICE_ATTRIBUTE_MEMORY_CLOCK_RATE,
|
getCudaAttribute<int>(&memoryClock, CU_DEVICE_ATTRIBUTE_MEMORY_CLOCK_RATE,
|
||||||
dev);
|
dev);
|
||||||
printf(" Memory Clock rate: %.0f Mhz\n",
|
printf(" Memory Clock rate: %.0f MHz\n",
|
||||||
memoryClock * 1e-3f);
|
memoryClock * 1e-3f);
|
||||||
int memBusWidth;
|
int memBusWidth;
|
||||||
getCudaAttribute<int>(&memBusWidth,
|
getCudaAttribute<int>(&memBusWidth,
|
||||||
|
|
|
@ -107,7 +107,7 @@ int main(int argc, char **argv) {
|
||||||
int memoryClock;
|
int memoryClock;
|
||||||
getCudaAttribute<int>(&memoryClock, CU_DEVICE_ATTRIBUTE_MEMORY_CLOCK_RATE,
|
getCudaAttribute<int>(&memoryClock, CU_DEVICE_ATTRIBUTE_MEMORY_CLOCK_RATE,
|
||||||
dev);
|
dev);
|
||||||
printf(" Memory Clock rate: %.0f Mhz\n",
|
printf(" Memory Clock rate: %.0f MHz\n",
|
||||||
memoryClock * 1e-3f);
|
memoryClock * 1e-3f);
|
||||||
int memBusWidth;
|
int memBusWidth;
|
||||||
getCudaAttribute<int>(&memBusWidth,
|
getCudaAttribute<int>(&memBusWidth,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user