blob: a7b7871a8e61f0755ac868043ff1b25035e0efb4 (
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
|
#! /bin/sh
# /*@@
# @file hiuxwe2
# @date Wed Apr 19 17:58:22 2000
# @author Tom Goodale
# @desc
# Configuration file for the Hitachi SR8000-F1
# @enddesc
# @history
# @hauthor Peter Diener
# @hdesc
# Added better optimization options
# @endhdesc
# @hauthor Frank Herrmann
# @hdate Wed 20 Mar 2002
# @hdesc
# Added cross-compiling defines
# @endhdesc
# @endhistory
# @version $Header: /mnt/data2/cvs2svn/cvs-repositories/Cactus/lib/make/known-architectures/hiuxwe2,v 1.11 2003-04-30 14:20:24 allen Exp $
# @@*/
if test "$CCTK_CONFIG_STAGE" = 'preferred-compilers' ; then
#
# use the native compilers by default
#
if test -z "$CC"; then
echo Setting C compiler to cc
CC='cc'
fi
if test -z "$CXX"; then
echo Setting C++ compiler to CC
CXX='CC'
fi
if test -z "$LD"; then
echo Setting linker to CC
LD='CC'
fi
else
: ${F77FLAGS='-conti199 -msg=w -uinline=2'}
: ${F90FLAGS='-conti199 -msg=w -uinline=2'}
if test "$LD" = 'CC' -o "$LD" = 'xf90' ; then
F77FLAGS="$F77FLAGS -64"
F90FLAGS="$F90FLAGS -64"
fi
# For debug configurations, disallow the generation of conditional
# load/store ops which may cause problems on array accesses
# which have been passed in from C to Fortran as a NULL pointer.
if test -n "$DEBUG" -a "x$DEBUG" != 'xno' ; then
: ${F77_OPTIMISE_FLAGS='-opt=ss -nopredicate -pvfunc=2 -noparallel -model=F1'}
: ${F90_OPTIMISE_FLAGS='-opt=ss -nopredicate -pvfunc=2 -noparallel -model=F1 -noscope'}
else
: ${F77_OPTIMISE_FLAGS='-opt=ss -pvfunc=2 -noparallel -model=F1'}
: ${F90_OPTIMISE_FLAGS='-opt=ss -pvfunc=2 -noparallel -model=F1 -noscope'}
fi
: ${F77_WARN_FLAGS='-fullmsg'}
: ${F90_WARN_FLAGS='-fullmsg'}
if test "$CC" = 'cc' -o "$CC" = 'xcc' ; then
CFLAGS="$CFLAGS -64"
: ${C_OPTIMISE_FLAGS='-O4 -pvec -pvfunc -predicate -model=F1'}
fi
if test "$CXX" = 'CC' ; then
CXXFLAGS="$CXXFLAGS -64"
# : ${CXX_OPTIMISE_FLAGS='-O4 -pvec -pvfunc -predicate -model=F1'}
fi
if test "$LD" = 'CC' -o "$LD" = 'xf90'; then
LDFLAGS="$LDFLAGS -64"
fi
# /lib/cpp cannot generate dependencies on this machine but we have gcc.
: ${C_DEPEND='gcc -E -M $(CPPFLAGS)'}
: ${CXX_DEPEND='$(C_DEPEND)'}
: ${F_DEPEND='$(C_DEPEND) -x c'}
: ${F77_DEPEND='$(F_DEPEND)'}
# Yet another CXX->C translator 8-(.
: ${CXX_WORKING_NAME='$(notdir $<)'}
: ${CXX_POSTPROCESSING='if test -r $(SCRATCH_BUILD)$(DIRSEP)$(basename $(basename $(notdir $@))).o ; then cp $(SCRATCH_BUILD)$(DIRSEP)$(basename $(basename $(notdir $@))).o $@ ; fi'}
: ${LIBS='f90s f90 hf90pvmath hf90math m'}
: ${CACHELINE_BYTES='128'}
: ${CACHE_SIZE='128*1024'}
# MPI stuff
if test -n "$MPI" ; then
NATIVE_MPI_LIBS='mpi'
if test "$LD" = 'CC' ; then
NATIVE_MPI_LIB_DIRS='/usr/mpi/lib/lib64'
else
NATIVE_MPI_LIB_DIRS='/usr/mpi/lib/lib32'
fi
NATIVE_MPI_INC_DIRS='/usr/mpi/include'
fi
# PTHREADS stuff
if test "X$PTHREADS" = 'Xyes'; then
PTHREADS_DEFINE='_PTHREADS_D10'
fi
# stuff for cross-compiling
if test "x$cross_compiling" = 'xyes' ; then
ENDIAN=big
SIZEOF_SHORT_INT=2
SIZEOF_INT=4
SIZEOF_LONG_INT=8
SIZEOF_LONG_LONG=8
SIZEOF_FLOAT=4
SIZEOF_DOUBLE=8
SIZEOF_LONG_DOUBLE=16
SIZEOF_POINTER=8
NULL_DEVICE='/dev/null'
AR=xar
RANLIB=xranlib
RANLIBFLAGS=
USE_RANLIB=yes
fi
fi
|