diff options
author | Luo Xionghu <xionghu.luo@intel.com> | 2016-04-21 18:50:38 +0800 |
---|---|---|
committer | Yang Rong <rong.r.yang@intel.com> | 2016-04-22 18:12:46 +0800 |
commit | 2d5c0576f0bdf2ad739f3778623b85d15465ec83 (patch) | |
tree | 6eb675c8d9cd12e0853dc6183f83f80a24524584 /utests | |
parent | 5ba6932e872419cd5fef448475a5fd749f4a5215 (diff) |
buf[0] destroyed twice in event cases.
it will be destroyed at last.
Signed-off-by: Luo Xionghu <xionghu.luo@intel.com>
Reviewed-by: Yang Rong <rong.r.yang@intel.com>
Diffstat (limited to 'utests')
-rw-r--r-- | utests/runtime_barrier_list.cpp | 1 | ||||
-rw-r--r-- | utests/runtime_event.cpp | 1 | ||||
-rw-r--r-- | utests/runtime_marker_list.cpp | 1 |
3 files changed, 0 insertions, 3 deletions
diff --git a/utests/runtime_barrier_list.cpp b/utests/runtime_barrier_list.cpp index 135996f5..3b8d3c37 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 f8170a36..00e02f1d 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 f64b1d15..751f4a03 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]); |