-
Notifications
You must be signed in to change notification settings - Fork 51
/
Makefile
36 lines (32 loc) · 1.21 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
ifeq ($(DEBUG),1)
DebugArgs=--progress plain
else
DebugArgs=
endif
targets = asan clang10 clang11 clang12 clang13 gcc11 gcc7 gcc8 gcc9 hip hip.debug nvcc10 sycl umap_build
$(targets):
DOCKER_BUILDKIT=1 docker build --target $@ --no-cache $(DebugArgs) .
style:
scripts/docker/apply-style.sh
help:
@echo 'usage: make [variable] [target]'
@echo ''
@echo 'Build Umpire using Docker!'
@echo ''
@echo 'target:'
@echo ' asan build with clang sanitizer'
@echo ' gccN build with GCC N'
@echo ' clangN build with clang N'
@echo ' nvccN build with CUDA N'
@echo ' hip build with HIP'
@echo ' hip.debug build image for building HIP (attach with docker run -it <image> /bin/bash)'
@echo ' umap_build build umpire with umap (build-only test is currently only option)'
@echo ''
@echo 'variable:'
@echo ' DEBUG display all output if set to 1'
@echo ''
@echo 'For example'
@echo ''
@echo ' make DEBUG=1 nvcc11'
@echo ''
@echo 'builds with the nvcc Docker image for nvcc 11.1.1 and displays all output.'