diff options
author | Cedric Nugteren <web@cedricnugteren.nl> | 2018-03-15 20:45:41 +0100 |
---|---|---|
committer | Cedric Nugteren <web@cedricnugteren.nl> | 2018-03-15 20:45:41 +0100 |
commit | f4d96e80c385404a59a17588386d4115fd0bef6b (patch) | |
tree | 5b017a4da974fe0d06662c00ee862d59eb600c7b | |
parent | 9ff6cd75474d95dc0d1dd2f2f52640fa86b412e9 (diff) |
Fixed breaking preprocessor test on certain platforms due to empty kernel string
-rw-r--r-- | test/correctness/misc/preprocessor.cpp | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/test/correctness/misc/preprocessor.cpp b/test/correctness/misc/preprocessor.cpp index 7944e868..c5d115d3 100644 --- a/test/correctness/misc/preprocessor.cpp +++ b/test/correctness/misc/preprocessor.cpp @@ -245,12 +245,14 @@ size_t RunPreprocessor(int argc, char *argv[], const bool silent, const Precisio if (TestKernel(device, context, "XgemmDirectTN", gemm_direct_sources, precision)) { passed++; } else { errors++; } // HEMM - const auto herm_sources = - "#define ROUTINE_HEMM\n" - #include "../src/kernels/level3/level3.opencl" - #include "../src/kernels/level3/convert_hermitian.opencl" - ; - if (TestKernel(device, context, "HermLowerToSquared", herm_sources, precision)) { passed++; } else { errors++; } + if (precision == Precision::kComplexSingle || precision == Precision::kComplexDouble) { + const auto herm_sources = + "#define ROUTINE_HEMM\n" + #include "../src/kernels/level3/level3.opencl" + #include "../src/kernels/level3/convert_hermitian.opencl" + ; + if (TestKernel(device, context, "HermLowerToSquared", herm_sources, precision)) { passed++; } else { errors++; } + } // Prints and returns the statistics std::cout << std::endl; |