Skip to content

Commit

Permalink
really have to do this?
Browse files Browse the repository at this point in the history
  • Loading branch information
clamchowder committed Dec 15, 2024
1 parent 63ce3c0 commit 3136215
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions svm/svmtest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,8 @@ float runBufferSharingTest(cl_context context, cl_command_queue command_queue)
{
if (!fineGrainedSupport)
{
clEnqueueSVMUnmap(command_queue, testptr, 0, NULL, &buffer_evt);
clWaitForEvents(1, &buffer_evt);
clEnqueueSVMUnmap(command_queue, testptr, 0, NULL, NULL);
clFinish(command_queue);
}


Expand All @@ -174,8 +174,9 @@ float runBufferSharingTest(cl_context context, cl_command_queue command_queue)

clWaitForEvents(1, &evt);
if (!fineGrainedSupport) {
clEnqueueSVMMap(command_queue, CL_NON_BLOCKING, CL_MAP_READ | CL_MAP_WRITE, testptr, ALLOC_SIZE, 0, NULL, &buffer_evt);
clWaitForEvents(1, &buffer_evt);
clEnqueueSVMMap(command_queue, CL_NON_BLOCKING, CL_MAP_READ | CL_MAP_WRITE, testptr, ALLOC_SIZE, 0, NULL, NULL);
//clWaitForEvents(1, &buffer_evt);
clFinish(command_queue);
}

if (*testptr == current - 1)
Expand Down

0 comments on commit 3136215

Please sign in to comment.