summaryrefslogtreecommitdiff
path: root/test/routines/level2/xhemv.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/routines/level2/xhemv.hpp')
-rw-r--r--test/routines/level2/xhemv.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/routines/level2/xhemv.hpp b/test/routines/level2/xhemv.hpp
index dadd3975..80565d04 100644
--- a/test/routines/level2/xhemv.hpp
+++ b/test/routines/level2/xhemv.hpp
@@ -84,7 +84,7 @@ class TestXhemv {
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;
}