4 Replies Latest reply on Dec 22, 2009 7:00 AM by Fr4nz

    only 128mb global mem available?

    kangshuyi001

      It seems something wrong with my hd4830 when I write opencl program, it only has 128M global mem, why?

        • only 128mb global mem available?
          genaganna

           

          Originally posted by: kangshuyi001 It seems something wrong with my hd4830 when I write opencl program, it only has 128M global mem, why?

          As per Spec,  Maximum size of memory object allocation is minimum of (1/4 th of maximum global memory available, 128MB)

          See section 4.2 in Spec for more details.

           

            • only 128mb global mem available?
              Fr4nz

               

              As per Spec,  Maximum size of memory object allocation is minimum of (1/4 th of maximum global memory available, 128MB)

               

              See section 4.2 in Spec for more details.



               

              This is true if you use the constant CL_DEVICE_MAX_MEM_ALLOC_SIZE with which clGetDeviceInfo must report 1/4th of the total mem available as allocable; the problem is that the same amount of memory is returned when you use the constant CL_DEVICE_GLOBAL_MEM_SIZE: in this case clGetDeviceInfo should report the "size of global memory device in bytes" (page 36 of the specs, revision 48), so 4 times the amount returned by CL_DEVICE_MAX_MEM_ALLOC_SIZE.