summaryrefslogtreecommitdiff
path: root/lib/make/known-architectures/unicos
blob: e0de23558c8b9350510324d36bf374f88909824a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#! /bin/sh
# /*@@
#   @file      unicos
#   @date      Thu Feb 25 09:53:22 1999
#   @author    Tom Goodale
#   @desc 
#   
#   @enddesc 
#   @version $Header: /mnt/data2/cvs2svn/cvs-repositories/Cactus/lib/make/known-architectures/unicos,v 1.15 2003-05-25 09:31:04 allen Exp $
# @@*/

if test "$CCTK_CONFIG_STAGE" = "preferred-compilers" ; then

:

else

  CFLAGS=""
  CXXFLAGS=""
  C_OPTIMISE_FLAGS="-O3"
  CXX_OPTIMISE_FLAGS="-O3"
  F90_OPTIMISE_FLAGS="-O scalar3,noieeeconform,unroll2,inline3"
  F77_OPTIMISE_FLAGS="-O scalar3,noieeeconform,unroll2,inline3"
  C_DEBUG_FLAGS="-Gn"
  CXX_DEBUG_FLAGS="-Gn"
  F77_DEBUG_FLAGS="-g"
  F90_DEBUG_FLAGS="-g"
  C_WARN_FLAGS="-h msglevel_0"
  CXX_WARN_FLAGS="-h msglevel_0"
  F77_WARN_FLAGS=" "
  F90_WARN_FLAGS=" "

  # The T3E F90 compiler uses -b if you want to supply a name for a .o file.
  : ${FCOMPILEONLY="-b"}

  # The T3E fortran compiler puts module info in .o files by default.
  : ${F90FLAGS="-dp -em"} 

  CCTK_WriteLine cctk_Archdefs.h '/* T3E stuff */'
  CCTK_WriteLine cctk_Archdefs.h "#define T3E 1"

# Cache stuff
  if test -z "$CACHELINE_BYTES" ; then
    CACHELINE_BYTES=64
    echo "Setting CACHELINE_BYTES to $CACHELINE_BYTES"
  fi

  if test -z "$CACHE_SIZE" ; then
    CACHE_SIZE="96*1024"
    echo "Setting CACHE_SIZE to $CACHE_SIZE bytes"
  fi

# MPI stuff

  if test -n "$MPI" ; then
#   Don't need to set anything for compiling with native MPI on the T3E
#   We just set NATIVE_MPI_LIBS to non-null so that it passes the
#   check in lib/make/extras/MPI/NATIVE.
    NATIVE_MPI_LIBS=" "
  fi

fi