Skip to content

Commit

Permalink
FIX-modin-project#6791: Pass additional environment variables to MPI …
Browse files Browse the repository at this point in the history
…workers

Signed-off-by: Igoshev, Iaroslav <iaroslav.igoshev@intel.com>
  • Loading branch information
YarShev committed Dec 1, 2023
1 parent 58a74fd commit 14726f1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions modin/core/execution/unidist/common/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,9 @@ def initialize_unidist():
unidist.init()
""",
)
# TODO: allow unidist to inherit env variables on initialization
# with set_env(PYTHONWARNINGS="ignore::FutureWarning"):
unidist_cfg.MpiRuntimeEnv.put(
{"env_vars": {"PYTHONWARNINGS": "ignore::FutureWarning"}}
)
unidist.init()

num_cpus = sum(v["CPU"] for v in unidist.cluster_resources().values())
Expand Down

0 comments on commit 14726f1

Please sign in to comment.