Skip to content

Commit

Permalink
Update Gitlab CI for CUDA
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacques Xing committed Sep 17, 2024
1 parent 4b13de1 commit 3eb4d42
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,23 @@ stages:
timeout: 1h
script:
- echo "Setup environment"
- apt-get install -y software-properties-common
- apt-get update
- apt-get install -y wget
- apt-get install -y cmake
- apt-get install -y gcc
- apt-get install -y infiniband-diags ibverbs-utils
- apt-get install -y libibverbs-dev libfabric1 libfabric-dev libpsm2-dev
- apt-get install -y openmpi-bin openmpi-common libopenmpi-dev libgtk2.0-dev
- apt-get install -y librdmacm-dev libpsm2-dev
- wget https://developer.download.nvidia.com/compute/cuda/12.6.0/local_installers/cuda-repo-debian12-12-6-local_12.6.0-560.28.03-1_amd64.deb
- dpkg -i cuda-repo-debian12-12-6-local_12.6.0-560.28.03-1_amd64.deb
- cp /var/cuda-repo-debian12-12-6-local/cuda-*-keyring.gpg /usr/share/keyrings/
- add-apt-repository contrib
- apt-get update
- apt-get install -y cuda-toolkit-12-6
- PATH=/usr/local/cuda-12.6/bin:$PATH
- LD_LIBRARY_PATH=/usr/local/cuda-12.6/bin/lib64:$LD_LIBRARY_PATH
- echo "Display GCC version number"
- gcc --version
- echo "Configure Debug build"
Expand All @@ -45,7 +55,9 @@ stages:
- echo "Build tests"
- make -C build
#- echo "Run the tests"
#- make -C build test;
#- make -C build test
tags:
- gpu

.check-formatting-template: &check-formatting-template
image: python:3.9.19-bullseye
Expand Down

0 comments on commit 3eb4d42

Please sign in to comment.