diff options
author | Cedric Nugteren <web@cedricnugteren.nl> | 2017-12-09 15:16:53 +0100 |
---|---|---|
committer | Cedric Nugteren <web@cedricnugteren.nl> | 2017-12-09 15:16:53 +0100 |
commit | ca5dbcd2bd31fb0a0e3f6c2f81b3c0fff6250738 (patch) | |
tree | bcf35f0d78f4d12d31a4224af3552e1517830d83 /test/correctness | |
parent | 02c0d640375591b46f9838489e4beb9936508888 (diff) |
Made the pre-processor run by default for ARM and Qualcomm GPUs
Diffstat (limited to 'test/correctness')
-rw-r--r-- | test/correctness/misc/preprocessor.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/correctness/misc/preprocessor.cpp b/test/correctness/misc/preprocessor.cpp index b6a12a38..92ca2490 100644 --- a/test/correctness/misc/preprocessor.cpp +++ b/test/correctness/misc/preprocessor.cpp @@ -120,13 +120,13 @@ bool TestKernel(const Device& device, const Context& context, // Verifies that the current kernel compiles properly (assumes so, otherwise throws an error) auto compiler_options_ref = std::vector<std::string>(); const auto program_ref = CompileFromSource(kernel_source, precision, kernel_name, - device, context, compiler_options_ref, false); + device, context, compiler_options_ref, 2); // Compiles the same kernel, but now with the pre-processor enabled try { auto compiler_options = std::vector<std::string>(); const auto program = CompileFromSource(kernel_source, precision, kernel_name, - device, context, compiler_options, true); + device, context, compiler_options, 1); return true; } catch (const CLCudaAPIBuildError &e) { fprintf(stdout, "* ERROR: Compilation warnings/errors with pre-processed kernel, status %d\n", @@ -219,7 +219,7 @@ size_t RunPreprocessor(int argc, char *argv[], const bool silent, const Precisio #include "../src/kernels/level3/level3.opencl" #include "../src/kernels/level3/transpose_pad.opencl" ; - //if (TestKernel(device, context, "TransposePadMatrix", transpose_pad_sources, precision)) { passed++; } else { errors++; } + if (TestKernel(device, context, "TransposePadMatrix", transpose_pad_sources, precision)) { passed++; } else { errors++; } // GEMM (in-direct) const auto gemm_sources = |