Skip to content

Commit

Permalink
fix a HIP/Frontier issue
Browse files Browse the repository at this point in the history
the amrex::single_task(amrex_check_wavefront_size) check causes runtime
errors
  • Loading branch information
zingale committed Apr 20, 2024
1 parent 64d2360 commit 86aaf2b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Src/Base/AMReX_GpuDevice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,9 @@ Device::Initialize ()
#endif

#if defined(AMREX_USE_HIP)
amrex::single_task(amrex_check_wavefront_size);
if (num_devices_used < 0) {
amrex::single_task(amrex_check_wavefront_size);
}
#endif

Device::profilerStart();
Expand Down

0 comments on commit 86aaf2b

Please sign in to comment.