/[MITgcm]/MITgcm/tools/build_options/linux_amd64_ifort11+mpi_generic
ViewVC logotype

Diff of /MITgcm/tools/build_options/linux_amd64_ifort11+mpi_generic

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

revision 1.1 by jmc, Tue Feb 16 23:56:02 2010 UTC revision 1.2 by jmc, Sun Mar 21 17:59:13 2010 UTC
# Line 9  Line 9 
9  # DON'T FORGET to set environment variable MPI_INC_DIR to the include  # DON'T FORGET to set environment variable MPI_INC_DIR to the include
10  # directory of your MPI implementation  # directory of your MPI implementation
11    
12    #-------
13    # run with OpenMP: needs to set environment var. OMP_NUM_THREADS
14    #    and generally, needs to increase the stack-size:
15    #   -  sh,bash:
16    #     > export OMP_NUM_THREADS=2
17    #     > export KMP_STACKSIZE=400m
18    #   - csh,tcsh:
19    #     > setenv OMP_NUM_THREADS 2
20    #     > setenv KMP_STACKSIZE 400m
21    #  NOTE: need to set KMP_STACKSIZE in ~/.tcshrc (but curiously, works
22    #  without OMP_NUM_THREADS in ~/.tcshrc).
23    #-------
24    
25  FC=${FC:=mpif77}  FC=${FC:=mpif77}
26  F90C=${F90C:=mpif90}  F90C=${F90C:=mpif90}
27  CC=${CC:=mpicc}  CC=${CC:=mpicc}
# Line 16  LINK="$F90C -shared-intel -no-ipo" Line 29  LINK="$F90C -shared-intel -no-ipo"
29    
30  DEFINES='-DALLOW_USE_MPI -DALWAYS_USE_MPI -DWORDLENGTH=4'  DEFINES='-DALLOW_USE_MPI -DALWAYS_USE_MPI -DWORDLENGTH=4'
31  CPP='cpp  -traditional -P'  CPP='cpp  -traditional -P'
32  F90FIXEDFORMAT='-fixed -Tf'  F90FIXEDFORMAT='-fixed -Tf'
33  EXTENDED_SRC_FLAG='-132'  EXTENDED_SRC_FLAG='-132'
34    OMPFLAG='-openmp'
35    
36  NOOPTFLAGS='-O0 -g -m64 -fPIC'  NOOPTFLAGS='-O0 -g -m64 -fPIC'
37  NOOPTFILES=''  NOOPTFILES=''
# Line 27  INCLUDES='' Line 41  INCLUDES=''
41  LIBS=''  LIBS=''
42    
43  if test "x$DEVEL" != x ; then  if test "x$DEVEL" != x ; then
44      FFLAGS='-m64 -fPIC -r8 -i4 -convert big_endian -assume byterecl -O0 -g -debug all -debug-parameters all -noalign -fp-stack-check -check all -fpe0 -traceback -ftrapuv -fp-model strict -warn all'      FFLAGS="$FFLAGS -m64 -fPIC -convert big_endian -assume byterecl -O0 -g -debug all -debug-parameters all -noalign -fp-stack-check -check all -fpe0 -traceback -ftrapuv -fp-model strict -warn all"
45  else  else
46      FFLAGS='-m64 -fPIC -r8 -i4 -W0 -WB -convert big_endian -assume byterecl'      FFLAGS="$FFLAGS -m64 -fPIC -W0 -WB -convert big_endian -assume byterecl"
47  fi  fi
48    #- might want to use '-r8' for fizhi pkg:
49    #FFLAGS="$FFLAGS -r8"
50    
51  if test "x$GENERIC" != x ; then  if test "x$GENERIC" != x ; then
52      PROCF=-axSSE4.2,SSE4.1,SSSE3,SSE3,SSE2      PROCF=-axSSE4.2,SSE4.1,SSSE3,SSE3,SSE2

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

  ViewVC Help
Powered by ViewVC 1.1.22