Skip to content

Commit

Permalink
Update Src/Base/AMReX_GpuLaunchFunctsG.H
Browse files Browse the repository at this point in the history
Co-authored-by: Alexander Sinn <[email protected]>
  • Loading branch information
WeiqunZhang and AlexanderSinn authored Oct 16, 2024
1 parent 89d45c5 commit a2c2201
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Src/Base/AMReX_GpuLaunchFunctsG.H
Original file line number Diff line number Diff line change
Expand Up @@ -809,7 +809,7 @@ ParallelFor (Gpu::KernelInfo const&, T n, L const& f) noexcept
auto tid = T(MT)*T(blockIdx.x)+T(threadIdx.x);
if (tid < nleft) {
detail::call_f_scalar_handler(f, tid+ndone,
Gpu::Handler(amrex::min((std::uint64_t(nleft)-tid+(std::uint64_t)threadIdx.x),
Gpu::Handler(amrex::min((std::uint64_t(nleft-tid)+(std::uint64_t)threadIdx.x),
(std::uint64_t)blockDim.x)));
}
});
Expand Down

0 comments on commit a2c2201

Please sign in to comment.