Results 1 to 2 of 2

Thread: Discrepancy between cl.h and OpenCL Spec 1.33

  1. #1

    Discrepancy between cl.h and OpenCL Spec 1.33

    I just noticed a difference between the cl.h header file and the latest version of the OpenCL spec 1.33.

    The header file says

    Code :
    extern CL_API_ENTRY cl_program CL_API_CALL
    clCreateProgramWithBinary(cl_context            /* context */,
                              cl_uint               /* num_devices */,
                              const cl_device_id *  /* device_list */,
                              const size_t *        /* lengths */,
                              const char **         /* binaries */,
                              cl_int *              /* binary_status */,
                              cl_int *              /* errcode_ret */) CL_API_SUFFIX__VERSION_1_0;
    with binaries as (const char **). But on page 84 of the spec, it says

    Code :
    cl_program clCreateProgramWithBinary (cl_context context,
                                          cl_uint num_devices,
                                          const cl_device_id *device_list,
                                          const size_t *lengths,
                                          const void **binaries,
                                          cl_int *binary_status,
                                          cl_int *errcode_ret)
    with binaries as (const void **).

    Which is correct?

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

    Re: Discrepancy between cl.h and OpenCL Spec 1.33

    An updated revision of spec & header files should be released soon.

    The binaries argument type has been changed to be const unsigned char **binaries.

Similar Threads

  1. Replies: 4
    Last Post: 01-31-2013, 09:51 AM
  2. Issues in OpenCL spec 1.2
    By himanshu.gautam in forum OpenCL
    Replies: 6
    Last Post: 12-22-2011, 04:10 PM
  3. OpenCL Spec: release/retain errors
    By guillona in forum OpenCL
    Replies: 0
    Last Post: 01-17-2011, 07:11 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
  •