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

Contents of /MITgcm/tools/build_options/linux_amd64_pgf77+mpi

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, 8 months ago) by jmc
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +1 -1 lines
FILE REMOVED
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+mpi,v 1.3 2011/08/10 23:30:41 jmc Exp $
4 # $Name: $
5 #
6 # Build options for PGI compiler on Linux AMD64 platform
7 #
8 # tested with PGI version 11.7 on acesgrid cluster (Linux 2.6.38.8-35.fc15.x86_64),
9 # using:
10 # module load pgi
11 # and with mpich2:
12 # module load mvapich2
13 # or with openmpi
14 # module load openmpi
15 #-------
16
17 FC=mpif77
18 CC=mpicc
19 LINK=mpif77
20
21 DEFINES='-DWORDLENGTH=4 -DNML_EXTENDED_F77'
22 CPP='cpp -traditional -P'
23 EXTENDED_SRC_FLAG='-Mextend'
24 GET_FC_VERSION="-V"
25
26 NOOPTFLAGS='-O0'
27 NOOPTFILES=''
28
29 INCLUDEDIRS=''
30 INCLUDES=''
31 LIBS=''
32
33 if test "x$IEEE" = x ; then
34 # No need for IEEE-754
35 FFLAGS="$FFLAGS -byteswapio -Ktrap=fp"
36 FOPTIM='-tp k8-64 -pc=64 -O2 -Mvect=sse'
37 #FOPTIM="$FOPTIM -fastsse -O3 -Msmart -Mvect=cachesize:1048576,transform"
38 else
39 # Try to follow IEEE-754
40 FFLAGS="$FFLAGS -byteswapio -Ktrap=fp"
41 #FFLAGS="$FFLAGS -Mdclchk" #- pkg/zonal_filt does not pass with declaration-check
42 FOPTIM='-pc=64 -O0 -Kieee'
43 fi
44 #- might want to use '-r8' for fizhi pkg:
45 #FFLAGS="$FFLAGS -r8"
46
47 if [ -n "$MPI_INC_DIR" ]; then
48 INCLUDES="$INCLUDES -I$MPI_INC_DIR"
49 INCLUDEDIRS="$INCLUDEDIRS $MPI_INC_DIR"
50 MPIINCLUDEDIR="$MPI_INC_DIR"
51 MPI_HEADER_FILES='mpif.h mpiof.h'
52 MPI_HEADER_FILES_INC='./mpi_headers/mpif.h ./mpi_headers/mpiof.h'
53 fi

  ViewVC Help
Powered by ViewVC 1.1.22