summaryrefslogtreecommitdiff
path: root/test/routines/level1/xscal.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/routines/level1/xscal.hpp')
-rw-r--r--test/routines/level1/xscal.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/routines/level1/xscal.hpp b/test/routines/level1/xscal.hpp
index 79926890..3c438bd6 100644
--- a/test/routines/level1/xscal.hpp
+++ b/test/routines/level1/xscal.hpp
@@ -72,7 +72,7 @@ class TestXscal {
auto status = Scal(args.n, args.alpha,
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;
}