/[MITgcm]/MITgcm/tools/build_options/linux_ia32_ifort+mpi_aces
ViewVC logotype

Diff of /MITgcm/tools/build_options/linux_ia32_ifort+mpi_aces

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

revision 1.7 by jmc, Mon Jun 15 02:21:47 2009 UTC revision 1.8 by jmc, Fri Jun 26 16:06:08 2009 UTC
# Line 2  Line 2 
2  #  #
3  #  $Header$  #  $Header$
4  #  #
5  #  These are the build options used with the Intel 8.x compiler for the  #  build options used with the Intel compiler, version 8 and 9,
6  #  daily testing on ACES (which are initiated by cron jobs on the "ao"  #  for the daily testing on ACES (which are initiated by cron jobs
7  #  head node).  #  on the "ao" head node).
8  #  #
9  #  Please note that the appropriate module commands:  #  Needs the appropriate module commands,
10    #  and DON'T FORGET to set environment variable MPI_INC_DIR to the include
11    #  directory of the selected MPI implementation
12  #  #
13    #-- using default intel (v8.1) and default mpich/intel:
14  #    module add mpich/intel  #    module add mpich/intel
15    #    module add netcdf/3.6.1/icc
16    #   e.g.(sh,bash):
17    #    export MPI_INC_DIR='/usr/local/pkg/mpich/mpich-intel/include/'
18    #   (and run using mpirun -machinefile my_list_of_nodes)
19    #  
20    #-- using intel v9.0 and mpich2-intel, in this order:
21    #    module add ifc/9.0.021 icc/9.0.021 intel/9.0
22    #    module add mpich2/1.0.3/intel
23    #    module add netcdf/3.6.1/icc
24    #    module add mpiexec             (<-- to run with mpiexec)
25    #   e.g.(sh,bash):
26    #    export MPI_INC_DIR='/usr/local/pkg/mpich2/mpich2-1.0.3/intel/include/'
27    #   (and run using mpiexec)
28  #  #
29  #  will add /usr/local/pkg/ifc/ifc-8.0.034/lib to LD_LIBRARY_PATH  #-- Multi-Threading with OpenMP:
30  #  which is needed by any executables generated with this optfile.  #  -several problems with earlier version of ifort (including some version 8)
31  #  The PBS -V option for exporting environment variables <== does not work  #  -with version 9 and more recent one:
32  #  may also be helpful if you encounter missing-library problems.  #   1) compile with genmake2 -omp option ;
33  #  Or, alternatively, one may choose to link with one of the intel  #   2) needs to set environment variable OMP_NUM_THREADS, and generally,
34  #  "-static" or "-i-static" flags.  #      needs also to increase the thread stack-size:
35    #     (sh, bash) > export OMP_NUM_THREADS=2  
36    #                > export KMP_STACKSIZE=400m
37    #     (csh,tcsh) > setenv OMP_NUM_THREADS 2
38    #                > setenv KMP_STACKSIZE 400m
39    #  NOTE: set KMP_STACKSIZE in .bashrc/.profile/.cshrc/.tcshrc is the easiest
40    #  way (I found) to set it for all proc; not an issue (?) for OMP_NUM_THREADS
41    
42    # Notes: the PBS -V option for exporting environment variables does not work
43    #        => need to set all env var on compute nodes
44    
45  FC='mpif77'  FC='mpif77'
46  CC='mpicc'  CC='mpicc'
47  F90C='mpif90 -fixed -c '  F90C='mpif90 -fixed -c '
48  LINK='mpif77'  LINK='mpif77'
49  INCLUDES='-I/usr/local/pkg/ifc/ifc-8.1.018/include -I/usr/local/pkg/mpich/mpich-intel/include/'  
50  LIBS='-L/usr/local/pkg/ifc/ifc-8.1.018/lib'  #-- for NetCDF:
51    INCLUDES="-I$NETCDF_INCDIR"
52    INCLUDEDIRS=$NETCDF_INCDIR
53    LIBS="-L$NETCDF_LIBDIR"
54    
55    #- for MPI:
56    INCLUDES="$INCLUDES -I$MPI_INC_DIR"
57    INCLUDEDIRS="$INCLUDEDIRS $MPI_INC_DIR"
58    MPIINCLUDEDIR="$MPI_INC_DIR"
59    MPI_HEADER_FILES='mpif.h mpiof.h'
60    MPI_HEADER_FILES_INC='./mpi_headers/mpif.h ./mpi_headers/mpiof.h'
61    
62  DEFINES='-DALLOW_USE_MPI -DALWAYS_USE_MPI -DWORDLENGTH=4'  DEFINES='-DALLOW_USE_MPI -DALWAYS_USE_MPI -DWORDLENGTH=4'
63  CPP='cpp  -traditional -P'  CPP='cpp  -traditional -P'
64  EXTENDED_SRC_FLAG='-132'  EXTENDED_SRC_FLAG='-132'
65    OMPFLAG='-openmp'
66    
67  NOOPTFLAGS='-O0'  NOOPTFLAGS='-O0'
68  NOOPTFILES='mds_byteswapr8.F mds_byteswapr4.F mds_byteswapi4.F'  NOOPTFILES='mds_byteswapr8.F mds_byteswapr4.F mds_byteswapi4.F'
# Line 50  F90OPTIM=$FOPTIM Line 85  F90OPTIM=$FOPTIM
85    
86  NOOPTFILES=$NOOPTFILES' mitcplr_char2real.F mitcplr_real2char.F'  NOOPTFILES=$NOOPTFILES' mitcplr_char2real.F mitcplr_real2char.F'
87  NOOPTFILES=$NOOPTFILES' mitcplr_char2int.F mitcplr_int2char.F mds_byteswap.F'  NOOPTFILES=$NOOPTFILES' mitcplr_char2int.F mitcplr_int2char.F mds_byteswap.F'
88    

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

  ViewVC Help
Powered by ViewVC 1.1.22