summaryrefslogtreecommitdiff
path: root/test/routines/level2/xhbmv.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/routines/level2/xhbmv.hpp')
-rw-r--r--test/routines/level2/xhbmv.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/routines/level2/xhbmv.hpp b/test/routines/level2/xhbmv.hpp
index 01cb3f51..8bda4d0c 100644
--- a/test/routines/level2/xhbmv.hpp
+++ b/test/routines/level2/xhbmv.hpp
@@ -84,7 +84,7 @@ class TestXhbmv {
buffers.x_vec(), args.x_offset, args.x_inc, args.beta,
buffers.y_vec(), args.y_offset, args.y_inc,
&queue_plain, &event);
- clWaitForEvents(1, &event);
+ if (status == StatusCode::kSuccess) { clWaitForEvents(1, &event); clReleaseEvent(event); }
return status;
}