summaryrefslogtreecommitdiff
path: root/test/correctness
diff options
context:
space:
mode:
authorCedric Nugteren <web@cedricnugteren.nl>2017-11-29 20:18:36 +0100
committerCedric Nugteren <web@cedricnugteren.nl>2017-11-29 20:18:36 +0100
commit0dde6af703816adb0d53f00a88d007199c953042 (patch)
treee36dcb9cce65f457d8a379f6a76cfc989553336b /test/correctness
parent1d35f65ceaaf36b96dd007c96137b79d75561cba (diff)
Extended the preprocessor tests to include CopyFast and CopyPad
Diffstat (limited to 'test/correctness')
-rw-r--r--test/correctness/misc/preprocessor.cpp20
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;