taqmi / opencl-book-samples

Automatically exported from code.google.com/p/opencl-book-samples
0 stars 0 forks source link

Typo in error text (Ch. 2 p. 51) #53

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
In the code:

   // First get the size of the devices buffer
    errNum = clGetContextInfo(context, CL_CONTEXT_DEVICES, 0, NULL, &deviceBufferSize);
    if (errNum != CL_SUCCESS)
    {
        std::cerr << "Failed call to clGetContextInfo(...,GL_CONTEXT_DEVICES,...)";
        return NULL;
    }

The error message should refer to CL_CONTEXT_DEVICES (not GL_*).

Original issue reported on code.google.com by chen...@gmail.com on 24 Jan 2012 at 2:38