C Specification
The entry point of a given platform that is ICD 2 compatible can be obtained using the following function:
// Provided by cl_khr_icd
void* clIcdGetFunctionAddressForPlatformKHR(
cl_platform_id platform,
const char* func_name);
clIcdGetFunctionAddressForPlatformKHR is provided by the cl_khr_icd extension.
|
Parameters
-
platform refers to the platform ID returned by clIcdGetPlatformIDsKHR
-
func_name name of an API entry point
Description
clIcdGetFunctionAddressForPlatformKHR returns the address of the API entry point named by func_name. The pointer returned should be cast to a function pointer type matching the API entry point as defined in the specification header file.
A return value of NULL indicates that the specified function does not exist
for platform, or platform is not a valid platform for the implementation.
Document Notes
For more information, see the OpenCL Specification
This page is extracted from the OpenCL Specification. Fixes and changes should be made to the Specification, not directly.