From d994ee962277c186ed5503049293f538aaade4b9 Mon Sep 17 00:00:00 2001 From: AmintorDusko Date: Thu, 19 Sep 2024 16:05:06 -0400 Subject: [PATCH 1/6] set label condition for LKokkos Co-authored-by: Ali Asadi <10773383+maliasadi@users.noreply.github.com> --- .github/workflows/tests_lkcuda_cpp.yml | 2 +- .github/workflows/tests_lkcuda_python.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tests_lkcuda_cpp.yml b/.github/workflows/tests_lkcuda_cpp.yml index b8dadaa46c..a3040854fa 100644 --- a/.github/workflows/tests_lkcuda_cpp.yml +++ b/.github/workflows/tests_lkcuda_cpp.yml @@ -39,7 +39,7 @@ concurrency: jobs: builddeps: - if: github.event.pull_request.draft == false + if: 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 7041713481..565c118eed 100644 --- a/.github/workflows/tests_lkcuda_python.yml +++ b/.github/workflows/tests_lkcuda_python.yml @@ -43,7 +43,7 @@ concurrency: jobs: builddeps: - if: github.event.pull_request.draft == false + if: github.event.pull_request.draft == false || contains(github.event.pull_request.labels.*.name, 'ci:use-gpu-runner') runs-on: - self-hosted - ubuntu-22.04 From 7c3094bab8c7c9ca10ba0ba7b333d71ab635db21 Mon Sep 17 00:00:00 2001 From: AmintorDusko Date: Thu, 19 Sep 2024 16:06:50 -0400 Subject: [PATCH 2/6] update version --- 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 bb3de8f43b..83c48476df 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.39.0-dev27" +__version__ = "0.39.0-dev28" From b054d066cf4bb11f1506b769e8e86d503d1b793b Mon Sep 17 00:00:00 2001 From: AmintorDusko Date: Thu, 19 Sep 2024 16:10:12 -0400 Subject: [PATCH 3/6] update changelog Co-authored-by: Ali Asadi <10773383+maliasadi@users.noreply.github.com> --- .github/CHANGELOG.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/CHANGELOG.md b/.github/CHANGELOG.md index d9209800a8..9639181981 100644 --- a/.github/CHANGELOG.md +++ b/.github/CHANGELOG.md @@ -2,7 +2,7 @@ ### New features since last release -* Add Matrix Product Operator (MPO) for all gates support to `lightning.tensor`. Note current C++ implementation only works for MPO sites data provided by users. +* Add Matrix Product Operator (MPO) for all gates support to `lightning.tensor`. Note current C++ implementation only works for MPO sites data provided by users. [(#859)](https://github.com/PennyLaneAI/pennylane-lightning/pull/859) * Add shot measurement support to `lightning.tensor`. @@ -34,6 +34,9 @@ ### Improvements +* Add label to `lightning.kokkos` GPU CIs. + [(#916)](https://github.com/PennyLaneAI/pennylane-lightning/pull/916) + * Merge `lightning.gpu` and `lightning.tensor` GPU tests in single Python and C++ CIs controlled by the `ci:use-gpu-runner` label. [(#911)](https://github.com/PennyLaneAI/pennylane-lightning/pull/911) From 47b0af1cd946551becdb0ca90d9ebb5708a8096a Mon Sep 17 00:00:00 2001 From: AmintorDusko Date: Thu, 19 Sep 2024 16:12:48 -0400 Subject: [PATCH 4/6] trigger CIs From 6cf3db8c4ec40011c270ee0fd4b5e14143a8e919 Mon Sep 17 00:00:00 2001 From: Amintor Dusko <87949283+AmintorDusko@users.noreply.github.com> Date: Thu, 19 Sep 2024 16:13:09 -0400 Subject: [PATCH 5/6] Update .github/CHANGELOG.md Co-authored-by: Ali Asadi <10773383+maliasadi@users.noreply.github.com> --- .github/CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/CHANGELOG.md b/.github/CHANGELOG.md index 9639181981..818522dbb5 100644 --- a/.github/CHANGELOG.md +++ b/.github/CHANGELOG.md @@ -34,7 +34,7 @@ ### Improvements -* Add label to `lightning.kokkos` GPU CIs. +* Add the `ci:use-gpu-runner` GitHub label to `lightning.kokkos` GPU Testing CIs. [(#916)](https://github.com/PennyLaneAI/pennylane-lightning/pull/916) * Merge `lightning.gpu` and `lightning.tensor` GPU tests in single Python and C++ CIs controlled by the `ci:use-gpu-runner` label. From 9ffc42e5b78bd7df511663d864b7c988f18604f7 Mon Sep 17 00:00:00 2001 From: AmintorDusko Date: Thu, 19 Sep 2024 16:44:39 -0400 Subject: [PATCH 6/6] fix if logic --- .github/workflows/tests_gpu_cpp.yml | 2 +- .github/workflows/tests_gpu_python.yml | 2 +- .github/workflows/tests_lkcuda_cpp.yml | 2 +- .github/workflows/tests_lkcuda_python.yml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/tests_gpu_cpp.yml b/.github/workflows/tests_gpu_cpp.yml index b88c4392f1..28edf185c3 100644 --- a/.github/workflows/tests_gpu_cpp.yml +++ b/.github/workflows/tests_gpu_cpp.yml @@ -31,7 +31,7 @@ concurrency: jobs: builddeps: - if: ${{ github.event.pull_request.draft == false || 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_gpu_python.yml b/.github/workflows/tests_gpu_python.yml index 2fad7ee75e..37a9ca95d6 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.pull_request.draft == false || 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_cpp.yml b/.github/workflows/tests_lkcuda_cpp.yml index a3040854fa..a8bcdefcc9 100644 --- a/.github/workflows/tests_lkcuda_cpp.yml +++ b/.github/workflows/tests_lkcuda_cpp.yml @@ -39,7 +39,7 @@ concurrency: jobs: builddeps: - if: github.event.pull_request.draft == false || 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 565c118eed..20b50042d4 100644 --- a/.github/workflows/tests_lkcuda_python.yml +++ b/.github/workflows/tests_lkcuda_python.yml @@ -43,7 +43,7 @@ concurrency: jobs: builddeps: - if: github.event.pull_request.draft == false || 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