mirror of
https://github.com/NVIDIA/cuda-samples.git
synced 2025-04-20 05:12:26 +08:00
Merge d7ea8d009c
into 9c688d7ff7
This commit is contained in:
commit
88b38fec01
|
@ -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