--
JorgeDElia - 11 Mar 2005
% ADAPTOR (versions 10.1 and 10.2). Installation with gcc and g95
Instalar el MPI, en donde la parte de Fortran primero es g77 y luego g95.
cd /usr/local
mkdir adaptor-10.1
cd adaptor-10.1
tar -zxvf /usr/local/compilers/ADAPTOR_INSTALL/adp_10.1.tgz
cd ..
chgrp -R root adaptor-10.1
chown -R root adaptor-10.1
cd adaptor-10.1
set
% environment variable for PHOME
pwd
/usr/local/adaptor-10.1
export PHOME=/usr/local/adaptor-10.1 ; echo $PHOME
% environment variable for MPI
export MPI_HOME=/usr/local/mpich-1.2.6 ; echo $MPI_HOME
export MPI_INC="-I/usr/local/mpich-1.2.6/include/" ; echo $MPI_INC
export MPI_LIB="-lc -L/usr/local/mpich-1.2.6/lib -lpmpich -lmpich" ; echo $MPI_LIB
% environment variables for CC compiler
export CC=gcc ; echo $CC
export CFLAGS="-w -O" ; echo $CFLAGS
% environment variables for F77 compiler
export F77=g95 ; echo $F77
export F77_EXTEND="-Wp,extend" ; echo $F77_EXTEND
export F77_OPT="-Wp,recursive" ; echo $F77_OPT
export F77_FLAGS="-fPIC -I/usr/local/mpich-1.2.6/include/f90base" ; echo $F77_FLAGS
# Note: in FREE source format of "configure" adds "--free-form"
% environment variable for the thread library
export THR_LIB=-lpthread ; echo $THR_LIB
% System's configuration:
% 1) a first configuration must be done as:
cd $PHOME
configure
% Obtained $PHOME/bin/fadapt -settings:
cat config.log
% 2) looks in the .adaptorrc file. If its LD_FLAGS is empty then find the gcc library:
gcc -v
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/2.96/specs
gcc version 2.96 20000731 (Red Hat Linux 7.1 2.96-81)
% 3) then insert the gcc library in the LD_FLAGS flag:
LD_FLAGS=-L/usr/lib/gcc-lib/i386-redhat-linux/2.96 -lgcc
% 4) and make the System's construction
make clean
make
% Traductor's construction
cd $PHOME/src
make clean
make
% fadapt's settings
$PHOME/bin/fadapt -settings
% ADAPTOR's bin and man in the PATH
export PATH=$PATH:$PHOME/bin ; echo $PATH
export MANPATH=$MANPATH:$PHOME/man ; echo $MANPATH
% Sec. 9.2 Testing the Compiler, page 19
cd $PHOME
chmod 777 -R test_examples
chmod 777 -R hpf_examples
su -l username
export PHOME=/usr/local/adaptor-10.1 ; echo $PHOME
export PATH=$PATH:$PHOME/bin ; echo $PATH
export MANPATH=$MANPATH:$PHOME/man ; echo $MANPATH
# cd /usr/local/adaptor/test_examples/HPF_CB/SIMPLE <- before in "iguide.pdf"
cd $PHOME/hpf_examples <- now
adaptor -v -hpf_1 -c simple.hpf
adaptor -v -hpf_1 -o simple1.exe simple.o
simple1.exe > simple_test.out
adaptor -v -openmp -c simple.hpf
adaptor -v -openmp -o simple2.exe simple.o
simple2.exe >> simple_test.out
adaptor -v -hpf -c simple.hpf
adaptor -v -hpf -o simple3.exe simple.o
simple3.exe -nb 1 >> simple_test.out
cat simple_test.out
% Sec. 9.3 Test Programs
cd $PHOME
su -l username
export PHOME=/usr/local/adaptor-10.1 ; echo $PHOME
cd $PHOME
pwd
% Sec. 9.3.1 Serial HPF Test Programs
cd $PHOME/test_examples
make clean
make &> hpf_serial_test.log
cat hpf_serial_test.log
make run &> hpf_serial_test.out
cat hpf_serial_test.out
% Sec. 9.3.2 Parallel HPF Test Programs
cd $PHOME/test_examples/HPF_MPI
make clean
make &> hpf_parall_test.log
cat hpf_parall_test.log
run &> hpf_parall_test.out
cat hpf_parall_test.out
% Sec. 9.3.3 Parallel OMP Test Programs
cd $PHOME/test_examples/OMP
make clean
make &> omp_parall_test.log
cat omp_parall_test.log
run &> omp_parall_test.out
cat omp_parall_test.out
exit