summaryrefslogtreecommitdiff
path: root/test/correctness/testblas.cc
diff options
context:
space:
mode:
authorCedric Nugteren <web@cedricnugteren.nl>2016-06-06 12:20:42 +0200
committerCedric Nugteren <web@cedricnugteren.nl>2016-06-06 12:20:42 +0200
commitc1895ea459d8084b49ced14eb08b77e551c5ba9c (patch)
treeb5bcbf6ebc2bc2bd81f13f87a9979d317dc1d0c3 /test/correctness/testblas.cc
parente561e3fbd5d8fc598af120c17162b95bc8b8743b (diff)
Made the tests for invalid buffer sizes also verbose in verbose mode
Diffstat (limited to 'test/correctness/testblas.cc')
-rw-r--r--test/correctness/testblas.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/correctness/testblas.cc b/test/correctness/testblas.cc
index 04bd3aa3..e5addc48 100644
--- a/test/correctness/testblas.cc
+++ b/test/correctness/testblas.cc
@@ -181,6 +181,11 @@ void TestBlas<T,U>::TestInvalid(std::vector<Arguments<U>> &test_vector, const st
// Iterates over all the to-be-tested combinations of arguments
for (auto &args: test_vector) {
+ // Prints the current test configuration
+ if (verbose_) {
+ fprintf(stdout, " Config: %s-> ", GetSizesString(args).c_str());
+ }
+
// Creates the OpenCL buffers. Note: we are not using the C++ version since we explicitly
// want to be able to create invalid buffers (no error checking here).
auto x1 = clCreateBuffer(context_(), CL_MEM_READ_WRITE, args.x_size*sizeof(T), nullptr,nullptr);