-
Notifications
You must be signed in to change notification settings - Fork 3
/
configure
executable file
·68 lines (46 loc) · 1.31 KB
/
configure
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
#!/bin/bash
cat > common.mk << 'endmsg'
#############################################################
# This file was automatically generated by configure #
# Please modify its contents according to your installation #
#############################################################
# Compiler to use
CXX := c++
# OpenCL compilation flags (should not be needed)
OPENCLFLAGS :=
# Library required to link with OpenCL
endmsg
os=`uname -s`
if [ "$os" = "Darwin" ]; then
echo OPENCLLIBS := -framework OpenCL >> common.mk
else
echo OPENCLLIBS := -lOpenCL >> common.mk
fi
cat >> common.mk << 'endmsg'
#Set home directory of clBLAS if you have it
CLBLAS_DIR :=
# Compilation flags
ifdef PRODUCTION
CPPFLAGS := -O3 -DNDEBUG -fno-rtti
else
CPPFLAGS := -g
ifdef DEBUG
CPPFLAGS += -DDEBUG
endif
endif
ifdef HPL_PROFILE
CPPFLAGS += -DHPL_PROFILE
endif
CPPFLAGS += -std=c++0x -Wno-deprecated-declarations
##################################################
# YOU SHOULD NOT MODIFY ANYTHING BELOW THIS LINE #
##################################################
endmsg
echo HPL_HOME := $PWD >> common.mk
cat >> common.mk << 'endmsg'
DEPDIR := .deps
PETEDIR := $(HPL_HOME)/lib/pete-2.1.0
CPPFLAGS += -I. -I$(HPL_HOME)/src $(OPENCLFLAGS)
PROJECTLIBNAME := libHPL.a
PROJECTLIB := $(HPL_HOME)/lib/$(PROJECTLIBNAME)
endmsg