diff --git a/.github/CHANGELOG.md b/.github/CHANGELOG.md index e8cf40a18..c2f672a6d 100644 --- a/.github/CHANGELOG.md +++ b/.github/CHANGELOG.md @@ -15,6 +15,9 @@ ### Documentation ### Bug fixes + +* Update Github CI to use Ubuntu 24 and remove `libopenblas-base` package. + [(#1041)](https://github.com/PennyLaneAI/pennylane-lightning/pull/1041) ### Contributors diff --git a/.github/workflows/tests_linux_cpp.yml b/.github/workflows/tests_linux_cpp.yml index 88dbc7c93..d8097066b 100644 --- a/.github/workflows/tests_linux_cpp.yml +++ b/.github/workflows/tests_linux_cpp.yml @@ -30,7 +30,7 @@ env: TF_VERSION: 2.10.0 TORCH_VERSION: 1.11.0+cpu COVERAGE_FLAGS: "--cov=pennylane_lightning --cov-report=term-missing --no-flaky-report -p no:warnings --tb=native" - GCC_VERSION: 11 + GCC_VERSION: 13 OMP_NUM_THREADS: "2" OMP_PROC_BIND: "false" @@ -85,7 +85,7 @@ jobs: cd ./Build mkdir -p ./tests/results for file in *runner ; do ./$file --order lex --reporter junit --out ./tests/results/report_$file.xml; done; - lcov --directory . -b ../pennylane_lightning/core/src --capture --output-file coverage.info + lcov --directory . -b ../pennylane_lightning/core/src --capture --output-file coverage.info --ignore-errors mismatch # Catch2 causes mismatch errors that needs to be ignored lcov --remove coverage.info '/usr/*' --output-file coverage.info mv coverage.info coverage-${{ github.job }}-${{ matrix.pl_backend }}-${{ matrix.enable_kernel_avx_streaming }}-${{ matrix.enable_kernel_omp }}.info @@ -128,7 +128,7 @@ jobs: - name: Install dependencies run: | - sudo apt-get update && sudo apt-get -y -q install cmake gcc-$GCC_VERSION g++-$GCC_VERSION libopenblas-base libopenblas-dev ninja-build gcovr lcov + sudo apt-get update && sudo apt-get -y -q install cmake gcc-$GCC_VERSION g++-$GCC_VERSION libopenblas-dev ninja-build gcovr lcov python -m pip install scipy-openblas32 - name: Build and run unit tests @@ -146,7 +146,7 @@ jobs: cd ./Build mkdir -p ./tests/results for file in *runner ; do ./$file --order lex --reporter junit --out ./tests/results/report_$file.xml; done; - lcov --directory . -b ../pennylane_lightning/core/src --capture --output-file coverage.info + lcov --directory . -b ../pennylane_lightning/core/src --capture --output-file coverage.info --ignore-errors mismatch # Catch2 causes mismatch errors that needs to be ignored lcov --remove coverage.info '/usr/*' --output-file coverage.info mv coverage.info coverage-${{ github.job }}-${{ matrix.pl_backend }}.info @@ -174,14 +174,14 @@ jobs: uses: ./.github/workflows/build_and_cache_Kokkos_linux.yml with: runs_on: pl-4-core-large-runner - os: ubuntu-22.04 + os: ubuntu-latest cpptestswithKokkos: if: ${{ !contains(fromJSON('["schedule", "workflow_dispatch"]'), github.event_name) }} needs: [build_and_cache_Kokkos] strategy: matrix: - os: [ubuntu-22.04] + os: [ubuntu-latest] pl_backend: ["lightning_kokkos"] exec_model: ${{ fromJson(needs.build_and_cache_Kokkos.outputs.exec_model) }} kokkos_version: ${{ fromJson(needs.build_and_cache_Kokkos.outputs.kokkos_version) }} @@ -232,7 +232,7 @@ jobs: cd ./Build mkdir -p ./tests/results-${{ github.job }}-${{ matrix.pl_backend }} for file in *runner ; do ./$file --order lex --reporter junit --out ./tests/results-${{ github.job }}-${{ matrix.pl_backend }}/report_$file.xml; done; - lcov --directory . -b ../pennylane_lightning/core/src --capture --output-file coverage.info + lcov --directory . -b ../pennylane_lightning/core/src --capture --output-file coverage.info --ignore-errors mismatch # Catch2 causes mismatch errors that needs to be ignored lcov --remove coverage.info '/usr/*' --output-file coverage.info mv coverage.info coverage-${{ github.job }}-${{ matrix.pl_backend }}.info @@ -282,7 +282,7 @@ jobs: needs: [build_and_cache_Kokkos] strategy: matrix: - os: [ubuntu-22.04] + os: [ubuntu-latest] exec_model: ${{ fromJson(needs.build_and_cache_Kokkos.outputs.exec_model) }} kokkos_version: ${{ fromJson(needs.build_and_cache_Kokkos.outputs.kokkos_version) }} timeout-minutes: 60 diff --git a/.github/workflows/tests_lkcpu_python.yml b/.github/workflows/tests_lkcpu_python.yml index dc28f88ed..76a322299 100644 --- a/.github/workflows/tests_lkcpu_python.yml +++ b/.github/workflows/tests_lkcpu_python.yml @@ -48,14 +48,14 @@ jobs: name: "Build and cache Kokkos" uses: ./.github/workflows/build_and_cache_Kokkos_linux.yml with: - os: ubuntu-22.04 + os: ubuntu-latest kokkos_version: "4.5.00" build_lightning_kokkos_wheels: needs: [build_and_cache_Kokkos] strategy: matrix: - os: [ubuntu-22.04] + os: [ubuntu-latest] pl_backend: ["lightning_kokkos"] exec_model: ${{ fromJson(needs.build_and_cache_Kokkos.outputs.exec_model) }} kokkos_version: ${{ fromJson(needs.build_and_cache_Kokkos.outputs.kokkos_version) }} @@ -144,7 +144,7 @@ jobs: needs: [build_and_cache_Kokkos, build_lightning_kokkos_wheels] strategy: matrix: - os: [ubuntu-22.04] + os: [ubuntu-latest] pl_backend: ["lightning_kokkos"] group: [1, 2, 3, 4, 5, 6, 7] exec_model: ${{ fromJson(needs.build_and_cache_Kokkos.outputs.exec_model) }} diff --git a/.github/workflows/tests_lqcpu_python.yml b/.github/workflows/tests_lqcpu_python.yml index f64d5a17c..2d528b993 100644 --- a/.github/workflows/tests_lqcpu_python.yml +++ b/.github/workflows/tests_lqcpu_python.yml @@ -24,7 +24,7 @@ env: TF_VERSION: 2.10.0 TORCH_VERSION: 1.11.0+cpu COVERAGE_FLAGS: "--cov=pennylane_lightning --cov-report=term-missing --no-flaky-report -p no:warnings --tb=native" - GCC_VERSION: 11 + GCC_VERSION: 13 OMP_NUM_THREADS: "2" OMP_PROC_BIND: "false" @@ -77,7 +77,7 @@ jobs: - name: Install dependencies run: | - sudo apt-get update && sudo apt-get -y -q install cmake gcc-$GCC_VERSION g++-$GCC_VERSION libopenblas-base libopenblas-dev + sudo apt-get update && sudo apt-get -y -q install cmake gcc-$GCC_VERSION g++-$GCC_VERSION libopenblas-dev python -m pip install scipy-openblas32 wheel - name: Get required Python packages @@ -144,6 +144,10 @@ jobs: name: wheel_${{ matrix.pl_backend }}-${{ matrix.blas }}.whl path: ${{ github.workspace }} + - name: Install dependencies + run: | + sudo apt-get update && sudo apt-get -y -q install libopenblas-dev + - name: Get required Python packages run: | WHEEL_NAME=$(cat ${{ github.workspace }}/${{ matrix.pl_backend }}-${{ matrix.blas }}_name.txt) diff --git a/pennylane_lightning/core/_version.py b/pennylane_lightning/core/_version.py index 9df0af442..29ba97e6d 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-dev2" +__version__ = "0.41.0-dev3"