From: Luo Xionghu <[email protected]> it will be destroyed at last.
Signed-off-by: Luo Xionghu <[email protected]> --- utests/runtime_barrier_list.cpp | 1 - utests/runtime_event.cpp | 1 - utests/runtime_marker_list.cpp | 1 - 3 files changed, 3 deletions(-) diff --git a/utests/runtime_barrier_list.cpp b/utests/runtime_barrier_list.cpp index 135996f..3b8d3c3 100644 --- a/utests/runtime_barrier_list.cpp +++ b/utests/runtime_barrier_list.cpp @@ -65,7 +65,6 @@ void runtime_barrier_list(void) for (uint32_t i = 0; i < n; ++i) { OCL_ASSERT(((int*)buf_data[0])[i] == (int)value + 0x3); } - clEnqueueUnmapMemObject(queue, buf[0], buf_data[0], 0, NULL, NULL); for (cl_uint i = 0; i != sizeof(ev) / sizeof(cl_event); ++i) { clReleaseEvent(ev[i]); diff --git a/utests/runtime_event.cpp b/utests/runtime_event.cpp index f8170a3..00e02f1 100644 --- a/utests/runtime_event.cpp +++ b/utests/runtime_event.cpp @@ -50,7 +50,6 @@ void runtime_event(void) for (uint32_t i = 0; i < n; ++i) { OCL_ASSERT(((int*)buf_data[0])[i] == (int)value + 0x3); } - clEnqueueUnmapMemObject(queue, buf[0], buf_data[0], 0, NULL, NULL); for (cl_uint i = 0; i != sizeof(ev) / sizeof(cl_event); ++i) { clReleaseEvent(ev[i]); diff --git a/utests/runtime_marker_list.cpp b/utests/runtime_marker_list.cpp index f64b1d1..751f4a0 100644 --- a/utests/runtime_marker_list.cpp +++ b/utests/runtime_marker_list.cpp @@ -65,7 +65,6 @@ void runtime_marker_list(void) for (uint32_t i = 0; i < n; ++i) { OCL_ASSERT(((int*)buf_data[0])[i] == (int)value + 0x3); } - clEnqueueUnmapMemObject(queue, buf[0], buf_data[0], 0, NULL, NULL); for (cl_uint i = 0; i != sizeof(ev) / sizeof(cl_event); ++i) { clReleaseEvent(ev[i]); -- 2.1.4 _______________________________________________ Beignet mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/beignet
