Results 1 to 3 of 3

Thread: memorey object release and ndrange arguments

  1. #1
    Senior Member
    Join Date
    Nov 2009
    Posts
    118

    memorey object release and ndrange arguments

    In the specification we can read :

    The function
    cl_int clReleaseMemObject (cl_mem memobj) decrements the memobj reference count. After the memobj reference count becomes zero and commands queued for execution on a command-queue(s) that use memobj have finished, the memory object is deleted. ...
    Does this "commands" include ndrange queueing with an argument that point to this memobj?

  2. #2
    Senior Member
    Join Date
    Jul 2009
    Location
    Northern Europe
    Posts
    311

    Re: memorey object release and ndrange arguments

    Yes. It will stay around until both you release it and the runtime is done with it.

  3. #3
    Senior Member
    Join Date
    Nov 2009
    Posts
    118

    Re: memorey object release and ndrange arguments

    thanks, that's great.

Similar Threads

  1. A question on NDRange
    By jazpearson in forum OpenCL
    Replies: 0
    Last Post: 01-30-2013, 07:47 AM
  2. Does NDRange affect performance?
    By ibai in forum OpenCL
    Replies: 5
    Last Post: 03-12-2012, 06:05 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
  •