Skip to content

Commit

Permalink
Queues: convert to Python library (#2274)
Browse files Browse the repository at this point in the history
Closes #2186 and the test harness part of #2191.

More specifically, this PR does the following:
- set up separate directories for our package, data file generation, and
tests
- move each queue's python generator and associated main component to
different files: main components are in `test/`
- remove PCQs from `data_gen/gen_queue_data_expect.sh` (for now)
- tweak runt stanzas to work with new file structure
- tweak github actions to install `queues` for CI and run
`gen_queue_data_expect.sh`
- gitignore large `.data` and `.expect` files
- fill in README for our library
- update links in the docs to our new file locations and add install
instructions
  • Loading branch information
polybeandip committed Sep 3, 2024
1 parent a4da816 commit dfb40da
Show file tree
Hide file tree
Showing 108 changed files with 630 additions and 3,041,424 deletions.
9 changes: 8 additions & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -161,14 +161,21 @@ jobs:
git checkout -f $GITHUB_SHA
git clean -fd
- name: Install calyx-py & MrXL
- name: Install calyx-py, MrXL, and queues
working-directory: /home/calyx
run: |
cd calyx-py
FLIT_ROOT_INSTALL=1 flit install --symlink
cd -
cd frontends/mrxl
FLIT_ROOT_INSTALL=1 flit install --symlink
cd -
cd frontends/queues
FLIT_ROOT_INSTALL=1 flit install --symlink
- name: Generate queue .data and .expect files
working-directory: /home/calyx
run: ./frontends/queues/test_data_gen/gen_test_data.sh

- name: Build
uses: actions-rs/cargo@v1
Expand Down
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -61,5 +61,9 @@ tools/profiler/logs

temp/

# large queue .data and .expect files ignore
frontends/queues/tests/**/*.data
frontends/queues/tests/**/*.expect

# for running a venv
.venv
.venv
54 changes: 0 additions & 54 deletions calyx-py/calyx/gen_queue_data_expect.sh

This file was deleted.

Loading

0 comments on commit dfb40da

Please sign in to comment.