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

Diff of /MITgcm/tools/build_options/linux_amd64_open64

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

revision 1.3 by jmc, Thu Aug 18 22:04:49 2011 UTC revision 1.4 by jmc, Fri Aug 19 22:48:06 2011 UTC
# Line 7  Line 7 
7  #  first version tested on Fedore Core 4 x86-64 Opteron (Linux batsi)  #  first version tested on Fedore Core 4 x86-64 Opteron (Linux batsi)
8  #  updated and tested on acesgrid (Fedora Core 15), using:  #  updated and tested on acesgrid (Fedora Core 15), using:
9  #     module load open64       (Version 4.2.4)  #     module load open64       (Version 4.2.4)
10    # Also tested with MPI on acesgrid, using:
11    #     module load open64       (Version 4.2.4)
12    #  and  with mpich1:
13    #     module load mvapich
14    #   or  with mpich2:
15    #     module load mvapich2
16    #   or  with openmpi:  <== not yet tested
17    #     module load openmpi
18    
19  #-------  #-------
20  # run with OpenMP: needs to set environment var. OMP_NUM_THREADS  # run with OpenMP: needs to set environment var. OMP_NUM_THREADS
# Line 19  Line 27 
27  #     > setenv OMP_SLAVE_STACK_SIZE 400m  #     > setenv OMP_SLAVE_STACK_SIZE 400m
28  #-------  #-------
29    
30  CC=opencc  if test "x$MPI" = xtrue ; then
31  FC=openf90    CC=mpicc
32  LINK=openf90    FC=mpif90
33      LINK=mpif90
34    else
35      CC=opencc
36      FC=openf90
37      LINK=openf90
38    fi
39    
40  DEFINES='-DWORDLENGTH=4'  DEFINES='-DWORDLENGTH=4'
41  CPP='cpp -traditional -P'  CPP='cpp -traditional -P'
# Line 58  F90OPTIM=$FOPTIM Line 72  F90OPTIM=$FOPTIM
72  CFLAGS='-O0 -m64 -fPIC'  CFLAGS='-O0 -m64 -fPIC'
73  GSLLIB='-lgsl -lgslcblas'  GSLLIB='-lgsl -lgslcblas'
74    
75    INCLUDEDIRS=''
76    INCLUDES=''
77    LIBS=''
78    
79  if [ "x$NETCDF_ROOT" != x ] ; then  if [ "x$NETCDF_ROOT" != x ] ; then
80      INCLUDEDIR="${NETCDF_ROOT}/include"      INCLUDEDIR="${NETCDF_ROOT}/include"
81      INCLUDES="-I${NETCDF_ROOT}/include"      INCLUDES="-I${NETCDF_ROOT}/include"
# Line 93  elif test -d /usr/local/include/netcdf.i Line 111  elif test -d /usr/local/include/netcdf.i
111      LIBS='-L/usr/local/lib64'      LIBS='-L/usr/local/lib64'
112  fi  fi
113    
114    if [ -n "$MPI_INC_DIR" -a "x$MPI" = xtrue ] ; then
115        INCLUDES="$INCLUDES -I$MPI_INC_DIR"
116        INCLUDEDIRS="$INCLUDEDIRS $MPI_INC_DIR"
117        MPIINCLUDEDIR="$MPI_INC_DIR"
118        MPI_HEADER_FILES='mpif.h mpiof.h'
119        MPI_HEADER_FILES_INC='./mpi_headers/mpif.h ./mpi_headers/mpiof.h'
120    fi
121    

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

  ViewVC Help
Powered by ViewVC 1.1.22