/[MITgcm]/MITgcm/tools/build_options/unsupported/linux_amd64_pathf90+mth
ViewVC logotype

Annotation of /MITgcm/tools/build_options/unsupported/linux_amd64_pathf90+mth

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


Revision 1.1 - (hide annotations) (download)
Wed Aug 10 23:29:37 2011 UTC (12 years, 9 months ago) by jmc
Branch: MAIN
CVS Tags: checkpoint64y, checkpoint64x, checkpoint64z, checkpoint64q, checkpoint64p, checkpoint64s, checkpoint64r, checkpoint64u, checkpoint64t, checkpoint64w, checkpoint64v, checkpoint64i, checkpoint64h, checkpoint64k, checkpoint64j, checkpoint64m, checkpoint64l, checkpoint64o, checkpoint64n, checkpoint64a, checkpoint64c, checkpoint64b, checkpoint64e, checkpoint64d, checkpoint64g, checkpoint64f, checkpoint63p, checkpoint63q, checkpoint63r, checkpoint63s, checkpoint63l, checkpoint63m, checkpoint63n, checkpoint63o, checkpoint63h, checkpoint63i, checkpoint63j, checkpoint63k, checkpoint63d, checkpoint63e, checkpoint63f, checkpoint63g, checkpoint63b, checkpoint63c, checkpoint64, checkpoint65, checkpoint66g, checkpoint66f, checkpoint66e, checkpoint66d, checkpoint66c, checkpoint66b, checkpoint66a, checkpoint66o, checkpoint66n, checkpoint66m, checkpoint66l, checkpoint66k, checkpoint66j, checkpoint66i, checkpoint66h, checkpoint65z, checkpoint65x, checkpoint65y, checkpoint65r, checkpoint65s, checkpoint65p, checkpoint65q, checkpoint65v, checkpoint65w, checkpoint65t, checkpoint65u, checkpoint65j, checkpoint65k, checkpoint65h, checkpoint65i, checkpoint65n, checkpoint65o, checkpoint65l, checkpoint65m, checkpoint65b, checkpoint65c, checkpoint65a, checkpoint65f, checkpoint65g, checkpoint65d, checkpoint65e, HEAD
move linux_amd64_pathf90+mth to unsupported
(standard optfile linux_amd64_pathf90 works as well with genmake2 -omp)

1 jmc 1.1 #!/bin/bash
2     #
3     # $Header: /u/gcmpack/MITgcm/tools/build_options/linux_amd64_pathf90+mth,v 1.2 2009/06/22 23:13:30 ce107 Exp $
4     # $Name: $
5     #
6     # Multithreaded tests require
7     # export PSC_OMP_STACK_SIZE=400m
8     # export OMP_NUM_THREADS=2
9     #
10    
11     CC=pathcc
12     FC=pathf90
13     LD=pathf90
14     DEFINES='-DWORDLENGTH=4 -DUSE_OMP_THREADING'
15     CPP='cpp -traditional -P'
16     MAKEDEPEND=/usr/X11R6/bin/makedepend
17     NOOPTFLAGS='-O0 -m64 -g -fPIC -openmp'
18     NOOPTFILES=''
19    
20     if test "x$DEVEL" != x ; then
21     FFLAGS='-m64 -convert big_endian -fPIC -openmp -ffortran-bounds-check -trapuv -g'
22     else
23     FFLAGS='-m64 -convert big_endian -fPIC -openmp'
24     fi
25    
26     if test "x$IEEE" = x ; then
27     # No need for IEEE-754
28     FOPTIM='-Ofast -LNO:fusion=2 -funsafe-math-optimizations -OPT:early_mp=ON'
29     else
30     # Try to follow IEEE-754
31     FOPTIM='-Ofast -LNO:fusion=2 -OPT:roundoff=0:IEEE_arithmetic=1 -fmath-errno -fno-fast-math -OPT:early_mp=ON'
32     fi
33    
34     F90FLAGS=$FFLAGS
35     F90OPTIM=$FOPTIM
36     CFLAGS='-O3 -m64 -fPIC -openmp'
37    
38     if [ "x$NETCDF_ROOT" != x ] ; then
39     INCLUDEDIR="${NETCDF_ROOT}/include"
40     INCLUDES="-I${NETCDF_ROOT}/include"
41     LIBDIR="${NETCDF_ROOT}/lib"
42     LIBS="-L${NETCDF_ROOT}/lib"
43     elif [ "x$NETCDF_HOME" != x ]; then
44     INCLUDEDIR="${NETCDF_HOME}/include"
45     INCLUDES="-I${NETCDF_HOME}/include"
46     LIBDIR="${NETCDF_HOME}/lib"
47     LIBS="-L${NETCDF_HOME}/lib"
48     elif [ "x$NETCDF_INC" != x -a "x$NETCDF_LIB" != x ]; then
49     NETCDF_INC=`echo $NETCDF_INC | sed 's/-I//g'`
50     NETCDF_LIB=`echo $NETCDF_LIB | sed 's/-L//g'`
51     INCLUDEDIR="${NETCDF_INC}"
52     INCLUDES="-I${NETCDF_INC}"
53     LIBDIR="${NETCDF_LIB}"
54     LIBS="-L${NETCDF_LIB}"
55     elif [ "x$NETCDF_INCDIR" != x -a "x$NETCDF_LIBDIR" != x ]; then
56     INCLUDEDIR="${NETCDF_INCDIR}"
57     INCLUDES="-I${NETCDF_INCDIR}"
58     LIBDIR="${NETCDF_LIBDIR}"
59     LIBS="-L${NETCDF_LIBDIR}"
60     elif test -d /usr/include/netcdf-3 ; then
61     INCLUDES='-I/usr/include/netcdf-3'
62     LIBS='-L/usr/lib/netcdf-3 -L/usr/lib64/netcdf-3'
63     elif test -d /usr/include/netcdf ; then
64     INCLUDES='-I/usr/include/netcdf'
65     elif test -d /usr/local/netcdf ; then
66     INCLUDES='-I/usr/local/netcdf/include'
67     LIBS='-L/usr/local/netcdf/lib'
68     elif test -d /usr/local/include/netcdf.inc ; then
69     INCLUDES='-I/usr/local/include'
70     LIBS='-L/usr/local/lib64'
71     fi
72    

  ViewVC Help
Powered by ViewVC 1.1.22