summaryrefslogtreecommitdiff
path: root/test/routines/level2/xtpmv.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/routines/level2/xtpmv.hpp')
-rw-r--r--test/routines/level2/xtpmv.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/routines/level2/xtpmv.hpp b/test/routines/level2/xtpmv.hpp
index 9776c4de..d08e132f 100644
--- a/test/routines/level2/xtpmv.hpp
+++ b/test/routines/level2/xtpmv.hpp
@@ -78,7 +78,7 @@ class TestXtpmv {
buffers.ap_mat(), args.ap_offset,
buffers.x_vec(), args.x_offset, args.x_inc,
&queue_plain, &event);
- clWaitForEvents(1, &event);
+ if (status == StatusCode::kSuccess) { clWaitForEvents(1, &event); clReleaseEvent(event); }
return status;
}