From 908f31fe9f47a9ed8d13ae03df7c2451d51b394b Mon Sep 17 00:00:00 2001 From: Josh Hursey Date: Sat, 9 Sep 2006 05:13:15 +0000 Subject: [PATCH] Fix a code clarity issue in the POE PLS. Allow the POE RAS to be compled for linux as well as AIX. The POE RAS is really a Loadleveler RAS, and IU now has a cluster that uses Loadleveler in a Linux environment (BigRed). This seems to be the only thing we need to do so far to run Open MPI on BigRed. Yay :) This commit was SVN r11600. --- orte/mca/pls/poe/pls_poe_module.c | 2 +- orte/mca/ras/poe/configure.m4 | 12 +++++++----- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/orte/mca/pls/poe/pls_poe_module.c b/orte/mca/pls/poe/pls_poe_module.c index 8911d62ef0..2d76fdf4ca 100644 --- a/orte/mca/pls/poe/pls_poe_module.c +++ b/orte/mca/pls/poe/pls_poe_module.c @@ -604,7 +604,7 @@ pls_poe_launch - launch a POE job */ static int pls_poe_launch(orte_jobid_t jobid) { - if(!strncmp(mca_pls_poe_component.class,"interactive",11)) { + if(0 == strncmp(mca_pls_poe_component.class,"interactive",11)) { return poe_launch_interactive(jobid); } return ORTE_ERR_NOT_IMPLEMENTED; diff --git a/orte/mca/ras/poe/configure.m4 b/orte/mca/ras/poe/configure.m4 index 813791635f..20037c7320 100644 --- a/orte/mca/ras/poe/configure.m4 +++ b/orte/mca/ras/poe/configure.m4 @@ -21,12 +21,14 @@ # ----------------------------------------------------------- AC_DEFUN([MCA_ras_poe_CONFIG],[ - # POE is only supported on AIX. We only need executables (no - # header files or libraries), but those can be found (or not) at - # run-time. So if we're on AIX, build this component. - AC_MSG_CHECKING([if on AIX]) + # POE used to be only supported on AIX. Now we support it on + # AIX and some IBM Linux Machines. + # We only need executables (no header files or libraries), but + # those can be found (or not) at run-time. So if we're on AIX, + # or Linux build this component. + AC_MSG_CHECKING([if on AIX or Linux]) case $host_os in - aix3* | aix4* | aix5*) + linux* | aix3* | aix4* | aix5*) happy=yes ;; *)