Skip to content

Commit

Permalink
nvector: ternary atomic test 3
Browse files Browse the repository at this point in the history
  • Loading branch information
jsdomine committed Jul 7, 2023
1 parent 26c41f8 commit 7383657
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/nvector/parhyp/nvector_parhyp.c
Original file line number Diff line number Diff line change
Expand Up @@ -1212,14 +1212,14 @@ realtype N_VWSqrSumMaskLocal_ParHyp(N_Vector x, N_Vector w, N_Vector id)
const size_t buffer_size = atomic ? 1 : grid;
NV_CATCH_ERR_PH(InitializeReductionBuffer(x, sum, buffer_size))

wL2NormSquareMaskKernel<realtype, sunindextype, (atomic?GridReducerAtomic:GridReducerLDS)><<<grid, block, shMemSize, stream>>>
wL2NormSquareMaskKernel<realtype, sunindextype, (atomic ? GridReducerAtomic : GridReducerLDS)><<<grid, block, shMemSize, stream>>>
(
xd,
wd,
idd,
NV_DBUFFERp_PH(x),
N,
(atomic?nullptr:NV_DCOUNTERp_PH(x))
(atomic ? nullptr : NV_DCOUNTERp_PH(x))
);
// if (atomic)
// {
Expand Down

0 comments on commit 7383657

Please sign in to comment.