Ralph Castain avatar Ralph Castain committed 9da1e20

Avoid use of PMI components when launched via mpirun as this is just unnecessary overhead that can cause confusion.

cmr=v1.7.4:reviewer=miked:subject=Avoid use of PMI components when launched via mpirun

Comments (0)

Files changed (1)


      * info, though. We are setting the environment up on a
      * per-context basis, and will add the individual proc
      * info later. This also sets the mca param to select
-     * the "env" component in the SDS framework.
+     * the "env" component in the ESS framework.
     orte_ess_env_put(vpid_range, num_local_procs, environ_copy);
     opal_setenv(param, orte_process_info.tmpdir_base, true, environ_copy);
+    /* since we are launching via orted, ensure the app
+     * doesn't open any of the PMI components even if we
+     * are in a PMI environment - saves overhead. Don't
+     * override any existing directives, though!
+     */
+    opal_setenv("OMPI_MCA_grpcomm", "^pmi", false, environ_copy);
+    opal_setenv("OMPI_MCA_db", "^pmi", false, environ_copy);
     return ORTE_SUCCESS;
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.