forked from elixir-nx/nx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
32 lines (26 loc) · 804 Bytes
/
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
SUBDIRS= nx exla torchx
all: setup
@for _dir in ${SUBDIRS}; do \
(cd $${_dir} && mix compile); \
done
setup:
@for _dir in ${SUBDIRS}; do \
(cd $${_dir} && mix deps.get); \
done
test:
@for _dir in ${SUBDIRS}; do \
(cd $${_dir} && mix test); \
done
clean:
@for _dir in ${SUBDIRS}; do \
(cd $${_dir} && echo "Cleaning in $${_dir}" && mix clean); \
done
# Convenient shorthand for doing all of the appropriate steps in CUDA
# environment since it's easy to miss the extra flag setting in the docs.
cuda:
@env EXLA_FLAGS=--config=cuda ${MAKE} all test
# Convenient shorthand for doing all of the appropriate steps in ROCm
# environment since it's easy to miss the extra flag setting in the docs.
rocm:
@env EXLA_FLAGS="--config=rocm --action_env=HIP_PLATFORM=hcc" \
${MAKE} all test