summaryrefslogtreecommitdiff
path: root/utests/runtime_marker_list.cpp
diff options
context:
space:
mode:
authorLuo Xionghu <xionghu.luo@intel.com>2016-04-21 18:50:38 +0800
committerYang Rong <rong.r.yang@intel.com>2016-04-22 18:12:46 +0800
commit2d5c0576f0bdf2ad739f3778623b85d15465ec83 (patch)
tree6eb675c8d9cd12e0853dc6183f83f80a24524584 /utests/runtime_marker_list.cpp
parent5ba6932e872419cd5fef448475a5fd749f4a5215 (diff)
downloadbeignet-2d5c0576f0bdf2ad739f3778623b85d15465ec83.tar.gz
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/runtime_marker_list.cpp')
-rw-r--r--utests/runtime_marker_list.cpp1
1 files changed, 0 insertions, 1 deletions
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]);