Skip to content

Commit 20ae36b

Browse files
authored
Merge pull request #5595 from amritahs-ibm/fix_dgemm_warnings
Fixing warning messages in dgemm and dgemv kernels
2 parents 7e612b6 + b53d18b commit 20ae36b

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

kernel/power/dgemm_kernel_power10.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,9 @@ typedef FLOAT v4sf_t __attribute__ ((vector_size (16)));
9393
rowC[0] += result[1] * alpha;
9494
#endif
9595
#define KERNEL(i) \
96-
rowA = (vec_t *)&AO[i<< 3];\
97-
rowB = *((__vector_pair *)((void *)&BO[i << 3]));\
98-
rowB1 = *((__vector_pair *)((void *)&BO[(i << 3) + 4]));\
96+
rowA = (vec_t *)&AO[(i)<< 3];\
97+
rowB = *((__vector_pair *)((void *)&BO[(i) << 3]));\
98+
rowB1 = *((__vector_pair *)((void *)&BO[((i) << 3) + 4]));\
9999
__builtin_mma_xvf64gerpp(&acc0, rowB, rowA[0]);\
100100
__builtin_mma_xvf64gerpp(&acc1, rowB1, rowA[0]);\
101101
__builtin_mma_xvf64gerpp(&acc2, rowB, rowA[1]);\

kernel/power/dgemv_n_microk_power10.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,7 @@ static void dgemv_kernel_4x2(BLASLONG n, FLOAT *a0, FLOAT *a1, FLOAT *xo, FLOAT
5252

5353
static void dgemv_kernel_4x1(BLASLONG n, FLOAT *a0, FLOAT *xo, FLOAT *y, FLOAT alpha)
5454
{
55-
BLASLONG i;
56-
FLOAT x[1] __attribute__ ((aligned (16)));
57-
58-
FLOAT x0,x1;
55+
FLOAT x0;
5956
x0 = xo[0] * alpha;
6057

6158
__vector double v_x0 = {x0,x0};

0 commit comments

Comments
 (0)