Results 1 to 3 of 3

Thread: Release cl::Context

  1. #1
    Junior Member
    Join Date
    Aug 2010

    Release cl::Context

    Hi everybody,
    I started off learning OpenCL using the normal C headers and now
    switched over to C++.
    When using C I had to release my cl_context by calling clReleaseContext(myContext),
    but how would I do that using the C++ bindings?
    Calling clReleaseContext with a cl::Context as parameter won't compile due to
    a missing conversion from cl::Context to cl_context.
    cl::Context.release() is protected so there is no chance to call it.
    Is it actually necessary to manually release the cl::Context?
    If yes: how?

  2. #2
    Senior Member
    Join Date
    Nov 2009

    Re: Release cl::Context

    I hope the c++ binding will release your context in the context class destructor.

  3. #3
    Junior Member
    Join Date
    Aug 2010

    Re: Release cl::Context

    So do I.
    For some reason I wanted to avoid to call the destructor manually.

Similar Threads

  1. Replies: 2
    Last Post: 04-26-2010, 08:38 PM
  2. about date of release
    By Hotnet in forum OpenGL ES
    Replies: 2
    Last Post: 01-29-2004, 04:15 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
Proudly hosted by Digital Ocean