summaryrefslogtreecommitdiff
path: root/test/routines/level3/xsymm.hpp
diff options
context:
space:
mode:
authorCedric Nugteren <web@cedricnugteren.nl>2016-09-22 20:47:22 +0200
committerCedric Nugteren <web@cedricnugteren.nl>2016-09-22 20:47:22 +0200
commitd595a8ed7e416dd40c2971ef5e3ec7f36b7db362 (patch)
tree054e0d97b5f26c3d40b5e9d863e5b009423b978a /test/routines/level3/xsymm.hpp
parentb1929d8ce7022cacbd1812d62098ebd0681bc1ef (diff)
Fixed a bug waiting for an invalid event in case of a non-succesfull CLBlast call in the tests and samples
Diffstat (limited to 'test/routines/level3/xsymm.hpp')
-rw-r--r--test/routines/level3/xsymm.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/routines/level3/xsymm.hpp b/test/routines/level3/xsymm.hpp
index f8e90927..c84c22b4 100644
--- a/test/routines/level3/xsymm.hpp
+++ b/test/routines/level3/xsymm.hpp
@@ -92,7 +92,7 @@ class TestXsymm {
buffers.b_mat(), args.b_offset, args.b_ld, args.beta,
buffers.c_mat(), args.c_offset, args.c_ld,
&queue_plain, &event);
- clWaitForEvents(1, &event);
+ if (status == StatusCode::kSuccess) { clWaitForEvents(1, &event); clReleaseEvent(event); }
return status;
}