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

Diff of /MITgcm/tools/build_options/linux_ia64_cray_ollie

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

revision 1.7 by mlosch, Mon Mar 13 09:28:07 2017 UTC revision 1.8 by mlosch, Tue Aug 8 12:24:53 2017 UTC
# Line 25  NOOPTFLAGS="-O1" Line 25  NOOPTFLAGS="-O1"
25  NOOPTFILES=''  NOOPTFILES=''
26    
27  FFLAGS="$FFLAGS -h byteswapio"  FFLAGS="$FFLAGS -h byteswapio"
28  if test "$OMP" = true ; then  if test "x$OMP" = xtrue ; then
29      # alternative if-statement: if test ! "x$OMP" = x ; then
30      # this flag does not have the right name, but it does the right thing:
31      # write namelists into real files on the disk
32      # (in open_copy_data_file and eeset_parm)
33      # DEFINES="$DEFINES -DTARGET_CRAYXT"
34    # for some reason this solves a problem with an unexpected    # for some reason this solves a problem with an unexpected
35    # "expectStatus=20" when using OpenMP with hyperthreads    # "expectStatus=20" when using OpenMP with hyperthreads
36    NOOPTFILES="${NOOPTFILES} diagnostics_switch_onoff.F mon_init.F mon_set_iounit.F"    NOOPTFILES="${NOOPTFILES} diagnostics_switch_onoff.F mon_init.F mon_set_iounit.F"
37  else  else
38      # be default the cray compiler uses omp, turn it off here
39    FFLAGS="$FFLAGS -hnoomp"    FFLAGS="$FFLAGS -hnoomp"
40  fi  fi
41  # source file listing with compiler messages:  # source file listing with compiler messages:
# Line 57  else Line 63  else
63    fi    fi
64  fi  fi
65    
66    if test "x$OMP" = xtrue ; then
67    # this is a necessary hack to have -homp after the optimization flags,
68    # because -O0 overrides the default to have -homp
69      FOPTIM="$FOPTIM $OMPFLAG"
70      OMPFLAG=" "
71    fi
72  F90FLAGS=$FFLAGS  F90FLAGS=$FFLAGS
73  F90OPTIM=$FOPTIM  F90OPTIM=$FOPTIM
74  CFLAGS="-O0 $MCMODEL"  CFLAGS="-O0 $MCMODEL"

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8

  ViewVC Help
Powered by ViewVC 1.1.22