-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #199 from qiboteam/cupy_matrices
Cupy matrices
- Loading branch information
Showing
10 changed files
with
654 additions
and
342 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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# CI workflow that runs on selfhosted GPU | ||
name: Tests with gpu | ||
|
||
on: | ||
pull_request: | ||
types: [labeled] | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.head_ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
build: | ||
if: contains(join(github.event.pull_request.labels.*.name), 'run-on') | ||
uses: qiboteam/workflows/.github/workflows/selfhosted.yml@v1 | ||
with: | ||
used-labels: ${{ toJSON(github.event.pull_request.labels.*.name) }} | ||
python-version: "3.10" | ||
artifact-url: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} | ||
poetry-extras: "--with cuda12,test" | ||
|
||
secrets: | ||
repo_token: ${{ secrets.GITHUB_TOKEN }} |
Large diffs are not rendered by default.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/bin/bash | ||
|
||
# Script for running the selfhosted tests on QPUs directly from GitHub | ||
# Tests need to be copied to /tmp/ because coverage does not work with NFS | ||
|
||
cp -r src/qibojit/tests /tmp/ | ||
cp pyproject.toml /tmp/ | ||
cd /tmp/tests | ||
source /nfs/users/github/actions-runner/_work/qibojit/qibojit/testenv/bin/activate | ||
pytest | ||
pytest_status=$? | ||
if [[ $pytest_status -ne 0 ]] | ||
then | ||
exit $pytest_status | ||
fi | ||
cd - | ||
mv /tmp/tests/coverage.xml . | ||
mv /tmp/tests/htmlcov . | ||
rm -r /tmp/tests |
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
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