Skip to content

Development changes to support N:M sparsity #118

Development changes to support N:M sparsity

Development changes to support N:M sparsity #118

name: Testing Master
on:
push:
branches:
- main
- dev
pull_request:
branches:
- main
- dev
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Update Ubuntu
run: sudo apt update
- name: Install Dependencies
run: sudo apt install python3 python3-venv
- name: Create Venv
run: python3 -m venv venv && source venv/bin/activate && pip install -r requirements.txt && pip install pylint
- name: Install SCALE-Sim
run: source venv/bin/activate && python setup.py install
- name: Install tkinter
run: sudo apt-get install python3-tk
- name: Linting
run: source venv/bin/activate && python -m pylint --fail-under=7.5 scalesim/
# To test the default SCALE-Sim run
- name: Run default SCALE-Sim configuration
run: |
source venv/bin/activate && cd scalesim && python scale.py
deactivate
# To test the functionality of weight stationary dataflow
- name: Run general script file
run: |
python3 -m venv venv2 && source venv2/bin/activate && pip install -r requirements.txt
chmod +x ./test/general/scripts/function_test.sh
./test/general/scripts/function_test.sh
shell: bash
# To test sparsity functionality
- name: Run sparsity script file
run: |
python3 -m venv venv2 && source venv2/bin/activate && pip install -r requirements.txt
chmod +x ./test/sparsity/scripts/function_test.sh
./test/sparsity/scripts/function_test.sh
shell: bash