build mpich linux

This commit is contained in:
Bassem Girgis
2019-08-10 18:48:22 -05:00
parent 8d7f2d4513
commit d987da86d1
2 changed files with 11 additions and 37 deletions

View File

@@ -9,10 +9,10 @@ originalPath=$scriptDir/original
buildPath=$scriptDir/build
installPath=$scriptDir/install
libFilePath=$originalPath/googletest-release-$libVer.tar.gz
libFilePath=$originalPath/mpich-$libVer.tar.gz
libBuildPath=$buildPath/$libVer
libInstallPath=$installPath/$libVer
libSrcPath=$buildPath/googletest-release-$libVer
libSrcPath=$buildPath/mpich-$libVer
echo
echo libFilePath=$libFilePath
@@ -61,41 +61,13 @@ echo "BCXXFLAGS = $BCXXFLAGS"
echo "BFFLAGS = $BFFLAGS"
echo
# MPICH directory
MPICHRoot=/home/brgirgis/Documents/code/thirdparty/mpi/mpich_/src/mpich-3.2.1
if [ -d $MPICHRoot ]; then
echo "MPICHRoot = $MPICHRoot"
else
echo "Error: MPICH directory is missing!"
exit
fi
# target install directory
InstallRoot=$PWD/../${BuildType}_install
echo "InstallRoot = $InstallRoot"
# clean the build area
rm -rf $InstallRoot \
./config \
./config.log \
./config.status \
./contrib \
./libtool \
./Makefile \
./ompi \
./opal \
./orte \
./test
# create the install directory
mkdir $InstallRoot
# print current LD_LIBRARY_PATH for reference
echo "LD_LIBRARY_PATH = $LD_LIBRARY_PATH"
# run the configure command with all build options
$MPICHRoot/configure --prefix=$InstallRoot \
( cd $libBuildPath && \
$libSrcPath/configure \
--prefix=$libInstallPath \
--disable-fc \
--disable-f77 \
--disable-fortran \
@@ -104,10 +76,12 @@ $MPICHRoot/configure --prefix=$InstallRoot \
MPICHLIB_CFLAGS=$BCFLAGS \
CC=gcc \
CXX=g++ \
2>&1 | tee c.txt
2>&1 | tee config.out.txt)
# clean, build, and install
make clean
make all -j8 2>&1 | tee m.txt
make install 2>&1 | tee mi.txt
( cd $libBuildPath && \
make clean)
( cd $libBuildPath && \
make install -j 2>&1 | tee build.out.txt)

Binary file not shown.