aboutsummaryrefslogtreecommitdiff
path: root/Python/pywarpx/picmi.py
diff options
context:
space:
mode:
authorGravatar Remi Lehe <remi.lehe@normalesup.org> 2023-09-13 09:12:58 -0700
committerGravatar GitHub <noreply@github.com> 2023-09-13 09:12:58 -0700
commit5f40a2b5304d2a01c3c5676faca8dc5b9714ed4f (patch)
treed58ea0d7bee2758138275a4f6a7d90e1b8f9c94c /Python/pywarpx/picmi.py
parent15dacea8160503a0bf297063545b2b834a7f4b77 (diff)
downloadWarpX-5f40a2b5304d2a01c3c5676faca8dc5b9714ed4f.tar.gz
WarpX-5f40a2b5304d2a01c3c5676faca8dc5b9714ed4f.tar.zst
WarpX-5f40a2b5304d2a01c3c5676faca8dc5b9714ed4f.zip
Add flag to set GPU-aware MPI from PICMI (#4298)
Diffstat (limited to '')
-rw-r--r--Python/pywarpx/picmi.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/Python/pywarpx/picmi.py b/Python/pywarpx/picmi.py
index 056026fbb..ee4422dac 100644
--- a/Python/pywarpx/picmi.py
+++ b/Python/pywarpx/picmi.py
@@ -1680,6 +1680,9 @@ class Simulation(picmistandard.PICMI_Simulation):
warpx_amrex_the_arena_init_size: long int, optional
The amount of memory in bytes to allocate in the Arena.
+ warpx_amrex_use_gpu_aware_mpi: bool, optional
+ Whether to use GPU-aware MPI communications
+
warpx_zmax_plasma_to_compute_max_step: float, optional
Sets the simulation run time based on the maximum z value
@@ -1739,6 +1742,7 @@ class Simulation(picmistandard.PICMI_Simulation):
self.amr_restart = kw.pop('warpx_amr_restart', None)
self.amrex_the_arena_is_managed = kw.pop('warpx_amrex_the_arena_is_managed', None)
self.amrex_the_arena_init_size = kw.pop('warpx_amrex_the_arena_init_size', None)
+ self.amrex_use_gpu_aware_mpi = kw.pop('warpx_amrex_use_gpu_aware_mpi', None)
self.zmax_plasma_to_compute_max_step = kw.pop('warpx_zmax_plasma_to_compute_max_step', None)
self.compute_max_step_from_btd = kw.pop('warpx_compute_max_step_from_btd', None)
@@ -1869,6 +1873,9 @@ class Simulation(picmistandard.PICMI_Simulation):
if self.amrex_the_arena_init_size is not None:
pywarpx.amrex.the_arena_init_size = self.amrex_the_arena_init_size
+ if self.amrex_use_gpu_aware_mpi is not None:
+ pywarpx.amrex.use_gpu_aware_mpi = self.amrex_use_gpu_aware_mpi
+
def initialize_warpx(self, mpi_comm=None):
if self.warpx_initialized:
return