forked from LLNL/Umpire
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
62 lines (56 loc) · 1.66 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
56
57
58
59
60
61
62
gcc:
ifeq ($(DEBUG),1)
DOCKER_BUILDKIT=1 docker build --target gcc --no-cache --progress plain .
else
DOCKER_BUILDKIT=1 docker build --target gcc --no-cache .
endif
clang:
ifeq ($(DEBUG),1)
DOCKER_BUILDKIT=1 docker build --target clang --no-cache --progress plain .
else
DOCKER_BUILDKIT=1 docker build --target clang --no-cache .
endif
nvcc:
ifeq ($(DEBUG),1)
DOCKER_BUILDKIT=1 docker build --target nvcc --no-cache --progress plain .
else
DOCKER_BUILDKIT=1 docker build --target nvcc --no-cache .
endif
hcc:
ifeq ($(DEBUG),1)
DOCKER_BUILDKIT=1 docker build --target hcc --no-cache --progress plain .
else
DOCKER_BUILDKIT=1 docker build --target hcc --no-cache .
endif
hip:
ifeq ($(DEBUG),1)
DOCKER_BUILDKIT=1 docker build --target hip --no-cache --progress plain .
else
DOCKER_BUILDKIT=1 docker build --target hip --no-cache .
endif
sycl:
ifeq ($(DEBUG),1)
DOCKER_BUILDKIT=1 docker build --target sycl --no-cache --progress plain .
else
DOCKER_BUILDKIT=1 docker build --target sycl --no-cache .
endif
help:
@echo 'usage: make [variable] [target]'
@echo ''
@echo 'Build Umpire using Docker!'
@echo ''
@echo 'target:'
@echo ' gcc build with GCC 8'
@echo ' clang build with clang 6'
@echo ' nvcc build with CUDA 9'
@echo ' hcc build with hcc'
@echo ' hip build with HIP'
@echo ''
@echo 'variable:'
@echo ' DEBUG display all output if set to 1'
@echo ''
@echo 'For example'
@echo ''
@echo ' make DEBUG=1 nvcc'
@echo ''
@echo 'builds with the nvcc Docker image and displays all output.'