summaryrefslogtreecommitdiff
path: root/src/kernels/level3
diff options
context:
space:
mode:
authorCedric Nugteren <web@cedricnugteren.nl>2018-09-15 19:58:07 +0200
committerCedric Nugteren <web@cedricnugteren.nl>2018-09-15 19:58:07 +0200
commit0f6dd01e513db036191786aed3d03a77e2e8c5dc (patch)
tree22cda490c8368316335def07a3eff5afdbf5b3bf /src/kernels/level3
parent9bedaa752dc999224edf73eb5dd7e1c41662928f (diff)
Fixed an MSVC compilation error due to large strings
Diffstat (limited to 'src/kernels/level3')
-rw-r--r--src/kernels/level3/xgemm_part1.opencl6
-rw-r--r--src/kernels/level3/xgemm_part2.opencl6
-rw-r--r--src/kernels/level3/xgemm_part3.opencl10
-rw-r--r--src/kernels/level3/xgemm_part4.opencl4
4 files changed, 6 insertions, 20 deletions
diff --git a/src/kernels/level3/xgemm_part1.opencl b/src/kernels/level3/xgemm_part1.opencl
index 3cfc5dfb..80a60107 100644
--- a/src/kernels/level3/xgemm_part1.opencl
+++ b/src/kernels/level3/xgemm_part1.opencl
@@ -43,8 +43,6 @@
// literal). Comment-out this line for syntax-highlighting when developing.
R"(
-// =================================================================================================
-
// Parameters set by the tuner or by the database. Here they are given a basic default value in case
// this kernel file is used outside of the CLBlast library.
#ifndef GEMMK
@@ -397,9 +395,7 @@ INLINE_FUNC realN LocalToPrivateB(LOCAL_PTR realN* blm, const int _ni, const int
}
#endif
-// =================================================================================================
-
-// End of the C++11 raw string literal
)"
+// End of the C++11 raw string literal
// =================================================================================================
diff --git a/src/kernels/level3/xgemm_part2.opencl b/src/kernels/level3/xgemm_part2.opencl
index 17c8955a..ee4d5da5 100644
--- a/src/kernels/level3/xgemm_part2.opencl
+++ b/src/kernels/level3/xgemm_part2.opencl
@@ -15,8 +15,6 @@
// literal). Comment-out this line for syntax-highlighting when developing.
R"(
-// =================================================================================================
-
// The vectorised multiply-add function
INLINE_FUNC realM MultiplyAddVector(realM cvec, const realM avec, const real bval) {
#if USE_VECTOR_MAD == 1
@@ -171,9 +169,7 @@ INLINE_FUNC void StoreResults(__global realM* cgm, realM c_value, const int _mi,
cgm[index] = result;
}
-// =================================================================================================
-
-// End of the C++11 raw string literal
)"
+// End of the C++11 raw string literal
// =================================================================================================
diff --git a/src/kernels/level3/xgemm_part3.opencl b/src/kernels/level3/xgemm_part3.opencl
index e6cee30e..77964a94 100644
--- a/src/kernels/level3/xgemm_part3.opencl
+++ b/src/kernels/level3/xgemm_part3.opencl
@@ -15,14 +15,12 @@
// literal). Comment-out this line for syntax-highlighting when developing.
R"(
-// =================================================================================================
-
// A common interface for subgroup functions
#if USE_SUBGROUP_SHUFFLING == 1
INLINE_FUNC int clblast_get_sub_group_local_id() {
-
+
// Intel extension
#if SUBGROUP_SHUFFLING_INTEL == 1
return get_sub_group_local_id();
@@ -36,7 +34,7 @@ INLINE_FUNC int clblast_get_sub_group_local_id() {
}
INLINE_FUNC realN clblast_sub_group_shuffle(realN reg, int src) {
-
+
// Intel extension
#if SUBGROUP_SHUFFLING_INTEL == 1
return intel_sub_group_shuffle(reg, src);
@@ -310,9 +308,7 @@ INLINE_FUNC void XgemmBody(const int kSizeM, const int kSizeN, const int kSizeK,
}
}
-// =================================================================================================
-
-// End of the C++11 raw string literal
)"
+// End of the C++11 raw string literal
// =================================================================================================
diff --git a/src/kernels/level3/xgemm_part4.opencl b/src/kernels/level3/xgemm_part4.opencl
index e581cd84..b1f1ade6 100644
--- a/src/kernels/level3/xgemm_part4.opencl
+++ b/src/kernels/level3/xgemm_part4.opencl
@@ -15,7 +15,6 @@
// literal). Comment-out this line for syntax-highlighting when developing.
R"(
-// =================================================================================================
// The upper-triangular and lower-triangular kernels are only used in special cases
#if defined(ROUTINE_SYRK) || defined(ROUTINE_HERK) || defined(ROUTINE_SYR2K) || defined(ROUTINE_HER2K)
@@ -132,9 +131,8 @@ void Xgemm(const int kSizeM, const int kSizeN, const int kSizeK,
}
#endif
-// =================================================================================================
-// End of the C++11 raw string literal
)"
+// End of the C++11 raw string literal
// =================================================================================================