Results 1 to 3 of 3

Thread: Specification 1.33 Questions

  1. #1
    Junior Member
    Join Date
    Apr 2009
    Posts
    2

    Specification 1.33 Questions

    Hello,

    I am working with Google Summer of Code to start to bring OpenCL support to GCC. For the function: clGetPlatformInfo, the spec is not clear whether we should write to param_value_size_ret when we are returning CL_INVALID_VALUE.

    Phil Pratt-Szeliga

  2. #2
    Senior Member
    Join Date
    Sep 2002
    Location
    Santa Clara
    Posts
    105

    Re: Specification 1.33 Questions

    If param_name is not a valid name, then param_value_size_ret cannot be updated. If param_name is a valid name but param_value_size is < size of return type and param_value_size_ret is specified then yes, you should return the actual size in param_value_size_ret.

  3. #3
    Senior Member
    Join Date
    Sep 2002
    Location
    Santa Clara
    Posts
    105

    Re: Specification 1.33 Questions

    If param_name is not a valid name, then param_value_size_ret will not be updated.

    If param_name is a valid name and param_value_size_ret is not NULL, then param_value_size_ret will return the actual size in bytes of data being queried.

Similar Threads

  1. OpenCL specification questions
    By uelkfr in forum OpenCL
    Replies: 1
    Last Post: 07-21-2011, 05:03 PM
  2. Specification 1.0 to 1.1 diff
    By matrem in forum Suggestions for next release
    Replies: 7
    Last Post: 06-29-2010, 03:42 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
  •