/[MITgcm]/MITgcm/tools/build_options/linux_amd64_pgf77
ViewVC logotype

Diff of /MITgcm/tools/build_options/linux_amd64_pgf77

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.1 by ce107, Wed Jan 12 22:04:59 2005 UTC revision 1.5 by jmc, Mon Jan 23 20:54:07 2012 UTC
# Line 3  Line 3 
3  #  $Header$  #  $Header$
4  #  $Name$  #  $Name$
5  #  #
6  # Build options for Suse SLES-8.1 Opteron  # Build options for PGI compiler on Linux AMD64 platform
 # tested on (Linux ln0127en 2.4.21-143-numa #1 SMP Fri Oct 31 00:17:52 UTC 2003 x86_64 unknown) system 20041512  
7  #  #
8    # tested with PGI version 10.9 on baudelaire (Linux 2.6.34.7-61.fc13.x86_64), using:
9    #   -  sh,bash:
10    #     > export PGI=/srv/software/pgi/pgi-10.9
11    #     > export PATH=$PGI/linux86-64/10.9/bin:$PATH
12    #     > export MANPATH=$MANPATH:$PGI/linux86-64/10.9/man
13    #     > export LM_LICENSE_FILE=$PGI/license.dat
14    #   - csh,tcsh:
15    #     > setenv PGI /srv/software/pgi/pgi-10.9
16    #     > set path=($PGI/linux86-64/10.9/bin $path)
17    #     > setenv MANPATH "$MANPATH":$PGI/linux86-64/10.9/man
18    #     > setenv LM_LICENSE_FILE $PGI/license.dat
19    #
20    # and tested also with MPI on acesgrid (Fedora Core 15), using:
21    #       module load pgi     (Version 11.7)
22    #   and with mpich2:
23    #       module load mvapich2
24    #   or  with openmpi:
25    #       module load openmpi
26    #-------
27    
28  FC=pgf77  if test "x$MPI" = xtrue ; then
29  DEFINES='-DWORDLENGTH=4'    CC=mpicc
30  CPP='cpp  -traditional -P'    FC=mpif77
31  NOOPTFLAGS='-O0'    F90C=mpif90
32  MAKEDEPEND=/usr/X11R6/bin/makedepend  else
33  if test "x$IEEE" = x ; then    CC=pgcc
34      #  No need for IEEE-754    FC=pgf77
35      FFLAGS='-byteswapio -r8 -Mnodclchk -Mextend -Ktrap=fp'    F90C=pgf90
36      FOPTIM='-tp k8-64 -pc=64 -O2 -scalarsse -Mvect=sse' #-fastsse -O3 -Msmart -Mvect=cachesize:1048576,transform'  fi
37    
38    DEFINES="-DWORDLENGTH=4"
39    if test "x$ALWAYS_USE_F90" = x1 ; then
40        FC=$F90C
41  else  else
42      #  Try to follow IEEE-754      DEFINES="$DEFINES -DNML_EXTENDED_F77"
43      FFLAGS='-byteswapio -r8 -Mnodclchk -Mextend -Ktrap=fp'  fi
44      FOPTIM='-tp k8-64 -pc=64 -O2 -scalarsse -Mvect=sse -Kieee' #-fastsse -O3 -Msmart -Kieee -Mvect=cachesize:1048576,transform'  CPP='cpp -traditional -P'
45    EXTENDED_SRC_FLAG='-Mextend'
46    GET_FC_VERSION="-V"
47    
48    NOOPTFLAGS='-O0'
49    NOOPTFILES=''
50    
51    FFLAGS="$FFLAGS -byteswapio -Ktrap=fp"
52    #- might want to use '-r8' for fizhi pkg:
53    #FFLAGS="$FFLAGS -r8"
54    
55    if test "x$IEEE" = x ; then     #- with optimisation:
56        FOPTIM='-tp k8-64 -pc=64 -O2 -Mvect=sse'
57       #FOPTIM="$FOPTIM -fastsse -O3 -Msmart -Mvect=cachesize:1048576,transform"
58    else                            #- no optimisation + IEEE :
59       #FFLAGS="$FFLAGS -Mdclchk"  #- pkg/zonal_filt does not pass with declaration-check
60        FOPTIM='-pc=64 -O0 -Kieee'
61  fi  fi
62    
63    INCLUDEDIRS=''
64    INCLUDES=''
65    LIBS=''
66    
67    if [ -n "$MPI_INC_DIR" -a "x$MPI" = xtrue ] ; then
68        INCLUDES="$INCLUDES -I$MPI_INC_DIR"
69        INCLUDEDIRS="$INCLUDEDIRS $MPI_INC_DIR"
70        MPIINCLUDEDIR="$MPI_INC_DIR"
71        MPI_HEADER_FILES='mpif.h mpiof.h'
72        MPI_HEADER_FILES_INC='./mpi_headers/mpif.h ./mpi_headers/mpiof.h'
73    fi

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.5

  ViewVC Help
Powered by ViewVC 1.1.22