-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathMakefile
More file actions
65 lines (52 loc) · 1.74 KB
/
Makefile
File metadata and controls
65 lines (52 loc) · 1.74 KB
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
# 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 gpu 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
@echo "=== Building UnitTests ==="
@$(MAKE) -C UnitTests
mpi: default
@echo "=== Building AmpTools with MPI ==="
@$(MAKE) -C AmpTools MPI=1
@echo "=== Building Dalitz tutorial with MPI ==="
@$(MAKE) -C Tutorials/Dalitz MPI=1
@echo "=== Building UnitTests with MPI ==="
@$(MAKE) -C UnitTests 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
@echo "=== Building UnitTests with GPU acceleration ==="
@$(MAKE) -C UnitTests 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
@echo "=== Building UnitTests with MPI and GPU acceleration ==="
@$(MAKE) -C UnitTests MPI=1 GPU=1
gpumpi: mpigpu
clean:
@$(MAKE) -C AmpTools clean
@$(MAKE) -C AmpPlotter clean
@$(MAKE) -C Tutorials/Dalitz clean
@$(MAKE) -C UnitTests clean