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

Diff of /MITgcm/tools/build_options/linux_amd64_pathf90

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

revision 1.4 by ce107, Mon Jun 22 23:13:30 2009 UTC revision 1.5 by jmc, Wed Aug 10 00:35:36 2011 UTC
# Line 1  Line 1 
1  #!/bin/bash  #! /usr/bin/env bash
2  #  #
3  #  $Header$  #  $Header$
4  #  $Name$  #  $Name$
5  #  #
6  # Build options for Fedore Core 3 x86-64 Opteron  # Build options for PathScale (EKOPATH) Compiler on Linux x86-64
7  # tested on (Linux batsi 2.6.10-1.766_FC3smp #1 SMP Wed Feb 9 23:17:48 EST 2005 x86_64 x86_64 x86_64 GNU/Linux) system 20051802  #  first version tested on Fedore Core 3 x86-64 Opteron (Linux batsi)
8    #  updated and tested on acesgrid (Fedora Core 15)
9  #  #
10    #-------
11    # run with OpenMP: needs to set environment var. OMP_NUM_THREADS
12    #    and generally, needs to increase the thread stack-size:
13    #   -  sh,bash:
14    #     > export OMP_NUM_THREADS=2
15    #     > export PSC_OMP_STACK_SIZE=400m
16    #   - csh,tcsh:
17    #     > setenv OMP_NUM_THREADS 2
18    #     > setenv PSC_OMP_STACK_SIZE 400m
19    #-------
20    
21  CC=pathcc  CC=pathcc
22  FC=pathf90  FC=pathf90
23  LD=pathf90  LD=pathf90
24  DEFINES='-DWORDLENGTH=4'  DEFINES='-DWORDLENGTH=4'
25  CPP='cpp -traditional -P'  CPP='cpp -traditional -P'
26  MAKEDEPEND=/usr/X11R6/bin/makedepend  NOOPTFLAGS='-O0 -g'
 NOOPTFLAGS='-O0 -m64 -g -fPIC'  
27  NOOPTFILES=''  NOOPTFILES=''
28    GET_FC_VERSION="-v"
29    OMPFLAG='-openmp'
30    
31  if test "x$DEVEL" != x ; then  if test "x$DEVEL" != x ; then
32      FFLAGS='-m64 -convert big_endian -fPIC -ffortran-bounds-check -trapuv -g'      FFLAGS='-m64 -convert big_endian -fPIC -ffortran-bounds-check -trapuv -g'
# Line 27  if test "x$IEEE" = x ; then Line 39  if test "x$IEEE" = x ; then
39      FOPTIM='-Ofast -LNO:fusion=2 -funsafe-math-optimizations'      FOPTIM='-Ofast -LNO:fusion=2 -funsafe-math-optimizations'
40  else  else
41      #  Try to follow IEEE-754      #  Try to follow IEEE-754
42      FOPTIM='-Ofast -LNO:fusion=2 -OPT:roundoff=0:IEEE_arithmetic=1 -fmath-errno -fno-fast-math'      FOPTIM='-O0 -OPT:roundoff=0:IEEE_arithmetic=1 -fmath-errno -fno-fast-math'
43  fi  fi
44    
45  F90FLAGS=$FFLAGS  F90FLAGS=$FFLAGS
46  F90OPTIM=$FOPTIM  F90OPTIM=$FOPTIM
47  CFLAGS='-O3 -m64 -fPIC'  CFLAGS='-O0 -m64 -fPIC'
48  GSLLIB='-lgsl -lgslcblas'  GSLLIB='-lgsl -lgslcblas'
49    
50  if [ "x$NETCDF_ROOT" != x ] ; then  if [ "x$NETCDF_ROOT" != x ] ; then

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

  ViewVC Help
Powered by ViewVC 1.1.22