-- LauraBattaglia - 21 Oct 2008


# The undocumented switch --disable-aio is used as was suggested by the
# developers (bug report #2524 sent to the "mpich2-maint@mcs.anl.gov")

# intel compilers
source /opt/intel/fc/9.1.043/bin/ifortvars.sh
which ifort 

# checking
echo "LD_LIBRARY_PATH = $LD_LIBRARY_PATH"
echo "PATH = $PATH"

# simple test
cd /usr/local/paquetes/tests
ifort conftest.f90 -o conftest.exe
conftest.exe

# environment setting
export F77=ifort ; echo $F77
export F90=ifort ; echo $F90
export F90FLAGS="-Wp,-i4,-xP,-O3,-ipo,-vms,-recursive" ; echo $F90FLAGS

# package version
export NRO="1.0.7"
export PREFIJO=/usr/local/mpich2-ifc/$NRO ; echo $PREFIJO
export FAB=/usr/local/paquetes/mpich2-install/${NRO} ; echo $FAB

# installation
cd $FAB ; pwd
tar -zxvf mpich2-${NRO}.tar.gz
mv mpich2-${NRO} fabrica
chown -R root    fabrica
chgrp -R users   fabrica
chmod -R 775     fabrica
cd $FAB/fabrica ; pwd
make clean

# configure and construction 
echo $FAB  ; echo $PREFIJO ; pwd
./configure --enable-sharedlibs=gcc --enable-fast --enable-mpe 
--enable-f77 --enable-f90 --disable-aio 
--prefix=$PREFIJO 2>&1 | tee configure.log
make 2>&1 | tee make.log
make install 2>&1 | tee install.log

# adding the following symbolic link in $PREFIJO/lib
cd $PREFIJO/lib ; pwd
ln -s $PREFIJO/lib/libmpich.a libpmpich.a

# for making the tests as some user
su -l pepe
which mpdboot
mpdboot -n 5 -f ~/mpd.hosts
mpdtrace | sort
mpdringtest
echo $LD_LIBRARY_PATH

# very basic test
cd /usr/local/paquetes/tests
mpif90 -o conftest.exe conftest.f90
conftest.exe
mpif90 -o hola_f90.exe hola_p.f90
mpiexec -machinefile ~/machi.dat -np 4 hola_f90.exe

# mpich tests
export FAB=/usr/local/paquetes/mpich2-install/1.0.7/fabrica
cd $FAB ; pwd
make testing 2>&1 | tee make_testing.log
exit
##
Topic revision: r2 - 21 Oct 2008, TWikiGuest
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Foswiki? Send feedback