-
Notifications
You must be signed in to change notification settings - Fork 7
/
Makefile
79 lines (64 loc) · 1.82 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
#
# Copyright (c) 2020-2021, NVIDIA CORPORATION. All rights reserved.
#
# See LICENSE.txt for license information
#
all: libraries examples tools tests validation_libs doc
.PHONY: libraries alltoallv alltoall examples tools check tests check_gnuplot
doc:
cd tools; make doc
alltoallv:
cd src && make alltoallv
alltoall:
cd src && make alltoall
libraries:
cd src && make
examples: libraries
cd examples && make
GNUPLOTCMD := $(shell command -v gnuplot 2>/dev/null)
ifndef GNUPLOTCMD
check_gnuplot:
@echo "gnuplot is not installed; please install"
@exit 1
else
check_gnuplot:
@echo "gnuplot available: ${GNUPLOTCMD}"
endif
GOCMD := $(shell command -v go 2>/dev/null)
ifndef GOCMD
tools:
@echo "Go not installed; skipping tools' compilation"
else
tools:
# We overwite CC because we discovered issues when CC=icc and in our context,
# the tools can always be compiled with gcc.
cd tools && make CC=gcc;
endif
check: libraries
cd src && make check
cd tools && make check
tests:
cd tests && make
clean:
cd examples && make clean
cd src && make clean
cd tools && make clean
cd tests && make clean
cd validation/late_arrival && make clean
validation_libs:
# Build the lib for late arrival validation
cd validation/late_arrival; make
validate: clean check_gnuplot all check
# webui validates the profiler's capabilities, postmortem analysis as well as the webui
cd tools/cmd/validate; ./validate -webui
install-go:
ifndef GOCMD
@echo "Installing Go 1.13 for Linux into your home directory..."
`cd ${HOME}; wget https://golang.org/dl/go1.13.15.linux-amd64.tar.gz && tar xzf go1.13.15.linux-amd64.tar.gz`
@echo 'Please add the following to your .bashrc:''
@echo 'export GOPATH=$$HOME/go'
@echo 'export PATH=$$GOPATH/bin:$$PATH'
@echo 'export LD_LIBRARY_PATH=$$GOPATH/lib:$$LD_LIBRARY_PATH'
else
@echo "Go already installed"
endif