Commit 44b8e8b9 authored by Pierre Moreau's avatar Pierre Moreau

clover: Implement clCreateProgramWithIL from OpenCL 2.1

v2: Remove clCreateProgramWithIL from api/invalid.cpp
Reviewed-by: Karol Herbst's avatarKarol Herbst <kherbst@redhat.com>
Reviewed-by: Francisco Jerez's avatarFrancisco Jerez <currojerez@riseup.net>
Signed-off-by: Pierre Moreau's avatarPierre Moreau <dev@pmoreau.org>
Part-of: <!2078>
parent af09db6e
......@@ -91,15 +91,6 @@ clSetProgramReleaseCallback(cl_program d_prog,
return CL_INVALID_OPERATION;
}
CLOVER_API cl_program
clCreateProgramWithIL(cl_context context,
const void *il,
size_t length,
cl_int *r_errorcode) {
*r_errorcode = CL_INVALID_OPERATION;
return nullptr;
}
CLOVER_API cl_int
clSetProgramSpecializationConstant(cl_program program,
cl_uint spec_id,
......
......@@ -213,6 +213,14 @@ clover::CreateProgramWithILKHR(cl_context d_ctx, const void *il,
return NULL;
}
CLOVER_API cl_program
clCreateProgramWithIL(cl_context d_ctx,
const void *il,
size_t length,
cl_int *r_errcode) {
return CreateProgramWithILKHR(d_ctx, il, length, r_errcode);
}
CLOVER_API cl_program
clCreateProgramWithBuiltInKernels(cl_context d_ctx, cl_uint n,
const cl_device_id *d_devs,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment