diff options
author | Cedric Nugteren <web@cedricnugteren.nl> | 2016-06-06 12:20:42 +0200 |
---|---|---|
committer | Cedric Nugteren <web@cedricnugteren.nl> | 2016-06-06 12:20:42 +0200 |
commit | c1895ea459d8084b49ced14eb08b77e551c5ba9c (patch) | |
tree | b5bcbf6ebc2bc2bd81f13f87a9979d317dc1d0c3 /test/correctness/testblas.cc | |
parent | e561e3fbd5d8fc598af120c17162b95bc8b8743b (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.cc | 5 |
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); |