Results 1 to 5 of 5

Thread: Command to free Memory

  1. #1

    Command to free Memory


    After months i discovered a bug into NVidia boards.

    When i do any change in kernel, -30 INVALID_VALUE error or CL_OUT_OF_HOST_MEMORY error occurs. But, this problem is not of my code, i don't know why run don't update either bitstream that is send for GPU or same GPU memory.

    Anyone knows a command outside kernel and inside kernel that i can use to free memory?

    Very thanks,

  2. #2

    Re: Command to free Memory

    There is no function for freeing memory inside a kernel. Those errors indicate that the Nvidia implementation ran into a problem with its own internal memory and there aren't any functions that you can use to free any of that memory. Could you post a basic kernel that demonstrates the problem and what GPU you are using? You could also try using different driver versions.

  3. #3

    Re: Command to free Memory


    Thanks for your help.

    It's happening some strange thing.

    I give up honestly, i really don't know what's happening.
    For instance, my code works fine, so i modified a constant (#define) that is in a .h file that my kernel calls. The kernel run with old value and don't update inside the code and show the old results.

    And the big problem is that If i make any alteration in kernel code, a simple blank space, return execution error, either CL_OUT_OF_HOST_MEMORY or CL_INVALID_VALUE. And don't have any pattern that define what time one or other error happening.

  4. #4
    Junior Member
    Join Date
    Dec 2012

    Re: Command to free Memory

    always check the __private's memory comsumtion of each __kernel will help

  5. #5
    Senior Member
    Join Date
    Oct 2012

    Re: Command to free Memory

    Also always keep this in mind:
    5.1 (Unavailable devices)
    o If a device(s) becomes unavailable after a context and command-queues that use
    this device(s) have been created and commands have been queued to them, the
    implementation will fail with the CL_OUT_OF_RESOURCES error for further API
    calls. The state of the commands enqueued so far is left undefined.

    The application should destroy the objects associated with such a context and
    re-query the available device list.

Similar Threads

  1. Check for free global memory avaiable
    By nachovall in forum OpenCL
    Replies: 6
    Last Post: 03-09-2011, 05:53 AM
  2. How to get free memory size on the device?
    By eugine in forum OpenCL
    Replies: 3
    Last Post: 08-19-2010, 01:15 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