Skip to content

Commit

Permalink
Fix Warning
Browse files Browse the repository at this point in the history
  • Loading branch information
WeiqunZhang committed Oct 12, 2024
1 parent efda45f commit 3bbf233
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Src/Base/AMReX_GpuLaunchFunctsG.H
Original file line number Diff line number Diff line change
Expand Up @@ -764,7 +764,7 @@ void launch (T const& n, L const& f) noexcept
f(tid+ndone);
}
});
if (nleft > ec.ntotalthreads) {
if (Long(nleft) > ec.ntotalthreads) {
ndone += T(ec.ntotalthreads);
}
}
Expand Down Expand Up @@ -813,7 +813,7 @@ ParallelFor (Gpu::KernelInfo const&, T n, L const& f) noexcept
(std::uint64_t)blockDim.x)));
}
});
if (nleft > ec.ntotalthreads) {
if (Long(nleft) > ec.ntotalthreads) {
ndone += ec.ntotalthreads;
}
}
Expand Down

0 comments on commit 3bbf233

Please sign in to comment.