-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMake_vanilla
95 lines (71 loc) · 3.58 KB
/
Make_vanilla
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
# Makefile for Libraries for QCD programs
#
# Library routines involve no communication, so are compiled
# as for a scalar processor.
# The specialized Makefiles are for processors for which we
# have some assembly coded substitutes.
#
# This Makefile builds the purely C coded versions and should work
# for all architectures with a suitable choice of CFLAGS and
# CC below
# The FAST option uses "fast" variants of the code, where available, and is
# recommended. The fast variants are C-coded with explicit loop unrolling
# and inlining.
# The SHORT32 option is required on machines with 64-bit int's
MAKEFILE = Make_vanilla
# See Make_RS6K for IBM RS6000 assembly code
# See Make_t3e for the Cray T3E assembly code
# See Make_alpha for DEC alpha assembly code
# See Make_SSE_nasm for P3/P4 assembly code
#----------------------------------------------------------------------
# User choices - edit to suit
#----------------------------------------------------------------------
# 1. Compiler
CC = gcc # ( cc89 gcc xlc gcc pgcc cl g++ )
#CC = env GCC_EXEC_PREFIX=$(GCC_EXEC_PREFIX) powerpc-gnu-elf-gcc # QCDOC
#----------------------------------------------------------------------
# 2. Compiler optimization level
OPT = -O3 # ( -g -O, etc )
#----------------------------------------------------------------------
# 3. Other compiler optimization flags. Uncomment stanza to suit.
#-------------- Gnu C -------------------------------------
#OCFLAGS = -Wall
#OCFLAGS = -fexpensive-optimizations -funroll-loops -fpeephole -fstrength-reduce -fschedule-insns2 -fprefetch-loop-arrays # QCDOC
#OCFLAGS = -fexpensive-optimizations -fpeephole -fstrength-reduce -march=i586 # Simone's pick for PIII/gcc version 2.95.2.1 19991024 (release)
#------------------------ BlueGene -----------------------------------
# OCFLAGS = -qarch=440d -qtune=440
#-------------- Intel icc/ecc -----------------------------------
#OCFLAGS = -tpp2 -static
#-------------- Portland Group ----------------------------
#OCFLAGS = -tp p6 -Munroll=c:4,n:4
#-------------- SUN SPARC ---------------------------------
#OCFLAGS= -fast -dalign -libmil -fsimple=2 -fns #Ultra
#-------------- IBM RS6000 --------------------------------
#CARCH = -qarch=pwr3 -qtune=pwr3 # Architecture: ( ppc pwr2 )
#OCFLAGS= ${CARCH} -bmaxdata:0x40000000 -bmaxstack:0x8000000
#-------------- MIPS --------------------------------------
#OCFLAGS= -f
#-------------- SGI Origin single node -------------------
#OCFLAGS= -64 -mips4 -r10000 -OPT:IEEE_arithmetic=3:roundoff=3:alias=restrict -TENV:X=1
#-------------- DEC Alpha ---------------------------------
#OCFLAGS = -float -fptm n
#-------------- Convex Exemplar ----------------------------
#OCFLAGS = +Oinfo +Onofltacc +Oaggressive +Onoautopar #NPACI Exemplar
#-------------- NT cl compiler -----------------------------
#OCFLAGS = -Fo$*.o -Ox -Oa -G6
#----------------------------------------------------------------------
# 4. Code alternatives
CODETYPE = -DFAST # usually unchanged
#----------------------------------------------------------------------
# 5. Choose archiver to match compiler for the QCDOC
#AR = powerpc-gnu-elf-ar # QCDOC nonstandard for now
AR = ar
#----------------------------------------------------------------------
# End of user choices. PLEASE, ALSO, CHECK include/config.h.
#----------------------------------------------------------------------
# Complete set of compiler flags - do not change
CFLAGS = ${OPT} ${OCFLAGS} ${CODETYPE}
# Prefetch - compile with no optimization
prefetch.o: prefetch.c
${CC} ${OCFLAGS} -c prefetch.c
include Make_template