/[MITgcm]/MITgcm/tools/build_options/sp4-64bit
ViewVC logotype

Diff of /MITgcm/tools/build_options/sp4-64bit

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

revision 1.1 by ce107, Thu Jan 13 00:16:31 2005 UTC revision 1.4 by jmc, Tue Sep 13 14:45:53 2011 UTC
# Line 1  Line 1 
1  #!/bin/bash  #!/bin/bash
2  #  #
3  #  $Header$  # $Header$
4  #  # $Name$
5    
6  #  tested on bluesky, ce107 Jan 2005  #  tested on bluesky, ce107 Dec 2005
7    #  using the following invocation:
8    #  ../../../tools/genmake2 -of=../../../tools/build_options/sp4-64bit -mpi -make=gmake
9    
10    if test "x$MPI" = xtrue ; then
11      CC='mpcc_r -q64'
12      FC='mpxlf95_r -q64'
13      LINK='mpxlf95_r -q64'
14    else
15      CC='cc_r -q64'
16      FC='xlf95_r -q64'
17      LINK='mpxlf95_r -q64'
18    fi
19    
20    FC_NAMEMANGLE="#define FC_NAMEMANGLE(X) X"
21  S64='$(TOOLSDIR)/set64bitConst.sh'  S64='$(TOOLSDIR)/set64bitConst.sh'
 MAKEDEPEND=makedepend  
22  DEFINES='-DTARGET_AIX -DWORDLENGTH=4'  DEFINES='-DTARGET_AIX -DWORDLENGTH=4'
   
23  CPP='/lib/cpp -P'  CPP='/lib/cpp -P'
24  CC='cc_r -q64'  
25  FC='xlf95_r -q64'  #FFLAGS="$FFLAGS -qfixed=72"
26  LINK='mpxlf95_r -q64'  FFLAGS="$FFLAGS -qfixed=132"
27  LIBS='-L/usr/local/apps/mass -lmass'  
28  FFLAGS='-qfixed=132'  if test "x$IEEE" = x ; then     #- with optimisation:
29  FOPTIM='-O3 -qarch=pwr4 -qtune=pwr4 -qcache=auto -qmaxmem=-1'      FOPTIM='-O3 -Q -qarch=pwr4 -qtune=pwr4 -qcache=auto -qmaxmem=-1'
30  FC_NAMEMANGLE="#define FC_NAMEMANGLE(X) X"      CFLAGS=$FOPTIM
31    else                            #- no optimisation + IEEE :
32        FOPTIM='-O3 -qstrict -Q -qarch=pwr4 -qtune=pwr4 -qcache=auto -qmaxmem=-1'
33        CFLAGS=$FOPTIM
34    fi
35    
36    #INCLUDES='-I/usr/local/include'
37    LIBS='-L/usr/local/apps/mass -lmass -L/usr/local/lib64/r4i4'
38    
39    if test "x$MPI" = xtrue ; then
40        INCLUDES='-I/usr/local/include'
41        INCLUDES="-I/usr/lpp/ppe.poe/include/thread64 $INCLUDES"
42    #   MPIINCLUDEDIR='/usr/lpp/ppe.poe/include/thread'
43    #   MPI_HEADER_FILES='mpif.h'
44    #   MPI_HEADER_FILES_INC='./mpi_headers/mpif.h'
45    fi

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

  ViewVC Help
Powered by ViewVC 1.1.22