build mpich linux
This commit is contained in:
@@ -9,10 +9,10 @@ originalPath=$scriptDir/original
|
|||||||
buildPath=$scriptDir/build
|
buildPath=$scriptDir/build
|
||||||
installPath=$scriptDir/install
|
installPath=$scriptDir/install
|
||||||
|
|
||||||
libFilePath=$originalPath/googletest-release-$libVer.tar.gz
|
libFilePath=$originalPath/mpich-$libVer.tar.gz
|
||||||
libBuildPath=$buildPath/$libVer
|
libBuildPath=$buildPath/$libVer
|
||||||
libInstallPath=$installPath/$libVer
|
libInstallPath=$installPath/$libVer
|
||||||
libSrcPath=$buildPath/googletest-release-$libVer
|
libSrcPath=$buildPath/mpich-$libVer
|
||||||
|
|
||||||
echo
|
echo
|
||||||
echo libFilePath=$libFilePath
|
echo libFilePath=$libFilePath
|
||||||
@@ -61,41 +61,13 @@ echo "BCXXFLAGS = $BCXXFLAGS"
|
|||||||
echo "BFFLAGS = $BFFLAGS"
|
echo "BFFLAGS = $BFFLAGS"
|
||||||
echo
|
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
|
# print current LD_LIBRARY_PATH for reference
|
||||||
echo "LD_LIBRARY_PATH = $LD_LIBRARY_PATH"
|
echo "LD_LIBRARY_PATH = $LD_LIBRARY_PATH"
|
||||||
|
|
||||||
# run the configure command with all build options
|
# run the configure command with all build options
|
||||||
$MPICHRoot/configure --prefix=$InstallRoot \
|
( cd $libBuildPath && \
|
||||||
|
$libSrcPath/configure \
|
||||||
|
--prefix=$libInstallPath \
|
||||||
--disable-fc \
|
--disable-fc \
|
||||||
--disable-f77 \
|
--disable-f77 \
|
||||||
--disable-fortran \
|
--disable-fortran \
|
||||||
@@ -104,10 +76,12 @@ $MPICHRoot/configure --prefix=$InstallRoot \
|
|||||||
MPICHLIB_CFLAGS=$BCFLAGS \
|
MPICHLIB_CFLAGS=$BCFLAGS \
|
||||||
CC=gcc \
|
CC=gcc \
|
||||||
CXX=g++ \
|
CXX=g++ \
|
||||||
2>&1 | tee c.txt
|
2>&1 | tee config.out.txt)
|
||||||
|
|
||||||
# clean, build, and install
|
# clean, build, and install
|
||||||
make clean
|
( cd $libBuildPath && \
|
||||||
make all -j8 2>&1 | tee m.txt
|
make clean)
|
||||||
make install 2>&1 | tee mi.txt
|
|
||||||
|
( cd $libBuildPath && \
|
||||||
|
make install -j 2>&1 | tee build.out.txt)
|
||||||
|
|
||||||
|
|||||||
BIN
mpi/mpich/original/mpich-3.3.1.tar.gz
Normal file
BIN
mpi/mpich/original/mpich-3.3.1.tar.gz
Normal file
Binary file not shown.
Reference in New Issue
Block a user