Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding test workflow to trigger self-hosted runner build #493

Closed
wants to merge 13 commits into from
64 changes: 64 additions & 0 deletions .github/workflows/test-gpu.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
name: Testing (GPU)
on:
pull_request:



concurrency:
group: tests_gpu-${{ github.ref }}
cancel-in-progress: true


jobs:
gpu_test:
runs-on:
- self-hosted
- ubuntu-22.04
- gpu

steps:
- name: Show PATH
run: |
set -x
echo $PATH
echo $LD_LIBRARY_PATH
set +x

- name: Check CUDA binary folder exists
run: |
set -x
ls -ltrh /usr/local
ls -ltrh /usr/local/cuda
ls -ltrh /usr/local/cuda/bin

- name: Update PATH to include CUDA
run: |
echo '/usr/local/cuda/bin' >> $GITHUB_PATH
echo "$HOME/.local/bin" >> $GITHUB_PATH

echo "LD_LIBRARY_PATH=/usr/local/cuda/lib64${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}" >> $GITHUB_ENV

- name: Show PATH (again)
run: |
set -x
echo $PATH
echo $LD_LIBRARY_PATH
set +x

- name: Check nvidia-smi
run: nvidia-smi

- name: Check default CUDA
run: |
set -x
which nvcc
nvcc --version
set +x

- name: Try loading CUDA 12.2
run: |
source /etc/profile.d/modules.sh
module use /opt/modules

module load cuda/12.2
nvcc --version
2 changes: 1 addition & 1 deletion pennylane_lightning/core/_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@
Version number (major.minor.patch[-label])
"""

__version__ = "0.33.0-dev7"
__version__ = "0.33.0-dev8"
Loading