Results 1 to 2 of 2

Thread: A 64ko buffer size limit ?

Hybrid View

  1. #1
    Join Date
    Jun 2013

    A 64KB buffer size limit ?


    I am writing a small application in WebCL (NOT WebGL !), where I must render a set of primitives in a 3D scene.

    Currently, I can use only 1170 primitives consisting of 14 floats each, which means the 1171th will give me a -52 error on the NDRangeKernel call (Bad args if I'm not mistaken ?). This means I can use only 16380 * 32 bits float, and the closest power of two gives us a 64 kilobytes limit when writing in a buffer.

    Is there anyone with the slightest idea where this limit come from ? I know of the 128 mb limit usually enforced (my GPU is a GeForce 560 with 1Gb of memory), but I'm far under it. I also use a javascript front end with Float32Array to serialize my data, if that's of any relevance.

    Last edited by 0xeedfade; 06-11-2013 at 05:04 AM.

  2. #2
    Join Date
    Jun 2013
    Okay, so after some research, I came up with these precision :

    I am using the nokia implementation and Firefox 21. This implementation seems not to take into account the hint about memory management (CL_MEM_COPY_HOST_PTR flag for example when creating a buffer). It thus seems that I am forced to use a constant cache limited to 64 kilobytes.

    Does anyone have any alternative (working for this implementation) ?

    Edit : My bad, I was simply using a "constant" parameter which, as intended, limited the size of the buffer to the max constant size limit. *facepalm*.
    Last edited by 0xeedfade; 06-11-2013 at 06:48 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Proudly hosted by Digital Ocean