/[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.4 - (show annotations) (download)
Fri Aug 19 22:54:42 2011 UTC (12 years, 9 months ago) by jmc
Branch: MAIN
CVS Tags: checkpoint63h, checkpoint63d, checkpoint63e, checkpoint63f, checkpoint63g, checkpoint63b, checkpoint63c
Changes since 1.3: +35 -12 lines
merge linux_amd64_pgf77+mpi into linux_amd64_pgf77
 (allows an MPI built using "genmake2 -mpi")

1 #!/bin/bash
2 #
3 # $Header: /u/gcmpack/MITgcm/tools/build_options/linux_amd64_pgf77,v 1.3 2010/12/20 14:45:18 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 LINK=mpif77
32 else
33 CC=pgcc
34 FC=pgf77
35 fi
36
37 DEFINES='-DWORDLENGTH=4 -DNML_EXTENDED_F77'
38 CPP='cpp -traditional -P'
39 EXTENDED_SRC_FLAG='-Mextend'
40 GET_FC_VERSION="-V"
41
42 NOOPTFLAGS='-O0'
43 NOOPTFILES=''
44
45 FFLAGS="$FFLAGS -byteswapio -Ktrap=fp"
46 #- might want to use '-r8' for fizhi pkg:
47 #FFLAGS="$FFLAGS -r8"
48
49 if test "x$IEEE" = x ; then #- with optimisation:
50 FOPTIM='-tp k8-64 -pc=64 -O2 -Mvect=sse'
51 #FOPTIM="$FOPTIM -fastsse -O3 -Msmart -Mvect=cachesize:1048576,transform"
52 else #- no optimisation + IEEE :
53 #FFLAGS="$FFLAGS -Mdclchk" #- pkg/zonal_filt does not pass with declaration-check
54 FOPTIM='-pc=64 -O0 -Kieee'
55 fi
56
57 INCLUDEDIRS=''
58 INCLUDES=''
59 LIBS=''
60
61 if [ -n "$MPI_INC_DIR" -a "x$MPI" = xtrue ] ; then
62 INCLUDES="$INCLUDES -I$MPI_INC_DIR"
63 INCLUDEDIRS="$INCLUDEDIRS $MPI_INC_DIR"
64 MPIINCLUDEDIR="$MPI_INC_DIR"
65 MPI_HEADER_FILES='mpif.h mpiof.h'
66 MPI_HEADER_FILES_INC='./mpi_headers/mpif.h ./mpi_headers/mpiof.h'
67 fi

  ViewVC Help
Powered by ViewVC 1.1.22