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

Contents of /MITgcm/tools/build_options/linux_amd64_pgf77

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


Revision 1.5 - (show annotations) (download)
Mon Jan 23 20:54:07 2012 UTC (12 years, 2 months ago) by jmc
Branch: MAIN
CVS Tags: checkpoint64i, checkpoint64h, checkpoint64j, checkpoint64a, checkpoint64c, checkpoint64b, checkpoint64e, checkpoint64d, checkpoint64g, checkpoint64f, checkpoint63p, checkpoint63q, checkpoint63r, checkpoint63s, checkpoint63l, checkpoint63m, checkpoint63n, checkpoint63o, checkpoint63i, checkpoint63j, checkpoint63k, checkpoint64
Changes since 1.4: +9 -3 lines
always use pgf90 if ALWAYS_USE_F90 is set (similar to linux_ia32_pgf77)

1 #!/bin/bash
2 #
3 # $Header: /u/gcmpack/MITgcm/tools/build_options/linux_amd64_pgf77,v 1.4 2011/08/19 22:54:42 jmc Exp $
4 # $Name: $
5 #
6 # Build options for PGI compiler on Linux AMD64 platform
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 if test "x$MPI" = xtrue ; then
29 CC=mpicc
30 FC=mpif77
31 F90C=mpif90
32 else
33 CC=pgcc
34 FC=pgf77
35 F90C=pgf90
36 fi
37
38 DEFINES="-DWORDLENGTH=4"
39 if test "x$ALWAYS_USE_F90" = x1 ; then
40 FC=$F90C
41 else
42 DEFINES="$DEFINES -DNML_EXTENDED_F77"
43 fi
44 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
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

  ViewVC Help
Powered by ViewVC 1.1.22