openmpi/openmpi-hostfile.patch

14 lines
721 B
Diff

Index: orte/runtime/orte_mca_params.c
===================================================================
--- orte/runtime/orte_mca_params.c (revision 26440)
+++ orte/runtime/orte_mca_params.c (working copy)
@@ -303,7 +303,7 @@
false, false, NULL, &strval);
if (NULL == strval) {
/* nothing was given, so define the default */
- asprintf(&orte_default_hostfile, "%s/etc/openmpi-default-hostfile", opal_install_dirs.prefix);
+ asprintf(&orte_default_hostfile, "%s/openmpi-default-hostfile", opal_install_dirs.sysconfdir);
/* flag that nothing was given */
orte_default_hostfile_given = false;
} else if (0 == strcmp(strval, "none")) {