Skip to content

Commit

Permalink
GpuLaunchFuntsG done
Browse files Browse the repository at this point in the history
  • Loading branch information
WeiqunZhang committed Feb 2, 2024
1 parent 632ee5f commit a0e4963
Show file tree
Hide file tree
Showing 3 changed files with 152 additions and 290 deletions.
6 changes: 3 additions & 3 deletions Src/Base/AMReX_Box.H
Original file line number Diff line number Diff line change
Expand Up @@ -1849,7 +1849,7 @@ struct BoxIndexer
lo (box.smallEnd())
{}

AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE
[[nodiscard]] AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE
Dim3 operator() (std::uint64_t icell) const
{
std::uint64_t x, y, z, rem;
Expand All @@ -1868,7 +1868,7 @@ struct BoxIndexer
lo (box.smallEnd())
{}

AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE
[[nodiscard]] AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE
Dim3 operator() (std::uint64_t icell) const
{
std::uint64_t x, y;
Expand All @@ -1884,7 +1884,7 @@ struct BoxIndexer
: lo(box.smallEnd(0))
{}

AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE
[[nodiscard]] AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE
Dim3 operator() (std::uint64_t icell) const
{
return {int(icell)+lo, 0, 0};
Expand Down
Loading

0 comments on commit a0e4963

Please sign in to comment.