Expose clGetKernelSuggestedLocalWorkSizeKHR func

Related-to: NEO-2922
Signed-off-by: Fabian Zwolinski <fabian.zwolinski@intel.com>
This commit is contained in:
Fabian Zwolinski
2021-10-04 10:51:12 +02:00
committed by Compute-Runtime-Automation
parent 5f5f8c2e2d
commit 332720920a
9 changed files with 191 additions and 3 deletions

View File

@@ -4327,6 +4327,20 @@ cl_program CL_API_CALL clCreateProgramWithILKHR(cl_context context,
return program;
}
cl_int CL_API_CALL clGetKernelSuggestedLocalWorkSizeKHR(cl_command_queue command_queue,
cl_kernel kernel,
cl_uint work_dim,
const size_t *global_work_offset,
const size_t *global_work_size,
size_t *suggested_local_work_size) {
return clGetKernelSuggestedLocalWorkSizeINTEL(command_queue,
kernel,
work_dim,
global_work_offset,
global_work_size,
suggested_local_work_size);
}
#define RETURN_FUNC_PTR_IF_EXIST(name) \
{ \
if (!strcmp(funcName, #name)) { \
@@ -4392,6 +4406,8 @@ void *CL_API_CALL clGetExtensionFunctionAddress(const char *funcName) {
RETURN_FUNC_PTR_IF_EXIST(clSetProgramSpecializationConstant);
RETURN_FUNC_PTR_IF_EXIST(clGetKernelSuggestedLocalWorkSizeKHR);
ret = getAdditionalExtensionFunctionAddress(funcName);
TRACING_EXIT(clGetExtensionFunctionAddress, &ret);
return ret;

View File

@@ -927,6 +927,14 @@ extern CL_API_ENTRY cl_program CL_API_CALL clCreateProgramWithILKHR(
size_t length,
cl_int *errcodeRet) CL_API_SUFFIX__VERSION_1_2;
extern CL_API_ENTRY cl_int CL_API_CALL clGetKernelSuggestedLocalWorkSizeKHR(
cl_command_queue command_queue,
cl_kernel kernel,
cl_uint work_dim,
const size_t *global_work_offset,
const size_t *global_work_size,
size_t *suggested_local_work_size) CL_API_SUFFIX__VERSION_3_0;
void *clHostMemAllocINTEL(
cl_context context,
const cl_mem_properties_intel *properties,

View File

@@ -42,7 +42,8 @@ const char *deviceExtensionsList = "cl_khr_byte_addressable_store "
"cl_khr_subgroup_shuffle "
"cl_khr_subgroup_shuffle_relative "
"cl_khr_subgroup_clustered_reduce "
"cl_intel_device_attribute_query ";
"cl_intel_device_attribute_query "
"cl_khr_suggested_local_work_size ";
std::string getExtensionsList(const HardwareInfo &hwInfo) {
std::string allExtensionsList;