Results 1 to 2 of 2

Thread: Using the cl_context_properties parameter

  1. #1
    Junior Member
    Join Date
    Jul 2009
    Timisoara, Romania

    Using the cl_context_properties parameter

    Can anyone please tell me how to specify the "cl_context_properties *properties" parameter found in the "clCreateContext" and "clCreateContextFromType" functions?

    I see that neither the OpenCL- specification examples (D.1 and D.3) nor the Nvidia SDK examples make use of this parameter (it is always set to NULL).

    Is this parameter supposed to be used and, if so, in which cases is it supposed to be used?

    Thank you for your help.

  2. #2
    Senior Member
    Join Date
    Jul 2009
    Northern Europe

    Re: Using the cl_context_properties parameter

    Something along the lines of:

    cl_context_properties prop = {(cl_context_property)PROP_IDENTIFIER, (cl_context_property)value, 0};

    However, this is vendor-specific, so you'll need to see the vendor's instructions for particular properties and usage.

Similar Threads

  1. clEnqueueNDRangeKernel offset parameter
    By SAdam in forum OpenCL - parallel programming of heterogeneous systems
    Replies: 2
    Last Post: 04-15-2012, 02:40 AM
  2. glDrawTexiOES z parameter on mx31
    By akhil in forum OpenGL ES general technical discussions
    Replies: 4
    Last Post: 09-27-2007, 12:56 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