PDA

View Full Version : size_t usage in OpenCL



coleb
12-11-2009, 12:11 PM
size_t is used all over the place in the standard. However, size_t is defined by the os/compiler, but the device could actually support more than 4GB of memory. For example, fermi will have 6GB of memory, but theoretically that could be running on a 32-bit linux machine (which unfortunately still do exist).

Or am I missing something fundamental about size_t?

ikedanaruki
12-11-2009, 09:54 PM
hello,
Please check CL_DEVICE_ADDRESS_BITS.