Skip to content

Commit

Permalink
Merge pull request #4261 from fwyzard/IB/CMSSW_10_2_X/gcc700_openmpi
Browse files Browse the repository at this point in the history
Update OpenMPI to version 2.1.5 (critical bugfix release) (10.2.x backport)
  • Loading branch information
cmsbuild authored Aug 31, 2018
2 parents 6231c03 + a8d1b8b commit 86c8e13
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 37 deletions.
13 changes: 12 additions & 1 deletion boost-toolfile.spec
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
### RPM external boost-toolfile 1.2
### RPM external boost-toolfile 1.3
Requires: boost
%prep

Expand Down Expand Up @@ -124,6 +124,16 @@ cat << \EOF_TOOLFILE >%i/etc/scram.d/boost_iostreams.xml
</tool>
EOF_TOOLFILE

# boost_mpi toolfile
cat << \EOF_TOOLFILE >%i/etc/scram.d/boost_mpi.xml
<tool name="boost_mpi" version="@TOOL_VERSION@">
<info url="http://www.boost.org"/>
<lib name="@BOOST_MPI_LIB@"/>
<use name="boost"/>
<use name="boost_serialization"/>
</tool>
EOF_TOOLFILE

# boost_header toolfile
cat << \EOF_TOOLFILE >%i/etc/scram.d/boost_header.xml
<tool name="boost_header" version="@TOOL_VERSION@">
Expand Down Expand Up @@ -155,6 +165,7 @@ export BOOST_PYTHON_LIB=`getLibName python`
export BOOST_REGEX_LIB=`getLibName regex`
export BOOST_SERIALIZATION_LIB=`getLibName serialization`
export BOOST_IOSTREAMS_LIB=`getLibName iostream`
export BOOST_MPI_LIB=`getLibName mpi`
export PYTHONV=$(echo $PYTHON_VERSION | cut -f1,2 -d.)

## IMPORT scram-tools-post
7 changes: 5 additions & 2 deletions boost.spec
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
%define github_user cms-externals
Source: git+https://github.com/%github_user/%n.git?obj=%{branch}/%{tag}&export=%{n}-%{realversion}&output=/%{n}-%{realversion}.tgz

Requires: python bz2lib zlib
Requires: python bz2lib zlib openmpi

%prep
%setup -n %{n}-%{realversion}
Expand All @@ -23,6 +23,9 @@ pushd tools/build
export PATH=${PWD}/tmp-boost-build/bin:${PATH}
popd

# enable boost::mpi
echo "using mpi ;" > user-config.jam

b2 -q \
-d2 \
%{makeprocesses} \
Expand All @@ -38,9 +41,9 @@ b2 -q \
--without-locale \
--without-log \
--without-math \
--without-mpi \
--without-random \
--without-wave \
--user-config=${PWD}/user-config.jam \
toolset=${TOOLSET} \
link=shared \
threading=multi \
Expand Down
29 changes: 0 additions & 29 deletions openmpi-2.1.1-disable-lsf-support.patch

This file was deleted.

9 changes: 4 additions & 5 deletions openmpi.spec
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
### RPM external openmpi 2.1.2rc4
### RPM external openmpi 2.1.5
## INITENV SET OPAL_PREFIX %{i}
Source: http://www.open-mpi.org/software/ompi/v2.1/downloads/%{n}-%{realversion}.tar.gz
Patch1: openmpi-2.1.1-disable-lsf-support
Source: http://download.open-mpi.org/release/open-mpi/v2.1/%{n}-%{realversion}.tar.gz
BuildRequires: autotools

%prep
%setup -q -n %{n}-%{realversion}
%patch1 -p1
sed -i -e 's|#!/usr/bin/perl|#!/usr/bin/env perl|' ./opal/asm/generate-asm.pl
sed -i -e 's|#!/usr/bin/perl|#!/usr/bin/env perl|' opal/asm/generate-all-asm.pl
sed -i -e 's|/usr/bin/perl|/usr/bin/env perl|' ./Doxyfile
sed -i -e 's|/usr/bin/perl|/usr/bin/env perl|' ./orte/Doxyfile
./autogen.pl --force
./configure --prefix=%i --without-lsf --disable-libnuma --enable-mpi-cxx
./configure --prefix=%i --without-lsf --disable-libnuma --enable-mpi-cxx --enable-mpi-thread-multiple

%build
make %{makeprocesses}
Expand Down

0 comments on commit 86c8e13

Please sign in to comment.