Skip to content

Commit

Permalink
Specify backend.
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentmr committed Oct 16, 2023
1 parent 2969555 commit e4e24b0
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/tests_linux_x86_mpich.yml
Original file line number Diff line number Diff line change
Expand Up @@ -126,17 +126,16 @@ jobs:
run: python -m pip install git+https://github.com/PennyLaneAI/pennylane.git@master

- name: Build and run unit tests with MPICH backend
env:
CUQUANTUM_SDK: $(python -c "import site; print( f'{site.getsitepackages()[0]}/cuquantum/lib')")
PL_BACKEND: lightning_gpu
run: |
source /etc/profile.d/modules.sh
module use /opt/modules/
module load mpich
module unload mpich
export CUQUANTUM_SDK=$(python -c "import site; print( f'{site.getsitepackages()[0]}/cuquantum/lib')")
export PATH=$PATH:/usr/local/cuda/bin:/opt/mpi/mpich/include:/opt/mpi/mpich/bin
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda/lib64:/opt/mpi/mpich/lib:$CUQUANTUM_SDK
cmake . -BBuild \
-DPL_BACKEND=lightning_gpu \
-DCMAKE_PREFIX_PATH=/opt/mpi/mpich/ \
-DENABLE_MPI=ON \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
Expand Down

0 comments on commit e4e24b0

Please sign in to comment.