mirror of
https://github.com/CNugteren/CLBlast.git
synced 2024-08-26 14:57:02 +02:00
Added printing of indices when testing in verbose mode
This commit is contained in:
parent
f18c12389d
commit
56aa1701c9
|
@ -143,7 +143,8 @@ void TestBlas<T,U>::TestRegular(std::vector<Arguments<U>> &test_vector, const st
|
||||||
if (!TestSimilarity(result1[index], result2[index])) {
|
if (!TestSimilarity(result1[index], result2[index])) {
|
||||||
errors++;
|
errors++;
|
||||||
if (verbose_) {
|
if (verbose_) {
|
||||||
fprintf(stdout, "\n Incorrect value found: ");
|
if (get_id2_(args) == 1) { fprintf(stdout, "\n Error at index %lu: ", id1); }
|
||||||
|
else { fprintf(stdout, "\n Error at %lu,%lu: ", id1, id2); }
|
||||||
std::cout << result1[index];
|
std::cout << result1[index];
|
||||||
fprintf(stdout, " (reference) versus ");
|
fprintf(stdout, " (reference) versus ");
|
||||||
std::cout << result2[index];
|
std::cout << result2[index];
|
||||||
|
|
Loading…
Reference in a new issue