Skip to content
Snippets Groups Projects
Commit 9253d3f9 authored by Gary Frost's avatar Gary Frost
Browse files

No commit message

No commit message
parent 66a83f8a
No related branches found
No related tags found
No related merge requests found
...@@ -718,7 +718,12 @@ JNI_JAVA(jint, KernelRunner, runKernelJNI) ...@@ -718,7 +718,12 @@ JNI_JAVA(jint, KernelRunner, runKernelJNI)
if (jniContext->firstRun && jniContext->isProfilingEnabled()){ if (jniContext->firstRun && jniContext->isProfilingEnabled()){
cl_event firstEvent; cl_event firstEvent;
#ifdef CL_VERSION_1_2
status = clEnqueueMarkerWithWaitList(jniContext->commandQueue, 0, NULL, &firstEvent);
#else
// this was deprecated in 1.1
status = clEnqueueMarker(jniContext->commandQueue, &firstEvent); status = clEnqueueMarker(jniContext->commandQueue, &firstEvent);
#endif
if (status != CL_SUCCESS) { if (status != CL_SUCCESS) {
PRINT_CL_ERR(status, "clEnqueueMarker endOfTxfers"); PRINT_CL_ERR(status, "clEnqueueMarker endOfTxfers");
return 0L; return 0L;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment