@@ -43,8 +43,8 @@ class FluxJobExecutor(BaseExecutor):
4343 compute notes. Defaults to False.
4444 - error_log_file (str): Name of the error log file to use for storing exceptions raised
4545 by the Python functions submitted to the Executor.
46+ pmi_mode (str): PMI interface to use (OpenMPI v5 requires pmix) default is None
4647 flux_executor (flux.job.FluxExecutor): Flux Python interface to submit the workers to flux
47- flux_executor_pmi_mode (str): PMI interface to use (OpenMPI v5 requires pmix) default is None (Flux only)
4848 flux_executor_nesting (bool): Provide hierarchically nested Flux job scheduler inside the submitted function.
4949 flux_log_files (bool, optional): Write flux stdout and stderr files. Defaults to False.
5050 hostname_localhost (boolean): use localhost instead of the hostname to establish the zmq connection. In the
@@ -93,8 +93,8 @@ def __init__(
9393 cache_directory : Optional [str ] = None ,
9494 max_cores : Optional [int ] = None ,
9595 resource_dict : Optional [dict ] = None ,
96+ pmi_mode : Optional [str ] = None ,
9697 flux_executor = None ,
97- flux_executor_pmi_mode : Optional [str ] = None ,
9898 flux_executor_nesting : bool = False ,
9999 flux_log_files : bool = False ,
100100 hostname_localhost : Optional [bool ] = None ,
@@ -130,8 +130,8 @@ def __init__(
130130 compute notes. Defaults to False.
131131 - error_log_file (str): Name of the error log file to use for storing exceptions
132132 raised by the Python functions submitted to the Executor.
133+ pmi_mode (str): PMI interface to use (OpenMPI v5 requires pmix) default is None
133134 flux_executor (flux.job.FluxExecutor): Flux Python interface to submit the workers to flux
134- flux_executor_pmi_mode (str): PMI interface to use (OpenMPI v5 requires pmix) default is None (Flux only)
135135 flux_executor_nesting (bool): Provide hierarchically nested Flux job scheduler inside the submitted function.
136136 flux_log_files (bool, optional): Write flux stdout and stderr files. Defaults to False.
137137 hostname_localhost (boolean): use localhost instead of the hostname to establish the zmq connection. In the
@@ -175,8 +175,8 @@ def __init__(
175175 cache_directory = cache_directory ,
176176 max_cores = max_cores ,
177177 resource_dict = resource_dict ,
178+ pmi_mode = pmi_mode ,
178179 flux_executor = flux_executor ,
179- flux_executor_pmi_mode = flux_executor_pmi_mode ,
180180 flux_executor_nesting = flux_executor_nesting ,
181181 flux_log_files = flux_log_files ,
182182 hostname_localhost = hostname_localhost ,
@@ -199,8 +199,8 @@ def __init__(
199199 cache_directory = cache_directory ,
200200 max_cores = max_cores ,
201201 resource_dict = resource_dict ,
202+ pmi_mode = pmi_mode ,
202203 flux_executor = flux_executor ,
203- flux_executor_pmi_mode = flux_executor_pmi_mode ,
204204 flux_executor_nesting = flux_executor_nesting ,
205205 flux_log_files = flux_log_files ,
206206 hostname_localhost = hostname_localhost ,
@@ -236,7 +236,7 @@ class FluxClusterExecutor(BaseExecutor):
236236 - error_log_file (str): Name of the error log file to use for storing exceptions raised
237237 by the Python functions submitted to the Executor.
238238 pysqa_config_directory (str, optional): path to the pysqa config directory (only for pysqa based backend).
239- flux_executor_pmi_mode (str): PMI interface to use (OpenMPI v5 requires pmix) default is None (Flux only)
239+ pmi_mode (str): PMI interface to use (OpenMPI v5 requires pmix) default is None
240240 hostname_localhost (boolean): use localhost instead of the hostname to establish the zmq connection. In the
241241 context of an HPC cluster this essential to be able to communicate to an
242242 Executor running on a different compute node within the same allocation. And
@@ -284,7 +284,7 @@ def __init__(
284284 max_cores : Optional [int ] = None ,
285285 resource_dict : Optional [dict ] = None ,
286286 pysqa_config_directory : Optional [str ] = None ,
287- flux_executor_pmi_mode : Optional [str ] = None ,
287+ pmi_mode : Optional [str ] = None ,
288288 hostname_localhost : Optional [bool ] = None ,
289289 block_allocation : bool = False ,
290290 init_function : Optional [Callable ] = None ,
@@ -319,7 +319,7 @@ def __init__(
319319 - error_log_file (str): Name of the error log file to use for storing exceptions
320320 raised by the Python functions submitted to the Executor.
321321 pysqa_config_directory (str, optional): path to the pysqa config directory (only for pysqa based backend).
322- flux_executor_pmi_mode (str): PMI interface to use (OpenMPI v5 requires pmix) default is None (Flux only)
322+ pmi_mode (str): PMI interface to use (OpenMPI v5 requires pmix) default is None
323323 hostname_localhost (boolean): use localhost instead of the hostname to establish the zmq connection. In the
324324 context of an HPC cluster this essential to be able to communicate to an
325325 Executor running on a different compute node within the same allocation. And
@@ -369,7 +369,7 @@ def __init__(
369369 cache_directory = cache_directory ,
370370 resource_dict = resource_dict ,
371371 flux_executor = None ,
372- flux_executor_pmi_mode = flux_executor_pmi_mode ,
372+ pmi_mode = pmi_mode ,
373373 flux_executor_nesting = False ,
374374 flux_log_files = False ,
375375 pysqa_config_directory = pysqa_config_directory ,
@@ -387,8 +387,8 @@ def __init__(
387387 cache_directory = cache_directory ,
388388 max_cores = max_cores ,
389389 resource_dict = resource_dict ,
390+ pmi_mode = None ,
390391 flux_executor = None ,
391- flux_executor_pmi_mode = None ,
392392 flux_executor_nesting = False ,
393393 flux_log_files = False ,
394394 hostname_localhost = hostname_localhost ,
@@ -408,8 +408,8 @@ def create_flux_executor(
408408 max_cores : Optional [int ] = None ,
409409 cache_directory : Optional [str ] = None ,
410410 resource_dict : Optional [dict ] = None ,
411+ pmi_mode : Optional [str ] = None ,
411412 flux_executor = None ,
412- flux_executor_pmi_mode : Optional [str ] = None ,
413413 flux_executor_nesting : bool = False ,
414414 flux_log_files : bool = False ,
415415 hostname_localhost : Optional [bool ] = None ,
@@ -437,8 +437,8 @@ def create_flux_executor(
437437 compute notes. Defaults to False.
438438 - error_log_file (str): Name of the error log file to use for storing exceptions raised
439439 by the Python functions submitted to the Executor.
440+ pmi_mode (str): PMI interface to use (OpenMPI v5 requires pmix) default is None
440441 flux_executor (flux.job.FluxExecutor): Flux Python interface to submit the workers to flux
441- flux_executor_pmi_mode (str): PMI interface to use (OpenMPI v5 requires pmix) default is None (Flux only)
442442 flux_executor_nesting (bool): Provide hierarchically nested Flux job scheduler inside the submitted function.
443443 flux_log_files (bool, optional): Write flux stdout and stderr files. Defaults to False.
444444 hostname_localhost (boolean): use localhost instead of the hostname to establish the zmq connection. In the
@@ -470,7 +470,7 @@ def create_flux_executor(
470470 resource_dict ["hostname_localhost" ] = hostname_localhost
471471 resource_dict ["log_obj_size" ] = log_obj_size
472472 check_init_function (block_allocation = block_allocation , init_function = init_function )
473- check_pmi (backend = "flux_allocation" , pmi = flux_executor_pmi_mode )
473+ check_pmi (backend = "flux_allocation" , pmi = pmi_mode )
474474 check_oversubscribe (oversubscribe = resource_dict .get ("openmpi_oversubscribe" , False ))
475475 check_command_line_argument_lst (
476476 command_line_argument_lst = resource_dict .get ("slurm_cmd_args" , [])
@@ -479,8 +479,8 @@ def create_flux_executor(
479479 del resource_dict ["openmpi_oversubscribe" ]
480480 if "slurm_cmd_args" in resource_dict :
481481 del resource_dict ["slurm_cmd_args" ]
482+ resource_dict ["pmi_mode" ] = pmi_mode
482483 resource_dict ["flux_executor" ] = flux_executor
483- resource_dict ["flux_executor_pmi_mode" ] = flux_executor_pmi_mode
484484 resource_dict ["flux_executor_nesting" ] = flux_executor_nesting
485485 resource_dict ["flux_log_files" ] = flux_log_files
486486 if block_allocation :
0 commit comments