-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy pathMakefile
executable file
·32 lines (28 loc) · 1.01 KB
/
Makefile
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
# Makefile: This file is part of the gpumembench micro-benchmark suite.
#
# Contact: Elias Konstantinidis <[email protected]>
.PHONY: all clean rebuild
all:
$(MAKE) -C cachebench-cuda
$(MAKE) -C cachebench-ocl
$(MAKE) -C shmembench-cuda
$(MAKE) -C shmembench-ocl
$(MAKE) -C constbench-cuda
$(MAKE) -C constbench-ocl
mkdir -p bin
cp cachebench-cuda/cachebench cachebench-cuda/cachebench-l2-only cachebench-cuda/cachebench-tex-loads shmembench-cuda/shmembench constbench-cuda/constbench bin/
cp cachebench-ocl/cachebench-ocl shmembench-ocl/shmembench-ocl constbench-ocl/constbench-ocl bin/
clean:
$(MAKE) -C cachebench-cuda clean
$(MAKE) -C cachebench-ocl clean
$(MAKE) -C shmembench-cuda clean
$(MAKE) -C shmembench-ocl clean
$(MAKE) -C constbench-cuda clean
$(MAKE) -C constbench-ocl clean
rebuild:
$(MAKE) -C cachebench-cuda rebuild
$(MAKE) -C cachebench-ocl rebuild
$(MAKE) -C shmembench-cuda rebuild
$(MAKE) -C shmembench-ocl rebuild
$(MAKE) -C constbench-cuda rebuild
$(MAKE) -C constbench-ocl rebuild