Skip to content

Commit 53d25ef

Browse files
author
Mark Gates
committed
syr2: Y uses incy, not incx
1 parent 0e0c95c commit 53d25ef

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
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);

0 commit comments

Comments
 (0)