blob: 594bb805725ed8a277d6b90bc79780d6695bfca5 (
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
|
#! /bin/sh
# /*@@
# @file hiuxwe2
# @date Wed Apr 19 17:58:22 2000
# @author Tom Goodale
# @desc Optimazations by Peter Diener
# Configuration file for the Hitachi SR8000-F1
# @enddesc
# @version $Header: /mnt/data2/cvs2svn/cvs-repositories/Cactus/lib/make/known-architectures/hiuxwe2,v 1.4 2001-06-19 15:28:23 tradke 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 -uinline=2"}
: ${F90FLAGS="-conti199 -uinline=2"}
if test "$LD" = "CC" ; then
F77FLAGS="$F77FLAGS -64"
F90FLAGS="$F90FLAGS -64"
fi
: ${F77_OPTIMISE_FLAGS="-opt=ss -pvfunc=2 -noparallel -model=F1"}
: ${F90_OPTIMISE_FLAGS="-opt=ss -pvfunc=2 -noparallel -model=F1 -noscope"}
if test "$CC" = "cc" ; 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" ; 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"}
: ${L2_CACHELINE_BYTES="128"}
: ${L2_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
fi
|