summaryrefslogtreecommitdiffstats
path: root/abs/extra/openmpi/openmpi-hostfile.patch
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2012-08-07 20:37:39 (GMT)
committerJames Meyer <james.meyer@operamail.com>2012-08-07 20:37:39 (GMT)
commit23f24edbed75bc632fe66aebf2139428cddbd312 (patch)
treeb33346cab10d750ca07b98174d55e74962734904 /abs/extra/openmpi/openmpi-hostfile.patch
parent5f7b03898630b0f5c092267d23da769f605bdc03 (diff)
downloadlinhes_pkgbuild-23f24edbed75bc632fe66aebf2139428cddbd312.zip
linhes_pkgbuild-23f24edbed75bc632fe66aebf2139428cddbd312.tar.gz
linhes_pkgbuild-23f24edbed75bc632fe66aebf2139428cddbd312.tar.bz2
openmpi 1.6
Diffstat (limited to 'abs/extra/openmpi/openmpi-hostfile.patch')
-rw-r--r--abs/extra/openmpi/openmpi-hostfile.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/abs/extra/openmpi/openmpi-hostfile.patch b/abs/extra/openmpi/openmpi-hostfile.patch
new file mode 100644
index 0000000..f637767
--- /dev/null
+++ b/abs/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);