clGetExtensionFunctionAddress has been deprecated but it still can be useful in some cases and some applications rely on it. The OpenCL runtime loader should optionally support it by dynamically loading the real OpenCL ICD loader similar to clGetPlatformIDs even if the default is to return NULL to encourage use of clGetExtensionFunctionAddressForPlatform instead.
This behavior is currently hard coded with an ifdef:
CL_API_ENTRYvoid*CL_API_CALLclGetExtensionFunctionAddress(
constchar*function_name)
{
#if0static_sclModuleHandlemodule=_sclOpenICDLoader();
_sclpfn_clGetExtensionFunctionAddress_clGetExtensionFunctionAddress=
(_sclpfn_clGetExtensionFunctionAddress)::GetProcAddress(
module, "clGetExtensionFunctionAddress");
if (_clGetExtensionFunctionAddress) {
return_clGetExtensionFunctionAddress(function_name);
}
#endifreturnNULL;
}
clGetExtensionFunctionAddresshas been deprecated but it still can be useful in some cases and some applications rely on it. The OpenCL runtime loader should optionally support it by dynamically loading the real OpenCL ICD loader similar toclGetPlatformIDseven if the default is to returnNULLto encourage use ofclGetExtensionFunctionAddressForPlatforminstead.This behavior is currently hard coded with an ifdef: