Commits

Jeff Squyres committed c604cfe Draft

Fixes #3639: Please move mxm fix to v1.7

---svn-pre-commit-ignore-below---

r28648 [[BR]]
fix: detect threading model to take appropriate flow in mxm

Comments (0)

Files changed (1)

ompi/mca/mtl/mxm/mtl_mxm_component.c

 #include "opal/mca/base/mca_base_param.h"
 #include "ompi/proc/proc.h"
 #include "opal/memoryhooks/memory.h"
+#include "ompi/runtime/mpiruntime.h"
 
 #include "mtl_mxm.h"
 #include "mtl_mxm_types.h"
         MXM_VERBOSE(1, "Disabling on-demand memory mapping");
         ompi_mtl_mxm.using_mem_hooks = 0;
     }
+    setenv("MXM_SINGLE_THREAD", ompi_mpi_thread_multiple ? "n" : "y" , 0);
 #endif
 
     err = mxm_config_read_context_opts(&ompi_mtl_mxm.mxm_opts);
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.