/[MITgcm]/MITgcm/tools/build_options/linux_ia32_pgf77+mpi_aces
ViewVC logotype

Diff of /MITgcm/tools/build_options/linux_ia32_pgf77+mpi_aces

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

revision 1.5 by jmc, Fri May 9 16:38:34 2008 UTC revision 1.9 by jmc, Mon Dec 13 22:45:55 2010 UTC
# Line 1  Line 1 
1  #!/bin/bash  #!/bin/bash
2  #  #
3  #  $Header$  # $Header$
4  #  $Name$  # $Name$
5  #  #
6  #  These are the build options used with the PGI compiler for the  #  These are the build options used with the PGI compiler for the
7  #  daily testing on ACES (which are initiated by cron jobs on the "ao"  #  daily testing on ACES (which are initiated by cron jobs on the "ao"
# Line 12  Line 12 
12  #    module add mpich/pgi  #    module add mpich/pgi
13  #  #
14    
15    DEFINES='-DWORDLENGTH=4'
16    CPP='cpp  -traditional -P'
17    
18  FC='mpif77'  FC='mpif77'
19  CC='mpicc'  CC='mpicc'
20  if test "x$ALWAYS_USE_F90" = x1 ; then  if test "x$ALWAYS_USE_F90" = x1 ; then
21      FC='mpif90'      FC='mpif90'
22    else
23        DEFINES="$DEFINES -DNML_EXTENDED_F77"
24  fi  fi
 DEFINES='-DALLOW_USE_MPI -DALWAYS_USE_MPI -DWORDLENGTH=4'  
 INCLUDES='-I/usr/local/pkg/mpich/mpich-pgi/include -I/usr/local/pkg/pgi/pgi-5.2/linux86/5.2/include'  
 CPP='cpp  -traditional -P'  
25  LINK=$FC  LINK=$FC
26    
27    EXTENDED_SRC_FLAG='-Mextend'
28    GET_FC_VERSION="-V"
29    
30    INCLUDES='-I/usr/local/pkg/mpich/mpich-pgi/include -I/usr/local/pkg/pgi/pgi-5.2/linux86/5.2/include'
31  LIBS='-L/usr/local/pkg/mpich/mpich-pgi/lib -L/usr/local/pkg/pgi/pgi-5.2/linux86/5.2/lib'  LIBS='-L/usr/local/pkg/mpich/mpich-pgi/lib -L/usr/local/pkg/pgi/pgi-5.2/linux86/5.2/lib'
32    
33  if test "x$IEEE" = x ; then  if test "x$IEEE" = x ; then
34      #  No need for IEEE-754      #  No need for IEEE-754
35      FFLAGS='-byteswapio -r8 -Mnodclchk -Mextend'      FFLAGS="$FFLAGS -byteswapio -Mnodclchk -Mextend"
36      # FOPTIM='-tp p6 -v -O2 -Munroll -Mvect=cachesize:512000,transform'      # FOPTIM='-tp p6 -v -O2 -Munroll -Mvect=cachesize:512000,transform'
37      FOPTIM='-fastsse -Mvect=cachesize:524288,transform'      FOPTIM='-fastsse -Mvect=cachesize:524288,transform'
38  else  else
39      #  Try to follow IEEE-754      #  Try to follow IEEE-754
40      FFLAGS='-byteswapio -r8'      FFLAGS="$FFLAGS -byteswapio"
41      FOPTIM='-O0 -Mscalarsse -Mcache_align -Mnoflushz -Kieee'      FOPTIM='-O0 -Mscalarsse -Mcache_align -Mnoflushz -Kieee'
42  fi  fi
43    #- might want to use '-r8' for fizhi pkg:
44    #FFLAGS="$FFLAGS -r8"
45    

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

  ViewVC Help
Powered by ViewVC 1.1.22