Skip to content

Commit

Permalink
Fix cmake options.
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentmr committed Oct 13, 2023
1 parent d0a9a79 commit 5cf7870
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/tests_linux_x86_mpich.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Tests::Linux::x86_64_MPICH
on:
workflow_call:
inputs:
lightning-gpu-version:
lightning-version:
type: string
required: true
description: The version of lightning to use. Valid values are either 'stable' (most recent git-tag) or 'latest' (most recent commit from master)
Expand All @@ -23,12 +23,12 @@ env:
CI_CUDA_ARCH: 86

concurrency:
group: gpu-test-mpich-${{ github.ref }}-${{ inputs.lightning-gpu-version }}-${{ inputs.pennylane-version }}
group: gpu-test-mpich-${{ github.ref }}-${{ inputs.lightning-version }}-${{ inputs.pennylane-version }}
cancel-in-progress: true

jobs:
cpp_mpich_tests:
# if: contains(github.event.pull_request.labels.*.name, 'ci:use-multi-gpu-runner') || (inputs.lightning-gpu-version != '' && inputs.pennylane-version != '')
# if: contains(github.event.pull_request.labels.*.name, 'ci:use-multi-gpu-runner') || (inputs.lightning-version != '' && inputs.pennylane-version != '')

runs-on:
- self-hosted
Expand All @@ -47,7 +47,7 @@ jobs:
fetch-tags: true

- name: Switch to stable build of Lightning-GPU
if: inputs.lightning-gpu-version == 'stable'
if: inputs.lightning-version == 'stable'
run: |
git fetch tags --force
git checkout $(git tag | sort -V | tail -1)
Expand Down Expand Up @@ -138,7 +138,7 @@ jobs:
-DCMAKE_PREFIX_PATH=/opt/mpi/mpich/ \
-DENABLE_MPI=ON \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DPLLGPU_BUILD_TESTS=ON \
-DBUILD_TESTS=ON \
-DCMAKE_CXX_COMPILER="$(which g++-${{ env.GCC_VERSION }})" \
-DCMAKE_CUDA_COMPILER="/usr/local/cuda/bin/nvcc" \
-DCMAKE_CUDA_ARCHITECTURES="86" \
Expand Down Expand Up @@ -171,8 +171,8 @@ jobs:
-DCMAKE_PREFIX_PATH=/opt/mpi/mpich/ \
-DENABLE_MPI=ON \
-DCMAKE_BUILD_TYPE=Debug \
-DPLLGPU_BUILD_TESTS=ON \
-DPLLGPU_ENABLE_COVERAGE=ON \
-DBUILD_TESTS=ON \
-DENABLE_COVERAGE=ON \
-DCMAKE_CXX_COMPILER="$(which g++-${{ env.GCC_VERSION }})" \
-DCMAKE_CUDA_COMPILER="/usr/local/cuda/bin/nvcc" \
-DCMAKE_CUDA_ARCHITECTURES="86" \
Expand Down Expand Up @@ -204,7 +204,7 @@ jobs:
python_mpich_tests:
if: contains(github.event.pull_request.labels.*.name, 'ci:use-multi-gpu-runner') || (inputs.lightning-gpu-version != '' && inputs.pennylane-version != '')
if: contains(github.event.pull_request.labels.*.name, 'ci:use-multi-gpu-runner') || (inputs.lightning-version != '' && inputs.pennylane-version != '')

runs-on:
- self-hosted
Expand All @@ -223,7 +223,7 @@ jobs:
fetch-tags: true

- name: Switch to stable build of Lightning-GPU
if: inputs.lightning-gpu-version == 'stable'
if: inputs.lightning-version == 'stable'
run: |
git fetch tags --force
git checkout $(git tag | sort -V | tail -1)
Expand Down

0 comments on commit 5cf7870

Please sign in to comment.