summaryrefslogtreecommitdiff
path: root/extra/openmpi/openmpi-hostfile.patch
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-05-22 00:02:33 +0000
committerroot <root@rshg054.dnsready.net>2012-05-22 00:02:33 +0000
commit62e13d20ed92262c7396eff00d048ce815693e74 (patch)
tree2a02f5885ef928a5c3776a9f1a5c0c37d0d531a4 /extra/openmpi/openmpi-hostfile.patch
parentd9687afd09db8b04c5ae90edf22df599532256c6 (diff)
Tue May 22 00:02:33 UTC 2012
Diffstat (limited to 'extra/openmpi/openmpi-hostfile.patch')
-rw-r--r--extra/openmpi/openmpi-hostfile.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/extra/openmpi/openmpi-hostfile.patch b/extra/openmpi/openmpi-hostfile.patch
new file mode 100644
index 000000000..f6377674b
--- /dev/null
+++ b/extra/openmpi/openmpi-hostfile.patch
@@ -0,0 +1,12 @@
+diff -up openmpi-1.6/orte/runtime/orte_mca_params.c.hostfile openmpi-1.6/orte/runtime/orte_mca_params.c
+--- openmpi-1.6/orte/runtime/orte_mca_params.c.hostfile 2012-04-24 13:18:21.000000000 -0600
++++ openmpi-1.6/orte/runtime/orte_mca_params.c 2012-05-15 16:35:24.769565442 -0600
+@@ -225,7 +225,7 @@ int orte_register_params(void)
+ false, false, 1000, &orte_timeout_usec_per_proc);
+
+ /* default hostfile */
+- 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);
+ mca_base_param_reg_string_name("orte", "default_hostfile",
+ "Name of the default hostfile (relative or absolute path, \"none\" to ignore environmental or default MCA param setting)",
+ false, false, orte_default_hostfile, &orte_default_hostfile);