forked from mashephe/AmpTools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
56 lines (43 loc) · 1.4 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# try to catch common previous uses that will bungle things up...
ifdef MPI
$(error Use the mpi target 'make mpi' rather than setting MPI=1.)
endif
ifdef GPU
$(error Use the mpi target 'make gpu' rather than setting GPU=1.)
endif
AMPTOOLS_HOME := $(shell pwd)
AMPTOOLS := $(AMPTOOLS_HOME)/AmpTools
AMPPLOTTER := $(AMPTOOLS_HOME)/AmpPlotter
export
.PHONY: default all mpi gpu mpigpu gpumpi clean
default:
@echo "=== Building AmpTools ==="
@$(MAKE) -C AmpTools
@echo "=== Building AmpPlotter ==="
@$(MAKE) -C AmpPlotter
@echo "=== Building Dalitz tutorial ==="
@$(MAKE) -C Tutorials/Dalitz
mpi: default
@echo "=== Building AmpTools with MPI ==="
@$(MAKE) -C AmpTools MPI=1
@echo "=== Building Dalitz tutorial with MPI ==="
@$(MAKE) -C Tutorials/Dalitz MPI=1
gpu:
@echo "=== Building AmpTools with GPU acceleration ==="
@$(MAKE) -C AmpTools GPU=1
@echo "=== Building AmpPlotter ==="
@$(MAKE) -C AmpPlotter
@echo "=== Building Dalitz tutorial with GPU acceleration ==="
@$(MAKE) -C Tutorials/Dalitz GPU=1
mpigpu: gpu
@echo "=== Building AmpTools with MPI and GPU acceleration ==="
@$(MAKE) -C AmpTools GPU=1 MPI=1
@echo "=== Building AmpPlotter ==="
@$(MAKE) -C AmpPlotter
@echo "=== Building Dalitz tutorial with MPI and GPU acceleration ==="
@$(MAKE) -C Tutorials/Dalitz MPI=1 GPU=1
gpumpi: mpigpu
clean:
@$(MAKE) -C AmpTools clean
@$(MAKE) -C AmpPlotter clean
@$(MAKE) -C Tutorials/Dalitz clean