Open MPI logo

Open MPI Development Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Development mailing list

Subject: [OMPI devel] setenv MPI_ROOT
From: Damien Guinier (damien.guinier_at_[hidden])
Date: 2011-02-08 08:52:15


hi all

On v1.5 branch, can we add MPI_ROOT variable on:
     /%{shell_scripts_path}/%{shell_scripts_basename}.sh
and /%{shell_scripts_path}/%{shell_scripts_basename}.csh
with the value : MPI_ROOT=%{_prefix}

The variable MPI_ROOT facilitate launch script creation. This variable
is asked by customer who use BPS and LSF batch manager.

thanks

Damien Guinier

-------------

diff -r 486ca4bfca95 contrib/dist/linux/openmpi.spec
--- a/contrib/dist/linux/openmpi.spec Mon Feb 07 15:40:31 2011 +0100
+++ b/contrib/dist/linux/openmpi.spec Tue Feb 08 14:30:01 2011 +0100
@@ -514,6 +514,10 @@
      MANPATH=%{_mandir}:\${MANPATH}
      export MANPATH
  fi
+
+# MPI_ROOT
+MPI_ROOT=%{_prefix}
+export MPI_ROOT
  EOF
  cat <<EOF >
$RPM_BUILD_ROOT/%{shell_scripts_path}/%{shell_scripts_basename}.csh
  # NOTE: This is an automatically-generated file! (generated by the
@@ -542,6 +546,9 @@
  else
      setenv MANPATH %{_mandir}:
  endif
+
+# MPI_ROOT
+setenv MPI_ROOT %{_prefix}
  EOF
  %endif
  # End of shell_scripts if