summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCedric Nugteren <web@cedricnugteren.nl>2016-10-03 20:13:19 +0200
committerCedric Nugteren <web@cedricnugteren.nl>2016-10-03 20:13:19 +0200
commit7052a00a3edc0d37444c88914ece4c468c3e4e96 (patch)
treea7721be77dd3f0c3c4146cde84d5f427e4f6c8db /src
parentca0c075de2a73f250046876b0ca5f90dc4ef0e77 (diff)
Fixed a const-correctness issue with complex conjugation in the GEMM direct kernel
Diffstat (limited to 'src')
-rw-r--r--src/kernels/level3/xgemm_direct_part2.opencl8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/kernels/level3/xgemm_direct_part2.opencl b/src/kernels/level3/xgemm_direct_part2.opencl
index 5f5c6883..d77cbf65 100644
--- a/src/kernels/level3/xgemm_direct_part2.opencl
+++ b/src/kernels/level3/xgemm_direct_part2.opencl
@@ -188,7 +188,7 @@ inline void GlobalToLocalScalarA(const __global real* restrict agms, __local rea
int idk = (a_transpose) ? kg + GetGroupID0()*WGD : kg + kwg;
// Loads the data from global memory into the local memory
- const real result = agms[idk*a_ld + idm + a_offset];
+ real result = agms[idk*a_ld + idm + a_offset];
if (a_conjugate) { COMPLEX_CONJUGATE(result); }
alm[kg*(WGD + PADA) + mg] = result;
}
@@ -219,7 +219,7 @@ inline void GlobalToLocalScalarB(const __global real* restrict bgms, __local rea
int idk = (b_transpose) ? kg + GetGroupID1()*WGD : kg + kwg;
// Loads the data from global memory into the local memory
- const real result = bgms[idk*b_ld + idn + b_offset];
+ real result = bgms[idk*b_ld + idn + b_offset];
if (b_conjugate) { COMPLEX_CONJUGATE(result); }
blm[kg*(WGD + PADB) + ng] = result;
}
@@ -257,7 +257,7 @@ inline void GlobalToLocalCheckedA(const __global real* restrict agms, __local re
// Loads the data from global memory into the local memory
int condition = (a_transpose) ? idm < kSizeK : idm < kSizeM;
if (condition) {
- const real result = agms[idk*a_ld + idm + a_offset];
+ real result = agms[idk*a_ld + idm + a_offset];
if (a_conjugate) { COMPLEX_CONJUGATE(result); }
alm[kg*(WGD + PADA) + mg] = result;
}
@@ -295,7 +295,7 @@ inline void GlobalToLocalCheckedB(const __global real* restrict bgms, __local re
// Loads the data from global memory into the local memory
int condition = (b_transpose) ? idn < kSizeK : idn < kSizeN;
if (condition) {
- const real result = bgms[idk*b_ld + idn + b_offset];
+ real result = bgms[idk*b_ld + idn + b_offset];
if (b_conjugate) { COMPLEX_CONJUGATE(result); }
blm[kg*(WGD + PADB) + ng] = result;
}