Skip to content

Commit 6fb0793

Browse files
committed
Delete an "initialization" that should not be there.
1 parent c9a0389 commit 6fb0793

1 file changed

Lines changed: 4 additions & 9 deletions

File tree

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;
@@ -2607,13 +2608,6 @@ static void reduxGenSrcAppendDecode (GpuReduction* gr){
26072608
" TK1* restrict const W1R = &W1[GDIM_0*D];\n"
26082609
" TK1* restrict const SHMEMK1 = (TK1*)(SHMEM + SHMEMK1Off);\n");
26092610
}
2610-
srcbAppends(&gr->srcGen,
2611-
" INITREDUXSTATE(W0L[LID_0], W1L[LID_0]);\n"
2612-
" INITREDUXSTATE(W0R[LID_0], W1R[LID_0]);\n"
2613-
" if(D < LDIM_0 && LID_0+D<H){\n"
2614-
" INITREDUXSTATE(W0L[LID_0+D], W1L[LID_0+D]);\n"
2615-
" INITREDUXSTATE(W0R[LID_0+D], W1R[LID_0+D]);\n"
2616-
" }\n");
26172611
}
26182612

26192613

@@ -3322,7 +3316,8 @@ static size_t reduxGenGetWMEMK1Off (const GpuReduction* gr, size
33223316
*/
33233317

33243318
static int reduxInvInit (redux_ctx* ctx){
3325-
ctx->L = ctx->Li = NULL;
3319+
ctx->L = NULL;
3320+
ctx->Li = NULL;
33263321
ctx->S0J = ctx->S0Si = NULL;
33273322
ctx->D0J = ctx->D0Si = NULL;
33283323
ctx->D1J = ctx->D1Si = NULL;

0 commit comments

Comments
 (0)