Fixed breaking preprocessor test on certain platforms due to empty kernel string

This commit is contained in:
Cedric Nugteren 2018-03-15 20:45:41 +01:00
parent 9ff6cd7547
commit f4d96e80c3

View file

@ -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++; } if (TestKernel(device, context, "XgemmDirectTN", gemm_direct_sources, precision)) { passed++; } else { errors++; }
// HEMM // HEMM
const auto herm_sources = if (precision == Precision::kComplexSingle || precision == Precision::kComplexDouble) {
"#define ROUTINE_HEMM\n" const auto herm_sources =
#include "../src/kernels/level3/level3.opencl" "#define ROUTINE_HEMM\n"
#include "../src/kernels/level3/convert_hermitian.opencl" #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 (TestKernel(device, context, "HermLowerToSquared", herm_sources, precision)) { passed++; } else { errors++; }
}
// Prints and returns the statistics // Prints and returns the statistics
std::cout << std::endl; std::cout << std::endl;