summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorCedric Nugteren <web@cedricnugteren.nl>2018-09-15 21:47:04 +0200
committerGitHub <noreply@github.com>2018-09-15 21:47:04 +0200
commitc163868e1822a97750b4380f0d9cdd38369f9f0b (patch)
treefbdbc5b5697be8cf4237cc11f87d0b1649f4190d /test
parent91dbd580ab2f5d2363d51ba4e3fc9735f1c7a937 (diff)
parent0f6dd01e513db036191786aed3d03a77e2e8c5dc (diff)
Merge pull request #318 from CNugteren/CLBlast-315-preprocessor-gemmk1-issue
Fixed pre-processor issues with the new GEMMK=1 kernel
Diffstat (limited to 'test')
-rw-r--r--test/correctness/misc/preprocessor.cpp14
1 files changed, 13 insertions, 1 deletions
diff --git a/test/correctness/misc/preprocessor.cpp b/test/correctness/misc/preprocessor.cpp
index c5d115d3..4d6fa114 100644
--- a/test/correctness/misc/preprocessor.cpp
+++ b/test/correctness/misc/preprocessor.cpp
@@ -221,7 +221,7 @@ size_t RunPreprocessor(int argc, char *argv[], const bool silent, const Precisio
;
if (TestKernel(device, context, "TransposePadMatrix", transpose_pad_sources, precision)) { passed++; } else { errors++; }
- // GEMM (in-direct)
+ // GEMM (in-direct) GEMMK==0
const auto gemm_sources =
"#define KWI 2\n"
"#define MWG 16\n"
@@ -234,6 +234,18 @@ size_t RunPreprocessor(int argc, char *argv[], const bool silent, const Precisio
;
if (TestKernel(device, context, "Xgemm", gemm_sources, precision)) { passed++; } else { errors++; }
+ // GEMM (in-direct) GEMMK==1
+ const auto gemm_sources_gemmk1 =
+ "#define MWG 16\n"
+ "#define NWG 16\n"
+ "#define GEMMK 1\n"
+ #include "../src/kernels/level3/xgemm_part1.opencl"
+ #include "../src/kernels/level3/xgemm_part2.opencl"
+ #include "../src/kernels/level3/xgemm_part3.opencl"
+ #include "../src/kernels/level3/xgemm_part4.opencl"
+ ;
+ if (TestKernel(device, context, "Xgemm", gemm_sources_gemmk1, precision)) { passed++; } else { errors++; }
+
// GEMM (direct)
const auto gemm_direct_sources =
"#define KWID 2\n"