Skip to content

Commit

Permalink
fix a HIP/Frontier issue (#3902)
Browse files Browse the repository at this point in the history
the amrex::single_task(amrex_check_wavefront_size) check causes runtime errors

this is the check that Weiqun suggested in #3901 and I've tested that it works on Frontier with Castro
  • Loading branch information
zingale authored Apr 20, 2024
1 parent 2c9e432 commit b752027
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Src/Base/AMReX_GpuDevice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,11 @@ Device::Initialize ()
#endif

#if defined(AMREX_USE_HIP)
amrex::single_task(amrex_check_wavefront_size);
if (num_devices_used < 0) {
// This test is always false, but it makes the compiler no longer
// complain about unused function, amrex_check_wavefront_size.
amrex::single_task(amrex_check_wavefront_size);
}
#endif

Device::profilerStart();
Expand Down

0 comments on commit b752027

Please sign in to comment.