From ef8bf351a5624866599c3db6890d1e6b8907205b Mon Sep 17 00:00:00 2001 From: Weiqun Zhang Date: Tue, 28 Jan 2025 14:31:40 -0800 Subject: [PATCH] Modify warning messages about number of GPUs --- Src/Base/AMReX_GpuDevice.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Src/Base/AMReX_GpuDevice.cpp b/Src/Base/AMReX_GpuDevice.cpp index d911349a61f..e053a828bd9 100644 --- a/Src/Base/AMReX_GpuDevice.cpp +++ b/Src/Base/AMReX_GpuDevice.cpp @@ -204,7 +204,7 @@ Device::Initialize () } else { if (amrex::Verbose() && ParallelDescriptor::IOProcessor()) { - amrex::Warning("Multiple GPUs are visible to each MPI rank, This may lead to incorrect or suboptimal rank-to-GPU mapping."); + amrex::Warning("Multiple GPUs are visible to each MPI rank. This is usually not an issue. But this may lead to incorrect or suboptimal rank-to-GPU mapping."); } if (ParallelDescriptor::NProcsPerNode() == gpu_device_count) { device_id = ParallelDescriptor::MyRankInNode(); @@ -322,7 +322,8 @@ Device::Initialize () << ((num_devices_used == 1) ? " device.\n" : " devices.\n"); if (num_devices_used < ParallelDescriptor::NProcs() && ParallelDescriptor::IOProcessor()) { - amrex::Warning("There are more MPI processes than the number of GPUs."); + amrex::Warning("There are more MPI processes than the number of unique GPU devices. This is not necessarily a problem.\n" + "For example this could happen when a device such as MI300A is partitioned into multiple subdevices."); } }