-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
40 lines (31 loc) · 1.12 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
help:
@echo "Usage:"
@echo " make init # install Zelus, ProbZelus, and Zlax/ProbZlax"
@echo " make test # run an example (more examples are available in the examples directory)"
@echo " make test_bench # run a scaled down version of the benchmarks"
init: install_zelus install_probzelus install_zlax install_bench
install_zelus:
opam pin -y -k path zelus
install_probzelus:
opam pin -y -k path probzelus/zelus-libs
opam pin -y -k path probzelus/probzelus
install_zlax:
opam pin -y -k path zlax
pip install ./zlax/zlax
pip install ./zlax/probzlax
install_zlax_cuda:
opam pin -y -k path zlax
pip install "jaxlib==0.1.71" -f https://storage.googleapis.com/jax-releases/jax_releases.html
pip install ./zlax/zlax
pip install ./zlax/probzlax
install_bench:
opam install -y csv mtime
test:
$(MAKE) -C examples coin
test_bench:
$(MAKE) -C zlax-benchmarks zlax_build
$(MAKE) -C zlax-benchmarks NUMRUNS=3 MIN=100 MAX=500 zlax_bench
$(MAKE) -C zlax-benchmarks zlax_analyze
$(MAKE) -C zlax-benchmarks zlax_plot
.PHONY: help init install_zelus install_probzelus install_zlax install_bench \
test test_bench