Skip to content

Commit

Permalink
fix: use explicit list of platform names for linux environmental vari…
Browse files Browse the repository at this point in the history
…able assignment logic in _get_mpi_env
  • Loading branch information
gtdang committed Aug 30, 2024
1 parent d27ee78 commit 31159a7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion hnn_core/parallel_backends.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,8 @@ def _gather_trial_data(sim_data, net, n_trials, postproc):
def _get_mpi_env():
"""Set some MPI environment variables."""
my_env = os.environ.copy()
if 'win' not in sys.platform:
# For Linux systems
if sys.platform not in ['win32', 'darwin']:
my_env["OMPI_MCA_btl_base_warn_component_unused"] = '0'

if 'darwin' in sys.platform:
Expand Down

0 comments on commit 31159a7

Please sign in to comment.