Skip to content

Commit

Permalink
Update Comments
Browse files Browse the repository at this point in the history
  • Loading branch information
WeiqunZhang committed Jan 18, 2025
1 parent 481d370 commit 76fe98a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Src/Extern/HYPRE/AMReX_HypreSolver.H
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,8 @@ HypreSolver<MSS>::HypreSolver (Vector<IndexType> const& a_index_type,
// To generate global ids for Hypre, we need to remove duplicates on
// nodes shared by multiple Boxes with OverrideSync. So we need to use
// a type that supports atomicAdd. HYPRE_Int is either int or long
// long. The latter does not have native atomicAdd support in CUDA/HIP.
// long. The latter (i.e., long long) does not have native atomicAdd
// support in CUDA/HIP, whereas unsigned long long has.
using AtomicInt = std::conditional_t<sizeof(HYPRE_Int) == 4,
HYPRE_Int, unsigned long long>;
fill_global_id<AtomicInt>();
Expand Down

0 comments on commit 76fe98a

Please sign in to comment.