Skip to content

Commit 0aa26a6

Browse files
committed
cuda_wrapper_print_devices_info: rm quotation m.
removed quotation marks - personally it looks better without (it was ported as it was from GPUJPEG) + replace kB units with more correct KiB (already in GPUJPEG)
1 parent 72f297a commit 0aa26a6

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

src/cuda_wrapper.cu

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -154,15 +154,18 @@ void cuda_wrapper_print_devices_info(bool full)
154154
continue;
155155
}
156156

157-
printf("%sDevice #%d: \"%s\"\n", full ? "\n" : "", device_id,
157+
printf("%sDevice #%d: %s\n", full ? "\n" : "", device_id,
158158
device_properties.name);
159159
if (!full) {
160160
continue;
161161
}
162162
printf(" Compute capability: %d.%d\n", device_properties.major, device_properties.minor);
163-
printf(" Total amount of global memory: %zu kB\n", device_properties.totalGlobalMem / 1024);
164-
printf(" Total amount of constant memory: %zu kB\n", device_properties.totalGlobalMem / 1024);
165-
printf(" Total amount of shared memory per block: %zu kB\n", device_properties.sharedMemPerBlock / 1024);
163+
printf(" Total amount of global memory: %zu KiB\n",
164+
device_properties.totalGlobalMem / 1024);
165+
printf(" Total amount of constant memory: %zu KiB\n",
166+
device_properties.totalGlobalMem / 1024);
167+
printf(" Total amount of shared memory per block: %zu KiB\n",
168+
device_properties.sharedMemPerBlock / 1024);
166169
printf(" Total number of registers available per block: %d\n", device_properties.regsPerBlock);
167170
printf(" Multiprocessors: %d\n", device_properties.multiProcessorCount);
168171
}

0 commit comments

Comments
 (0)