-
Notifications
You must be signed in to change notification settings - Fork 36
32 lines (31 loc) · 965 Bytes
/
main.yml
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
name: Build test
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: awalsh128/cache-apt-pkgs-action@latest
with:
packages: make gcc g++ libprotobuf-dev protobuf-compiler
version: 1.0
- run: sudo apt install -y graphviz
- uses: lukka/get-cmake@latest
- run: protoc et_def.proto --proto_path et_def --cpp_out et_def
- uses: actions/setup-python@v2
with:
python-version: 3.7
- uses: s-weigand/setup-conda@v1
with:
activate-conda: true
python-version: 3.7
- run: conda install pytorch
- run: pip install fbgemm-gpu-cpu
- run: pip install .
- run: chakra_generator --num_npus 1
- run: |
chakra_visualizer --help
for f in *.et
do
chakra_visualizer --input_filename ${f} --output_filename "${f%.*}".dot
done