Allow device ID to be specified for offline compilation

Signed-off-by: Stuart Brady <stuart.brady@arm.com>
This commit is contained in:
Stuart Brady
2019-08-08 21:32:07 +01:00
committed by Kévin Petit
parent 76fd344e64
commit 245e11ec67
2 changed files with 46 additions and 24 deletions

View File

@@ -89,6 +89,14 @@ extern int create_single_kernel_helper_create_program(cl_context context,
const char *buildOptions = NULL,
const bool openclCXX = false);
extern int create_single_kernel_helper_create_program_for_device(cl_context context,
cl_device_id device,
cl_program *outProgram,
unsigned int numKernelLines,
const char **kernelProgram,
const char *buildOptions = NULL,
const bool openclCXX = false);
/* Creates OpenCL C++ program. This one must be used for creating OpenCL C++ program. */
extern int create_openclcpp_program(cl_context context,
cl_program *outProgram,