Results 1 to 2 of 2

Thread: Using the cl_context_properties parameter

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

    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-1.0.0.43 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
    Location
    Northern Europe
    Posts
    311

    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
    Replies: 2
    Last Post: 04-15-2012, 01:40 AM
  2. glDrawTexiOES z parameter on mx31
    By akhil in forum OpenGL ES general technical discussions
    Replies: 4
    Last Post: 09-26-2007, 11:56 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
  •