Skip to content

Commit 199b7c0

Browse files
authored
Merge pull request #290 from mgates3/develop
ixamax and syr2/her2 bugs
2 parents b96c1a0 + 53d25ef commit 199b7c0

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

src/library/blas/gens/clTemplates/her2.cl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,8 @@ __kernel void %PREFIXher2_CL_kernel( __global const %TYPE* _A, __global const %T
138138
%CONJUGATE(1, res1);
139139
#endif
140140
%MUL( res5, alpha, res1 );
141-
res1 = Y[c * incx];
142-
res3 = Y[r * incx];
141+
res1 = Y[c * incy];
142+
res3 = Y[r * incy];
143143
#ifndef HER2_ROWMAJOR
144144
%CONJUGATE(1, res1);
145145
#endif
@@ -461,8 +461,8 @@ __kernel void %PREFIXher2_CU_kernel( __global const %TYPE* _A, __global const %T
461461
%CONJUGATE(1, res1);
462462
#endif
463463
%MUL( res5, alpha, res1 );
464-
res1 = Y[c * incx];
465-
res3 = Y[r * incx];
464+
res1 = Y[c * incy];
465+
res3 = Y[r * incy];
466466
#ifndef HER2_ROWMAJOR
467467
%CONJUGATE(1, res1);
468468
#endif

src/library/blas/gens/clTemplates/syr2.cl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,9 +128,9 @@ __kernel void %PREFIXsyr2_CL_kernel( __global const %TYPE* _A, __global const %T
128128

129129
%TYPE res1, res2;
130130
res1 = alpha * X[c * incx];
131-
res2 = alpha * X[r * incx];
132-
res1 = res1 * Y[r * incx];
133-
res2 = res2 * Y[c * incx];
131+
res2 = alpha * X[r * incx];
132+
res1 = res1 * Y[r * incy];
133+
res2 = res2 * Y[c * incy];
134134

135135
A[r + c * lda] += (res1 + res2);
136136
}

src/library/blas/gens/clTemplates/syr2_her2.cl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -148,8 +148,8 @@ __kernel void %PREFIXsyr2_her2_CL_kernel( __global %TYPE* _A, __global const %TY
148148
#endif
149149
#endif
150150
%MUL( res5, alpha, res1 );
151-
res1 = Y[c * incx];
152-
res3 = Y[r * incx];
151+
res1 = Y[c * incy];
152+
res3 = Y[r * incy];
153153
#ifdef HER2_ONLY
154154
#ifndef HER2_ROWMAJOR
155155
%CONJUGATE(1, res1);
@@ -514,8 +514,8 @@ __kernel void %PREFIXsyr2_her2_CU_kernel( __global %TYPE* _A, __global const %TY
514514
#endif
515515
#endif
516516
%MUL( res5, alpha, res1 );
517-
res1 = Y[c * incx];
518-
res3 = Y[r * incx];
517+
res1 = Y[c * incy];
518+
res3 = Y[r * incy];
519519
#ifdef HER2_ONLY
520520
#ifndef HER2_ROWMAJOR
521521
%CONJUGATE(1, res1);

src/library/blas/gens/iamax.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ selectVectorization(
108108
KernelExtraFlags kflags = KEXTRA_NO_FLAGS;
109109
CLBlasKargs *kargs = (CLBlasKargs *)args;
110110

111-
if( (((kargs->offa) % vlen) != 0))
111+
if( (((kargs->offb) % vlen) != 0))
112112
{
113113
kflags = KEXTRA_NO_COPY_VEC_A;
114114
}

0 commit comments

Comments
 (0)