Skip to content

Commit 4f87bba

Browse files
committed
Delete an "initialization" that should not be there.
1 parent a6143c5 commit 4f87bba

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

src/gpuarray_reduction.c

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,8 @@ struct redux_ctx{
112112

113113
uint32_t LSlice;
114114
uint64_t LPadded;
115-
uint64_t* L, *Li;
115+
uint64_t* L;
116+
uint32_t* Li;
116117
gpudata* S0Data;
117118
int64_t S0Off;
118119
int64_t* S0J, *S0Si;
@@ -2598,13 +2599,6 @@ static void reduxGenSrcAppendDecode (GpuReduction* gr){
25982599
" TK1* restrict const W1R = &W1[GDIM_0*D];\n"
25992600
" TK1* restrict const SHMEMK1 = (TK1*)(SHMEM + SHMEMK1Off);\n");
26002601
}
2601-
srcbAppends(&gr->srcGen,
2602-
" INITREDUXSTATE(W0L[LID_0], W1L[LID_0]);\n"
2603-
" INITREDUXSTATE(W0R[LID_0], W1R[LID_0]);\n"
2604-
" if(D < LDIM_0 && LID_0+D<H){\n"
2605-
" INITREDUXSTATE(W0L[LID_0+D], W1L[LID_0+D]);\n"
2606-
" INITREDUXSTATE(W0R[LID_0+D], W1R[LID_0+D]);\n"
2607-
" }\n");
26082602
}
26092603

26102604

@@ -3313,7 +3307,8 @@ static size_t reduxGenGetWMEMK1Off (const GpuReduction* gr, size
33133307
*/
33143308

33153309
static int reduxInvInit (redux_ctx* ctx){
3316-
ctx->L = ctx->Li = NULL;
3310+
ctx->L = NULL;
3311+
ctx->Li = NULL;
33173312
ctx->S0J = ctx->S0Si = NULL;
33183313
ctx->D0J = ctx->D0Si = NULL;
33193314
ctx->D1J = ctx->D1Si = NULL;

0 commit comments

Comments
 (0)