Skip to content

Commit

Permalink
Updated requirements.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
Tejas Ramesh committed Mar 6, 2024
1 parent e10046e commit 23e7788
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 11 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ jobs:
- uses: actions/checkout@v3
with:
path: 'triton_viz'

- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: "3.10"

- name: Create virtual environment
run: |
python -m venv triton_env
Expand Down Expand Up @@ -57,12 +57,12 @@ jobs:
pip install .
cd triton_viz
pip install -r triton_viz/requirements.txt
- name: Lint with pre-commit
run: |
cd triton_viz
pre-commit run --all-files
- name: Test with pytest
run: |
source triton_env/bin/activate
Expand Down
3 changes: 2 additions & 1 deletion Examples/conftest.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import pytest
from triton_viz.interpreter import record_builder

@pytest.fixture(autouse=True, scope='function')

@pytest.fixture(autouse=True, scope="function")
def clear_cache():
yield
record_builder.reset()
5 changes: 1 addition & 4 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
pyarrow
gradio
numpy
pre-commit
pyarrow
pytest
--pre torch torchvision torchaudio --index-url https://download.pytorch.org/whl/nightly/cu121
3 changes: 1 addition & 2 deletions triton_viz/interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import tempfile



def launch():
cache = {}
program_records, tt = triton_viz.collect_grid()
Expand All @@ -19,7 +18,7 @@ def launch():
s1 = gr.Slider(0, m[0], value=0, step=1, label="Program Id 0")
s2 = gr.Slider(0, m[1], value=0, step=1, label="Program Id 1")
s3 = gr.Slider(0, m[2], value=0, step=1, label="Program Id 2")

def update(inp):
a = inp[s1]
b = inp[s2]
Expand Down

0 comments on commit 23e7788

Please sign in to comment.