6 Replies Latest reply on Dec 21, 2009 7:56 PM by Stib

    clGetDeviceInfo with CL_DEVICE_GLOBAL_MEM_SIZE is not reporting the correct amount of memory!

    Fr4nz

      Hello, I'm working under Ubuntu 9.04 with an ATI 5770 with 1GB of RAM and the latest atistream 2.0 (downloaded today).

      Everything seems to work fine for now, although the instruction:

       

      errorCode = clGetDeviceInfo(devices[0],CL_DEVICE_GLOBAL_MEM_SIZE,sizeof(cl_ulong),sizeMemGlob,NULL);


      returns an amount of memory equal to "268435456 bytes", which is clearly not correct (it is exactly 1/4th of the real memory). The same amount of memory is returned when we use the constant CL_DEVICE_MAX_MEM_ALLOC_SIZE, which is correct as it must report 1/4th of the total amount (as stated by OpenCL specs).

      So my question is: is it a bug or the result given when we use the constant CL_DEVICE_GLOBAL_MEM_SIZE is intended to be 1/4th of the total memory? It doesn't sound correct to me...

      PS: Also beta4 seems to be affected by this bug.