Results 1 to 3 of 3

Thread: clSetKernelArg in loop CL_OUT_OF_RESSOURCES

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

    clSetKernelArg in loop CL_OUT_OF_RESSOURCES

    Hello,

    I have to pass kernel arguments in a loop.

    for (...)
    {
    clSetKernelArg(....)
    ...
    //running the kernel

    clWaitForEvents(...)
    }

    after a while, clWaitForEvents return CL_OUT_OF_RESSOURCES on windows.
    It works just fine on mac and linux.

    I supposed a driver problem, even with the lastest one!

    Does someone else had that kind of problem?

    Sincerely

  2. #2
    Senior Member
    Join Date
    May 2010
    Location
    Toronto, Canada
    Posts
    845

    Re: clSetKernelArg in loop CL_OUT_OF_RESSOURCES

    Is it possible that you are forgetting to release some resources in that loop? For example, did you remember to call clReleaseEvent() for those events you waited for?
    Disclaimer: Employee of Qualcomm Canada. Any opinions expressed here are personal and do not necessarily reflect the views of my employer. LinkedIn profile.

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

    Re: clSetKernelArg in loop CL_OUT_OF_RESSOURCES

    Yes the event is released, but after a quick check it seems that it is eventualy a timeout problem...

Similar Threads

  1. clSetKernelArg(....)
    By sajis997 in forum OpenCL
    Replies: 0
    Last Post: 03-08-2013, 05:16 AM
  2. clSetKernelArg performance
    By jbasic in forum OpenCL
    Replies: 3
    Last Post: 04-14-2010, 12:43 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
  •