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

Annotation of /MITgcm/tools/build_options/linux_amd64_pgf77

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


Revision 1.3 - (hide annotations) (download)
Mon Dec 20 14:45:18 2010 UTC (13 years, 5 months ago) by jmc
Branch: MAIN
CVS Tags: checkpoint63a, checkpoint63, checkpoint62s, checkpoint62r, checkpoint62q, checkpoint62w, checkpoint62v, checkpoint62u, checkpoint62t, checkpoint62z, checkpoint62y, checkpoint62x
Changes since 1.2: +24 -11 lines
updated to work on baudelaire with PGI version 10.9

1 ce107 1.1 #!/bin/bash
2     #
3 jmc 1.3 # $Header: /u/gcmpack/MITgcm/tools/build_options/linux_amd64_pgf77,v 1.2 2010/03/21 21:34:01 jmc Exp $
4 ce107 1.1 # $Name: $
5     #
6 jmc 1.3 # Build options for PGI compiler on Linux AMD64 platform
7 ce107 1.1 #
8 jmc 1.3 # tested with PGI version 10.9 on baudelaire (Linux 2.6.34.7-61.fc13.x86_64), using:
9     #-------
10     # - sh,bash:
11     # > export PGI=/srv/software/pgi/pgi-10.9
12     # > export PATH=$PGI/linux86-64/10.9/bin:$PATH
13     # > export MANPATH=$MANPATH:$PGI/linux86-64/10.9/man
14     # > export LM_LICENSE_FILE=$PGI/license.dat
15     # - csh,tcsh:
16     # > setenv PGI /srv/software/pgi/pgi-10.9
17     # > set path=($PGI/linux86-64/10.9/bin $path)
18     # > setenv MANPATH "$MANPATH":$PGI/linux86-64/10.9/man
19     # > setenv LM_LICENSE_FILE $PGI/license.dat
20     #-------
21 ce107 1.1
22     FC=pgf77
23 jmc 1.3 CC=pgcc
24 jmc 1.2
25 jmc 1.3 DEFINES='-DWORDLENGTH=4 -DNML_EXTENDED_F77'
26     CPP='cpp -traditional -P'
27 jmc 1.2 EXTENDED_SRC_FLAG='-Mextend'
28 jmc 1.3 GET_FC_VERSION="-V"
29 jmc 1.2
30 ce107 1.1 NOOPTFLAGS='-O0'
31 jmc 1.2
32 ce107 1.1 if test "x$IEEE" = x ; then
33     # No need for IEEE-754
34 jmc 1.3 FFLAGS="$FFLAGS -byteswapio -Ktrap=fp"
35     FOPTIM='-tp k8-64 -pc=64 -O2 -Mvect=sse'
36     #FOPTIM="$FOPTIM -fastsse -O3 -Msmart -Mvect=cachesize:1048576,transform"
37 ce107 1.1 else
38     # Try to follow IEEE-754
39 jmc 1.3 FFLAGS="$FFLAGS -byteswapio -Ktrap=fp -Mdclchk"
40     FOPTIM='-pc=64 -O0 -Kieee'
41 ce107 1.1 fi
42 jmc 1.2 #- might want to use '-r8' for fizhi pkg:
43     #FFLAGS="$FFLAGS -r8"
44 ce107 1.1

  ViewVC Help
Powered by ViewVC 1.1.22