Skip to content

Commit

Permalink
restored relaxed version of mutable arguments tests
Browse files Browse the repository at this point in the history
  • Loading branch information
shajder committed Mar 28, 2024
1 parent 9243416 commit 490efa8
Showing 1 changed file with 3 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -157,9 +157,6 @@ struct MutableDispatchGlobalArguments : public MutableDispatchArgumentsTest
nullptr, nullptr);
test_error(error, "clEnqueueCommandBufferKHR failed");

error = clFinish(queue);
test_error(error, "clFinish failed");

// check the results of the initial execution
if (!verify_result(dst_buf_0)) return TEST_FAIL;

Expand Down Expand Up @@ -195,9 +192,6 @@ struct MutableDispatchGlobalArguments : public MutableDispatchArgumentsTest
nullptr, nullptr);
test_error(error, "clEnqueueCommandBufferKHR failed");

error = clFinish(queue);
test_error(error, "clFinish failed");

// Check the results of the modified execution
if (!verify_result(dst_buf_1)) return TEST_FAIL;

Expand Down Expand Up @@ -557,9 +551,6 @@ struct MutableDispatchNullArguments : public MutableDispatchArgumentsTest
nullptr, nullptr);
test_error(error, "clEnqueueCommandBufferKHR failed");

error = clFinish(queue);
test_error(error, "clFinish failed");

// Check the results of the initial execution
std::vector<cl_int> dst_data_0(num_elements);
error = clEnqueueReadBuffer(queue, out_mem, CL_TRUE, 0,
Expand Down Expand Up @@ -608,9 +599,6 @@ struct MutableDispatchNullArguments : public MutableDispatchArgumentsTest
nullptr, nullptr);
test_error(error, "clEnqueueCommandBufferKHR failed");

error = clFinish(queue);
test_error(error, "clFinish failed");

// Check the results of the modified execution
std::vector<cl_int> dst_data_1(num_elements);
error = clEnqueueReadBuffer(queue, out_mem, CL_TRUE, 0,
Expand Down Expand Up @@ -810,9 +798,6 @@ struct MutableDispatchSVMArguments : public MutableDispatchArgumentsTest
nullptr, nullptr);
test_error(error, "clEnqueueCommandBufferKHR failed");

error = clFinish(queue);
test_error(error, "clFinish failed");

// Check the results of the modified execution
error =
clEnqueueSVMMap(queue, CL_TRUE, CL_MAP_READ, new_buffer,
Expand All @@ -833,6 +818,9 @@ struct MutableDispatchSVMArguments : public MutableDispatchArgumentsTest
error = clEnqueueSVMUnmap(queue, new_buffer, 0, nullptr, nullptr);
test_error(error, "clEnqueueSVMUnmap failed for new_buffer");

error = clFinish(queue);
test_error(error, "clFinish failed");

// Clean up
clSVMFree(context, init_wrapper);
clSVMFree(context, init_buffer);
Expand Down

0 comments on commit 490efa8

Please sign in to comment.