Skip to content

Commit ccefb07

Browse files
committed
implement the new clInitLayerWithProperties interface
1 parent 39a4de7 commit ccefb07

File tree

1 file changed

+17
-2
lines changed

1 file changed

+17
-2
lines changed

layers/99_svmplusplus/main.cpp

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,11 +102,12 @@ CL_API_ENTRY cl_int CL_API_CALL clGetLayerInfo(
102102
return CL_SUCCESS;
103103
}
104104

105-
CL_API_ENTRY cl_int CL_API_CALL clInitLayer(
105+
CL_API_ENTRY cl_int CL_API_CALL clInitLayerWithProperties(
106106
cl_uint num_entries,
107107
const struct _cl_icd_dispatch* target_dispatch,
108108
cl_uint* num_entries_out,
109-
const struct _cl_icd_dispatch** layer_dispatch_ret)
109+
const struct _cl_icd_dispatch** layer_dispatch_ret,
110+
const cl_layer_properties* properties)
110111
{
111112
const size_t dispatchTableSize =
112113
sizeof(dispatch) / sizeof(dispatch.clGetPlatformIDs);
@@ -130,3 +131,17 @@ CL_API_ENTRY cl_int CL_API_CALL clInitLayer(
130131

131132
return CL_SUCCESS;
132133
}
134+
135+
CL_API_ENTRY cl_int CL_API_CALL clInitLayer(
136+
cl_uint num_entries,
137+
const struct _cl_icd_dispatch* target_dispatch,
138+
cl_uint* num_entries_out,
139+
const struct _cl_icd_dispatch** layer_dispatch_ret)
140+
{
141+
return clInitLayerWithProperties(
142+
num_entries,
143+
target_dispatch,
144+
num_entries_out,
145+
layer_dispatch_ret,
146+
nullptr);
147+
}

0 commit comments

Comments
 (0)