diff options
author | Cedric Nugteren <web@cedricnugteren.nl> | 2017-11-29 20:18:36 +0100 |
---|---|---|
committer | Cedric Nugteren <web@cedricnugteren.nl> | 2017-11-29 20:18:36 +0100 |
commit | 0dde6af703816adb0d53f00a88d007199c953042 (patch) | |
tree | e36dcb9cce65f457d8a379f6a76cfc989553336b /test/correctness | |
parent | 1d35f65ceaaf36b96dd007c96137b79d75561cba (diff) |
Extended the preprocessor tests to include CopyFast and CopyPad
Diffstat (limited to 'test/correctness')
-rw-r--r-- | test/correctness/misc/preprocessor.cpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/test/correctness/misc/preprocessor.cpp b/test/correctness/misc/preprocessor.cpp index 5df27111..bcc65700 100644 --- a/test/correctness/misc/preprocessor.cpp +++ b/test/correctness/misc/preprocessor.cpp @@ -90,11 +90,31 @@ size_t RunPreprocessor(int argc, char *argv[], const bool silent, "#define WPT1 2\n" "#define WPT2 2\n" "#define WPT3 2\n" + "#define UNROLL1 4\n" #include "../src/kernels/level2/xgemv.opencl" #include "../src/kernels/level2/xgemv_fast.opencl" ; if (TestKernel(device, context, "XgemvFast", xgemv_sources, precision)) { passed++; } else { errors++; } + // CopyFast + const auto copy_fast_sources = + "#define COPY_WPT 2\n" + #include "../src/kernels/level3/level3.opencl" + #include "../src/kernels/level3/copy_fast.opencl" + ; + if (TestKernel(device, context, "CopyMatrixFast", copy_fast_sources, precision)) { passed++; } else { errors++; } + + // CopyPad + const auto copy_pad_sources = + "#define PAD_WPTX 2\n" + "#define PAD_WPTY 2\n" +#include "../src/kernels/level3/level3.opencl" +#include "../src/kernels/level3/copy_pad.opencl" + ; + if (TestKernel(device, context, "CopyPadMatrix", copy_pad_sources, precision)) { passed++; } else { errors++; } + + + // Prints and returns the statistics std::cout << std::endl; std::cout << " " << passed << " test(s) passed" << std::endl; |