Skip to content

Commit

Permalink
rename overrides and fallbacks
Browse files Browse the repository at this point in the history
  • Loading branch information
bashbaug committed Dec 2, 2024
1 parent 12e28b7 commit caa5cea
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions layers/12_nvsgemu/emulate.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ extern const struct _cl_icd_dispatch* g_pNextDispatch;
///////////////////////////////////////////////////////////////////////////////
// Override Functions

cl_int clBuildProgram_override(
cl_int clBuildProgram_fallback(
cl_program program,
cl_uint num_devices,
const cl_device_id* device_list,
Expand All @@ -38,15 +38,15 @@ cl_program clCreateProgramWithSource_override(
const size_t* lengths,
cl_int* errcode_ret);

cl_int clGetDeviceInfo_override(
cl_int clGetDeviceInfo_fallback(
cl_device_id device,
cl_device_info param_name,
size_t param_value_size,
void* param_value,
size_t* param_value_size_ret,
cl_int errorCode);

cl_int clGetKernelSubGroupInfo_override(
cl_int clGetKernelSubGroupInfo_fallback(
cl_kernel kernel,
cl_device_id device,
cl_kernel_sub_group_info param_name,
Expand Down
6 changes: 3 additions & 3 deletions layers/12_nvsgemu/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ clBuildProgram_layer(
pfn_notify,
user_data);
if (errorCode != CL_SUCCESS) {
errorCode = clBuildProgram_override(
errorCode = clBuildProgram_fallback(
program,
num_devices,
device_list,
Expand Down Expand Up @@ -94,7 +94,7 @@ clGetDeviceInfo_layer(
param_value != nullptr &&
param_value_size == sizeof(cl_uint) &&
((cl_uint*)param_value)[0] == 0) {
errorCode = clGetDeviceInfo_override(
errorCode = clGetDeviceInfo_fallback(
device,
param_name,
param_value_size,
Expand Down Expand Up @@ -127,7 +127,7 @@ clGetKernelSubGroupInfo_layer(
param_value,
param_value_size_ret);
if (errorCode != CL_SUCCESS) {
errorCode = clGetKernelSubGroupInfo_override(
errorCode = clGetKernelSubGroupInfo_fallback(
kernel,
device,
param_name,
Expand Down

0 comments on commit caa5cea

Please sign in to comment.