Skip to content

Commit

Permalink
Codspeed setup
Browse files Browse the repository at this point in the history
  • Loading branch information
haoshan98 committed Dec 18, 2023
1 parent d3307bc commit 08508b3
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/codspeed.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,20 @@ jobs:
with:
python-version: "3.10"

- name: cuda-toolkit
uses: Jimver/[email protected]
with:
cuda: "12.3.0"

- run: echo "Installed cuda version is: ${{steps.cuda-toolkit.outputs.cuda}}"
- run: echo "Cuda install location: ${{steps.cuda-toolkit.outputs.CUDA_PATH}}"
- run: nvcc -V

- name: Install project dependencies
run: pip install -e . && pip install pytest

- name: Run benchmarks
uses: CodSpeedHQ/action@v2
with:
token: ${{ secrets.codspeed_token }}
run: "pytest tests/kernels/test_layernorm.py --codspeed"
run: "pytest tests/kernels/test_layernorm.py --codspeed"

0 comments on commit 08508b3

Please sign in to comment.