Found minor misstake on example code
ashiba opened this issue · comments
I found minor misstake on examples/chapter02/checkDeviceInfor.cu
.
The following code is written on line 40-42.
printf(" Total amount of global memory: %.2f MBytes (%llu "
"bytes)\n", (float)deviceProp.totalGlobalMem / pow(1024.0, 3),
(unsigned long long)deviceProp.totalGlobalMem);
Shouldn't %.2f MBytes
be %.2f GBytes
?
The reason is that this value is obtained by dividing deviceProp.totalGlobalMem by pow(1024.0, 3).
I submitted the issue because I thought this repository is official, but maybe it's not?