In our OpenCL implementation we do not support online compilation APIs, including: clCreateProgramWithSource
Instead, the API is stubbed and returns: CL_INVALID_OPERATION
According to the OpenCL specification (section 5.8.1 Creating Program Objects),
clCreateProgramWithSource:
Must return specific error codes for invalid inputs or resource failures:
CL_INVALID_CONTEXT
CL_INVALID_VALUE
CL_OUT_OF_RESOURCES
CL_OUT_OF_HOST_MEMORY
However:
The specification does not explicitly define behavior when the API itself is not supported by the implementation.
There is no mention of CL_INVALID_OPERATION in this context.
compiler/test_build_helpers.cpp:486 invokes this API and expects standard behavior. This creates a mismatch between the specification, which does not define behavior for unsupported APIs, and the conformance suite, which implicitly requires support for this functionality.
In our OpenCL implementation we do not support online compilation APIs, including: clCreateProgramWithSource
Instead, the API is stubbed and returns: CL_INVALID_OPERATION
According to the OpenCL specification (section 5.8.1 Creating Program Objects),
clCreateProgramWithSource:
Must return specific error codes for invalid inputs or resource failures:
CL_INVALID_CONTEXT
CL_INVALID_VALUE
CL_OUT_OF_RESOURCES
CL_OUT_OF_HOST_MEMORY
However:
The specification does not explicitly define behavior when the API itself is not supported by the implementation.
There is no mention of CL_INVALID_OPERATION in this context.
compiler/test_build_helpers.cpp:486 invokes this API and expects standard behavior. This creates a mismatch between the specification, which does not define behavior for unsupported APIs, and the conformance suite, which implicitly requires support for this functionality.