-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* update all rules update workflows update worklfow use custom mlir build * undo mlir test pass fixes * remove pyright
- Loading branch information
1 parent
41d3d9b
commit 8dfa45d
Showing
14 changed files
with
61 additions
and
143 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,15 +8,15 @@ on: | |
|
||
jobs: | ||
build-and-run-kernels: | ||
runs-on: ubuntu-latest | ||
container: | ||
image: ghcr.io/kuleuven-micas/snax:v0.2.7 | ||
runs-on: ubuntu-24.04 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Install snax-mlir | ||
run: python3 -m pip install '-e.[dev]' | ||
- uses: prefix-dev/[email protected] | ||
with: | ||
cache: true | ||
cache-write: ${{ github.event_name == 'push' && github.ref_name == 'main' }} | ||
- name: Build and run kernels | ||
run: make allrun | ||
run: pixi run make allrun | ||
working-directory: kernels/${{ matrix.kernel }} | ||
strategy: | ||
matrix: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,9 +9,7 @@ on: | |
|
||
jobs: | ||
build-and-run-networks: | ||
runs-on: ubuntu-latest | ||
container: | ||
image: ghcr.io/kuleuven-micas/snax:v0.2.7 | ||
runs-on: ubuntu-24.04 | ||
strategy: | ||
matrix: | ||
model: | ||
|
@@ -25,15 +23,16 @@ jobs: | |
dir: kernels/mlperf_tiny_kws | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Install snax-mlir | ||
run: | | ||
python3 -m pip install '-e.[dev,nn]' | ||
- uses: prefix-dev/[email protected] | ||
with: | ||
cache: true | ||
cache-write: ${{ github.event_name == 'push' && github.ref_name == 'main' }} | ||
- name: snax-opt network compilation | ||
run: | | ||
make ${{ matrix.model.name }}.o | ||
pixi run make ${{ matrix.model.name }}.o | ||
working-directory: ${{ matrix.model.dir }} | ||
- name: vanilla network compilation | ||
run: | | ||
make ${{ matrix.model.name }}.no-snax-opt.o | ||
pixi run make ${{ matrix.model.name }}.no-snax-opt.o | ||
working-directory: ${{ matrix.model.dir }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ on: | |
|
||
jobs: | ||
code-formatting: | ||
runs-on: ubuntu-22.04 | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
|
@@ -17,4 +17,4 @@ jobs: | |
|
||
- name: Run code formatting checks with pre-commit | ||
uses: pre-commit/[email protected] | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,18 +12,16 @@ permissions: | |
jobs: | ||
python-tests: | ||
|
||
runs-on: ubuntu-latest | ||
container: | ||
image: ghcr.io/kuleuven-micas/snax:v0.2.7 | ||
runs-on: ubuntu-24.04 | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Install snax-mlir | ||
shell: bash | ||
run: | | ||
python3 -m pip install '-e.[dev]' | ||
- uses: prefix-dev/[email protected] | ||
with: | ||
cache: true | ||
cache-write: ${{ github.event_name == 'push' && github.ref_name == 'main' }} | ||
- name: Test with lit | ||
shell: bash | ||
run: | | ||
lit tests/filecheck -v | ||
pixi run lit tests/filecheck -v | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,18 +12,16 @@ permissions: | |
jobs: | ||
python-tests: | ||
|
||
runs-on: ubuntu-latest | ||
container: | ||
image: ghcr.io/kuleuven-micas/snax:v0.2.7 | ||
runs-on: ubuntu-24.04 | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Install snax-mlir | ||
shell: bash | ||
run: | | ||
python3 -m pip install '-e.[dev]' | ||
- uses: prefix-dev/[email protected] | ||
with: | ||
cache: true | ||
cache-write: ${{ github.event_name == 'push' && github.ref_name == 'main' }} | ||
- name: Test with pytest | ||
shell: bash | ||
run: | | ||
python3 -m pytest . | ||
pixi run python -m pytest . | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,14 +10,13 @@ on: | |
|
||
jobs: | ||
run-benchmarks: | ||
runs-on: ubuntu-latest | ||
container: | ||
image: ghcr.io/kuleuven-micas/snax:v0.2.7 | ||
runs-on: ubuntu-24.04 | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
- name: Install snax-mlir | ||
run: python3 -m pip install '-e.[dev,viz]' | ||
- uses: actions/checkout@v4 | ||
- uses: actions/prefix-dev/[email protected] | ||
with: | ||
cache: true | ||
cache-write: ${{ github.event_name == 'push' && github.ref_name == 'main' }} | ||
- name: Run benchmarks | ||
run: python3 genbenchmark.py | ||
working-directory: benchmarks/${{ matrix.kernel }} | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
# Specific settings for snax-alu RTL | ||
SNITCH_SW_PATH = /opt/snax-alu | ||
VLTSIM = /opt/snax-alu-rtl/bin/snitch_cluster.vlt | ||
SNITCH_SW_PATH = ${CONDA_PREFIX}/snax-utils/snax-alu | ||
VLTSIM = ${CONDA_PREFIX}/snax-utils/snax-alu-rtl/bin/snitch_cluster.vlt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# Specific settings for snax-mac RTL | ||
SNITCH_SW_PATH = /opt/snax-gemm | ||
VLTSIM = /opt/snax-gemm-rtl/bin/snitch_cluster.vlt | ||
SNITCH_SW_PATH = ${CONDA_PREFIX}/snax-utils/snax-gemm | ||
VLTSIM = ${CONDA_PREFIX}/snax-utils/snax-gemm-rtl/bin/snitch_cluster.vlt | ||
CFLAGS += -I$(SNITCH_SW_PATH)/target/snitch_cluster/sw/snax/gemm/include | ||
LDFLAGS += $(SNITCH_SW_PATH)/target/snitch_cluster/sw/snax/gemm/build/snax-gemm-lib.o |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
# Specific settings for snax-kul-cluster-mixed-narrow-wide RTL | ||
SNITCH_SW_PATH = /opt/snax-kul-cluster-mixed-narrow-wide/ | ||
VLTSIM = /opt/snax-kul-cluster-mixed-narrow-wide-rtl/bin/snitch_cluster.vlt | ||
SNITCH_SW_PATH = ${CONDA_PREFIX}/snax-utils/snax-kul-cluster-mixed-narrow-wide/ | ||
VLTSIM = ${CONDA_PREFIX}/snax-utils/snax-kul-cluster-mixed-narrow-wide-rtl/bin/snitch_cluster.vlt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# Specific settings for snax-mac RTL | ||
SNITCH_SW_PATH = /opt/snax-mac | ||
VLTSIM = /opt/snax-mac-rtl/bin/snitch_cluster.vlt | ||
SNITCH_SW_PATH = ${CONDA_PREFIX}/snax-utils/snax-mac | ||
VLTSIM = ${CONDA_PREFIX}/snax-utils/snax-mac-rtl/bin/snitch_cluster.vlt | ||
CFLAGS += -I$(SNITCH_SW_PATH)/target/snitch_cluster/sw/snax/mac/include | ||
LDFLAGS += $(SNITCH_SW_PATH)/target/snitch_cluster/sw/snax/mac/build/mac.o |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# Specific settings for snax-streamer-gemm RTL | ||
SNITCH_SW_PATH = /opt/snax-streamer-gemm | ||
VLTSIM = /opt/snax-streamer-gemm-rtl/bin/snitch_cluster.vlt | ||
SNITCH_SW_PATH = ${CONDA_PREFIX}/snax-utils/snax-streamer-gemm | ||
VLTSIM = ${CONDA_PREFIX}/snax-utils/snax-streamer-gemm-rtl/bin/snitch_cluster.vlt | ||
CFLAGS += -I$(SNITCH_SW_PATH)/target/snitch_cluster/sw/snax/streamer-gemm/include | ||
LDFLAGS += $(SNITCH_SW_PATH)/target/snitch_cluster/sw/snax/streamer-gemm/build/snax-streamer-gemm-lib.o |