/[MITgcm]/MITgcm/tools/build_options/linux_ia32_ifort.aces
ViewVC logotype

Annotation of /MITgcm/tools/build_options/linux_ia32_ifort.aces

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


Revision 1.2 - (hide annotations) (download)
Sun Mar 21 17:59:13 2010 UTC (14 years, 1 month ago) by jmc
Branch: MAIN
CVS Tags: checkpoint62g, checkpoint62f, checkpoint62e, checkpoint62d, checkpoint62k, checkpoint62j, checkpoint62i, checkpoint62h, checkpoint62o, checkpoint62n, checkpoint62m, checkpoint62l, checkpoint62s, checkpoint62r, checkpoint62q, checkpoint62p, checkpoint62w, checkpoint62v, checkpoint62u, checkpoint62t, checkpoint62z, checkpoint62y, checkpoint62x, checkpoint63a, checkpoint63
Changes since 1.1: +8 -5 lines
- remove "-r8 -i4" options (more similar to other compiler optfile).
- does not set FFLAGS (done in genmake2) but append to it.

1 jmc 1.1 #!/bin/bash
2 jmc 1.2 #
3     # $Header: /u/gcmpack/MITgcm/tools/build_options/linux_ia32_ifort.aces,v 1.1 2009/04/16 01:04:42 jmc Exp $
4     # $Name: $
5 jmc 1.1
6     # test Multi-Treaded with OpenMP:
7     # to get 1 node with 2 cpu : qsub -I -l nodes=1:ppn=2
8     # then on computer node:
9     # needs to load intel compiler version 9:
10     # > module load ifc/9.0.021 icc/9.0.021 intel/9.0
11     # set for 2 threads, and generally, needs to increase the stack-size:
12     # * sh,bash:
13     # > export OMP_NUM_THREADS=2
14     # > export KMP_STACKSIZE=400m
15     # * csh,tcsh:
16     # > setenv OMP_NUM_THREADS 2
17     # > setenv KMP_STACKSIZE 400m
18     #-------
19    
20     FC='ifort'
21     CC='icc'
22     LINK='ifort'
23 jmc 1.2
24 jmc 1.1 INCLUDES='-I/usr/local/pkg/ifc/ifc-9.0.021/include'
25     LIBS='-L/usr/local/pkg/ifc/ifc-9.0.021/lib'
26    
27     DEFINES='-DWORDLENGTH=4'
28     CPP='cpp -traditional -P'
29     EXTENDED_SRC_FLAG='-132'
30     OMPFLAG='-openmp'
31    
32     NOOPTFLAGS='-O0'
33     NOOPTFILES='mds_byteswapr8.F mds_byteswapr4.F mds_byteswapi4.F'
34    
35     if test "x$IEEE" = x ; then
36     FOPTIM='-O3 -align'
37 jmc 1.2 FFLAGS="$FFLAGS -w95 -W0 -WB -convert big_endian -assume byterecl"
38 jmc 1.1 else
39     FOPTIM='-O0 -noalign'
40 jmc 1.2 FFLAGS="$FFLAGS -w95 -W0 -WB -pc64 -xW -convert big_endian -assume byterecl"
41 jmc 1.1 fi
42 jmc 1.2 #- might want to use '-r8' for fizhi pkg:
43     #FFLAGS="$FFLAGS -r8"
44 jmc 1.1
45     NOOPTFILES=$NOOPTFILES' mitcplr_char2real.F mitcplr_real2char.F'
46     NOOPTFILES=$NOOPTFILES' mitcplr_char2int.F mitcplr_int2char.F mds_byteswap.F'

  ViewVC Help
Powered by ViewVC 1.1.22