Results 1 to 5 of 5

Thread: Insufficient Private Resources!

  1. #1
    Junior Member
    Join Date
    Feb 2012
    Posts
    6

    Insufficient Private Resources!

    Hi,
    When I try to compile a kernel (it has a lot of functions), I get an error and it depends on the device I use.
    AMD: The kernel's compilation returns "E013:Insufficient Private Resources! ".
    NVIDIA: There isn't any error during the compilation but when I execute the kernel it returns CL_OUT_OF_RESOURCES.
    Is there any solution to this problem?
    Thanks in advance.

  2. #2

    Re: Insufficient Private Resources!

    Since this is a long kernel, it could be that the final version uses too many registers or local memory. Nvidia has a maxregcount build option as far as I remember, but I don't know if AMD has an equivalent. This options causes registers to be spilled into memory, slowing down your code, but I think it will fix your problem, at least on Nvidia cards.

    Dividing your kernel into a few simpler pieces, while incurring extra overhead due to more kernel calls, may still be better than spilling registers to memory.

  3. #3
    Junior Member
    Join Date
    Feb 2012
    Posts
    6

    Re: Insufficient Private Resources!

    Thanks so much.
    Do you know where I can get information about this build option?

  4. #4

    Re: Insufficient Private Resources!

    AMD APP SDK documentation: http://developer.amd.com/tools/hc/AM...s/default.aspx
    Sorry, never used this option before so I haven't looked for it in AMD documents.

    For Nvidia, look at Chapter 5 of the CUDA C Programming Guide. Also look at the OpenCL documentation for clBuildProgram. I have not needed to try this yet, but I think you should be able to achieve the desired effect by adding -maxregcount to the command line options passed to clBuildProgram for your Nvidia GPU. As I said, you will have to find the AMD equivalent, if there is one.

  5. #5
    Junior Member
    Join Date
    Feb 2012
    Posts
    6

    Re: Insufficient Private Resources!

    Thanks!

Similar Threads

  1. out of resources when clEnqueueReadBuffer
    By billconan in forum OpenCL
    Replies: 6
    Last Post: 07-20-2011, 10:40 AM
  2. Private Memory
    By fcq in forum Suggestions for next release
    Replies: 1
    Last Post: 05-06-2011, 07:35 AM
  3. Out of resources problem
    By grimm in forum OpenCL
    Replies: 9
    Last Post: 03-03-2010, 02:40 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •