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

Diff of /MITgcm/tools/build_options/linux_amd64_ifort

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

revision 1.4 by ce107, Tue Jul 31 22:26:20 2007 UTC revision 1.5 by jmc, Fri Feb 19 22:26:01 2010 UTC
# Line 1  Line 1 
1  #!/bin/bash  #!/bin/bash
2  #  #
3    # $Header$
4    # $Name$
5    #
6    
7  # Composed and tested by ce107 on ross/weddell (Opteron system)  # Composed and tested by ce107 on ross/weddell (Opteron system)
8  # Should work fine on EM64T and other AMD64 compatible Intel systems  # Should work fine on EM64T and other AMD64 compatible Intel systems
9  # a) Processor specific flags:  # a) Processor specific flags:
# Line 10  Line 14 
14  # c) Provided that the libraries you link to are compiled with -fPIC this  # c) Provided that the libraries you link to are compiled with -fPIC this
15  # optfile should work.  # optfile should work.
16  # d) You can replace -fPIC with -mcmodel=medium which may perform faster  # d) You can replace -fPIC with -mcmodel=medium which may perform faster
17  # then -fPIC and still support data sizes over 2GB per process but all  # than -fPIC and still support data sizes over 2GB per process but all
18  # the libraries you link to myst be compiled with -fPIC or -mcmodel=medium  # the libraries you link to myst be compiled with -fPIC or -mcmodel=medium
19  # e) Changed from -O3 to -O2 to avoid buggy Intel v.10 compilers. Speed  # e) Changed from -O3 to -O2 to avoid buggy Intel v.10 compilers. Speed
20  # impact appears to be minimal.  # impact appears to be minimal.
21    
22    #-------
23    # run with OpenMP: needs to set environment var. OMP_NUM_THREADS
24    #    and generally, needs to increase the stack-size:
25    #   -  sh,bash:
26    #     > export OMP_NUM_THREADS=2
27    #     > export KMP_STACKSIZE=400m
28    #   - csh,tcsh:
29    #     > setenv OMP_NUM_THREADS 2
30    #     > setenv KMP_STACKSIZE 400m
31    #-------
32    
33  FC=ifort  FC=ifort
34  F90C=ifort  F90C=ifort
35  CC=icc  CC=icc
# Line 22  LINK='ifort -i-dynamic -no-ipo' Line 38  LINK='ifort -i-dynamic -no-ipo'
38  DEFINES='-DWORDLENGTH=4'  DEFINES='-DWORDLENGTH=4'
39  CPP='cpp  -traditional -P'  CPP='cpp  -traditional -P'
40  F90FIXEDFORMAT='-fixed -Tf'  F90FIXEDFORMAT='-fixed -Tf'
41    EXTENDED_SRC_FLAG='-132'
42    OMPFLAG='-openmp'
43    
44  NOOPTFLAGS='-O0 -g -m64 -fPIC'  NOOPTFLAGS='-O0 -g -m64 -fPIC'
45  NOOPTFILES=''  NOOPTFILES=''
# Line 31  INCLUDES='' Line 49  INCLUDES=''
49  LIBS=''  LIBS=''
50    
51  if test "x$DEVEL" != x ; then  if test "x$DEVEL" != x ; then
52      FFLAGS='-132 -r8 -i4 -w95 -W0 -WB -convert big_endian -assume byterecl -fPIC -O0 -g -noalign -fpstkchk -check all -fpe0 -traceback -ftrapuv -fpmodel except -warn all'      FFLAGS='-w95 -W0 -WB -convert big_endian -assume byterecl -fPIC -O0 -g -noalign -fpstkchk -check all -fpe0 -traceback -ftrapuv -fpmodel except -warn all'
53  else  else
54      FFLAGS='-132 -r8 -i4 -w95 -W0 -WB -convert big_endian -assume byterecl -fPIC'      FFLAGS='-w95 -W0 -WB -convert big_endian -assume byterecl -fPIC'
55  fi  fi
56    #- might want to use '-r8' for fizhi pkg:
57    #FFLAGS="$FFLAGS -r8"
58    
59  #  Note that the -mp switch is for ieee "maintain precision" and is  #  Note that the -mp switch is for ieee "maintain precision" and is
60  #  roughly equivalent to -ieee  #  roughly equivalent to -ieee

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

  ViewVC Help
Powered by ViewVC 1.1.22