|
19 | 19 | * and Technology (RIST). All rights reserved.
|
20 | 20 | * Copyright (c) 2018-2022 IBM Corporation. All rights reserved.
|
21 | 21 | * Copyright (c) 2021-2024 Nanook Consulting All rights reserved.
|
22 |
| - * Copyright (c) 2022 Triad National Security, LLC. All rights |
| 22 | + * Copyright (c) 2022-2024 Triad National Security, LLC. All rights |
23 | 23 | * reserved.
|
24 | 24 | * $COPYRIGHT$
|
25 | 25 | *
|
@@ -194,8 +194,10 @@ static struct option ompioptions[] = {
|
194 | 194 | PMIX_OPTION_DEFINE(PRTE_CLI_CONTINUOUS, PMIX_ARG_NONE),
|
195 | 195 | PMIX_OPTION_DEFINE("with-ft", PMIX_ARG_REQD),
|
196 | 196 |
|
197 |
| - /* mpiexec mandated form launch key parameters */ |
| 197 | + /* mpiexec mandated form launch key parameters - MPI 4.0 */ |
198 | 198 | PMIX_OPTION_DEFINE("initial-errhandler", PMIX_ARG_REQD),
|
| 199 | + /* mpiexec mandated form launch key parameters - MPI 4.1*/ |
| 200 | + PMIX_OPTION_DEFINE("memory-alloc-kinds", PMIX_ARG_REQD), |
199 | 201 |
|
200 | 202 | /* Display Commumication Protocol : MPI_Init */
|
201 | 203 | PMIX_OPTION_DEFINE("display-comm", PMIX_ARG_NONE),
|
@@ -1575,6 +1577,15 @@ static int parse_env(char **srcenv, char ***dstenv,
|
1575 | 1577 | }
|
1576 | 1578 | }
|
1577 | 1579 |
|
| 1580 | + if (NULL != (opt = pmix_cmd_line_get_param(results, "memory-alloc-kinds"))) { |
| 1581 | + rc = check_cache(&cache, &cachevals, "mpi_memory_alloc_kinds", opt->values[0]); |
| 1582 | + if (PRTE_SUCCESS != rc) { |
| 1583 | + PMIX_ARGV_FREE_COMPAT(cache); |
| 1584 | + PMIX_ARGV_FREE_COMPAT(cachevals); |
| 1585 | + return rc; |
| 1586 | + } |
| 1587 | + } |
| 1588 | + |
1578 | 1589 | if (pmix_cmd_line_is_taken(results, "display-comm") &&
|
1579 | 1590 | pmix_cmd_line_is_taken(results, "display-comm-finalize")) {
|
1580 | 1591 | PMIX_SETENV_COMPAT("OMPI_MCA_ompi_display_comm", "mpi_init,mpi_finalize", true, dstenv);
|
|
0 commit comments