From 0a0b40cbe467b15e50eff28fa1bbc9127aac92a9 Mon Sep 17 00:00:00 2001 From: Joseph Lee Date: Fri, 17 Jan 2025 22:29:37 +0000 Subject: [PATCH 1/4] parallelize gpu test --- .github/workflows/tests_gpu_python.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tests_gpu_python.yml b/.github/workflows/tests_gpu_python.yml index 4044e72e69..3f52bb7677 100644 --- a/.github/workflows/tests_gpu_python.yml +++ b/.github/workflows/tests_gpu_python.yml @@ -31,7 +31,7 @@ concurrency: jobs: builddeps: - if: ${{ github.event_name != 'pull_request' || (github.event.pull_request.draft == false && contains(github.event.pull_request.labels.*.name, 'ci:use-gpu-runner')) }} + if: ${{ github.event_name != 'pull_request' || contains(github.event.pull_request.labels.*.name, 'ci:use-gpu-runner') }} runs-on: - self-hosted - ubuntu-22.04 @@ -206,7 +206,8 @@ jobs: OMP_PROC_BIND: false run: | DEVICENAME=`echo ${{ matrix.pl_backend }} | sed "s/_/./g"` - PL_DEVICE=${DEVICENAME} python -m pytest tests/ $COVERAGE_FLAGS + PL_DEVICE=${DEVICENAME} python -m pytest -n 2 tests/ -k "not unitary_correct" $COVERAGE_FLAGS + PL_DEVICE=${DEVICENAME} python -m pytest tests/ -k "unitary_correct" $COVERAGE_FLAGS - name: Test wheels for Lightning-GPU if : matrix.pl_backend == 'lightning_gpu' From dc019320eec02174ecdd93466d03a4f90aa4eb7f Mon Sep 17 00:00:00 2001 From: ringo-but-quantum Date: Fri, 17 Jan 2025 22:30:32 +0000 Subject: [PATCH 2/4] Auto update version from '0.41.0-dev4' to '0.41.0-dev6' --- pennylane_lightning/core/_version.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pennylane_lightning/core/_version.py b/pennylane_lightning/core/_version.py index 3a210a19e5..76172c5270 100644 --- a/pennylane_lightning/core/_version.py +++ b/pennylane_lightning/core/_version.py @@ -16,4 +16,4 @@ Version number (major.minor.patch[-label]) """ -__version__ = "0.41.0-dev4" +__version__ = "0.41.0-dev6" From a4fa86c846c7471be2c7586aba917133508ea38b Mon Sep 17 00:00:00 2001 From: Joseph Lee Date: Fri, 17 Jan 2025 22:48:13 +0000 Subject: [PATCH 3/4] parallelize lkcuda --- .github/workflows/tests_gpu_python.yml | 2 +- .github/workflows/tests_lkcuda_python.yml | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tests_gpu_python.yml b/.github/workflows/tests_gpu_python.yml index 3f52bb7677..4785e0cb79 100644 --- a/.github/workflows/tests_gpu_python.yml +++ b/.github/workflows/tests_gpu_python.yml @@ -31,7 +31,7 @@ concurrency: jobs: builddeps: - if: ${{ github.event_name != 'pull_request' || contains(github.event.pull_request.labels.*.name, 'ci:use-gpu-runner') }} + if: ${{ github.event_name != 'pull_request' || (github.event.pull_request.draft == false && contains(github.event.pull_request.labels.*.name, 'ci:use-gpu-runner')) }} runs-on: - self-hosted - ubuntu-22.04 diff --git a/.github/workflows/tests_lkcuda_python.yml b/.github/workflows/tests_lkcuda_python.yml index c4b8497102..ffafe50039 100644 --- a/.github/workflows/tests_lkcuda_python.yml +++ b/.github/workflows/tests_lkcuda_python.yml @@ -270,7 +270,8 @@ jobs: run: | cd main/ DEVICENAME=`echo ${{ matrix.pl_backend }} | sed "s/_/./g"` - PL_DEVICE=${DEVICENAME} python -m pytest tests/ -k "not test_native_mcm" $COVERAGE_FLAGS + PL_DEVICE=${DEVICENAME} python -m pytest -n 2 tests/ -k "not unitary_correct and not test_native_mcm" $COVERAGE_FLAGS + PL_DEVICE=${DEVICENAME} python -m pytest tests/ -k "unitary_correct and not test_native_mcm" $COVERAGE_FLAGS pl-device-test --device ${DEVICENAME} --skip-ops --shots=20000 $COVERAGE_FLAGS --cov-append pl-device-test --device ${DEVICENAME} --shots=None --skip-ops $COVERAGE_FLAGS --cov-append mv coverage.xml coverage-${{ github.job }}-${{ matrix.pl_backend }}.xml From b7cf799f6b271142e1ede1d373edd8b1fb35e797 Mon Sep 17 00:00:00 2001 From: Joseph Lee Date: Sat, 18 Jan 2025 02:19:47 +0000 Subject: [PATCH 4/4] trigger CI