Commit 7d3357c9 by Marcus Winter

mtapi_opencl_c: added check for successful dynamic linking of opencl runtime

parent 7f904252
......@@ -258,8 +258,8 @@ void mtapi_opencl_plugin_initialize(
cl_int err;
embb_mtapi_opencl_plugin_t * plugin = &embb_mtapi_opencl_plugin;
embb_mtapi_opencl_link_at_runtime();
err = embb_mtapi_opencl_link_at_runtime();
if (err != 0) {
err = clGetPlatformIDs(1, &plugin->platform_id, NULL);
if (CL_SUCCESS == err) {
err = clGetDeviceIDs(plugin->platform_id, CL_DEVICE_TYPE_DEFAULT,
......@@ -284,6 +284,7 @@ void mtapi_opencl_plugin_initialize(
if (CL_SUCCESS == err) {
local_status = MTAPI_SUCCESS;
}
}
mtapi_status_set(status, local_status);
}
......
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 sign in to comment