Merge d7ea8d009cf572e25d28cf32003ee76d01e88d76 into 3e8f91d1a116060d3fedfe856f3721db970de030

This commit is contained in:
Steven Bellock 2025-03-04 08:42:41 +08:00 committed by GitHub
commit 89540cedc2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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,