summaryrefslogtreecommitdiff
path: root/lib/make/known-architectures/unicos
blob: 91173dd0f872ba792b93b97636bd6319df32cdee (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.9 2000-02-26 15:37:52 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"
  # 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"}

  : ${LIBS="_ereg _perf_mjp _util _vect"}

  : ${LIBDIRS='$(CCTK_HOME)/lib/archlibs/t3e'}

  cat >> cctk_Archdefs.h <<EOF

/* T3E stuff */

#define T3E

EOF

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

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

# MPI stuff

  if test -n "$MPI" ; then
    if test "$MPI" = "NATIVE" ; then
#     Don't need to do anything for the T3E
      : 
    fi
  fi

fi