Skip to content

Commit

Permalink
Use cuda runtime base image instead of devel
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverholworthy committed Jul 3, 2023
1 parent 2ec75dc commit 7d9de2c
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions .github/workflows/gpu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,6 @@ jobs:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Install Ubuntu packages
run: |
apt-get update -y
apt-get install -y lsb-release
- name: Install and upgrade python packages
run: |
python -m pip install --upgrade pip tox
Expand All @@ -54,15 +50,17 @@ jobs:
gpu-cu11:
runs-on: linux-amd64-gpu-p100-latest-1
container:
image: nvidia/cuda:11.8.0-devel-ubuntu22.04
image: nvidia/cuda:11.8.0-runtime-ubuntu22.04
env:
NVIDIA_VISIBLE_DEVICES: ${{ env.NVIDIA_VISIBLE_DEVICES }}
steps:
- name: Install Ubuntu packages
run: |
apt-get update -y
# libcudnn8 installed for tensorflow GPU support
apt-get install -y git lsb-release 'libcudnn8=*cuda11.8'
apt-get install -y \
git \
'libcudnn8=*cuda11.8' `# tensorflow GPU support` \
cuda-nvcc-11-8 `# required for numba`
- uses: actions/checkout@v3
with:
fetch-depth: 0
Expand All @@ -83,7 +81,7 @@ jobs:
uses: NVIDIA-Merlin/.github/actions/branch-name@6f0539fba24f60da2aee63c5925bee7cee3206e3
- name: Run tests
run: |
if [[ "${{ github.ref }}" != 'refs/heads/main' ]]; then
if [ "${{ github.ref }}" != 'refs/heads/main' ]; then
extra_pytest_markers="and changed"
fi
merlin_branch="${{ steps.get-branch-name.outputs.branch }}"
Expand All @@ -94,15 +92,18 @@ jobs:
tests-examples:
runs-on: linux-amd64-gpu-p100-latest-1
container:
image: nvidia/cuda:11.8.0-devel-ubuntu22.04
image: nvidia/cuda:11.8.0-runtime-ubuntu22.04
env:
NVIDIA_VISIBLE_DEVICES: ${{ env.NVIDIA_VISIBLE_DEVICES }}
steps:
- name: Install Ubuntu packages
run: |
apt-get update -y
# libcudnn8 installed for tensorflow GPU support
apt-get install -y git lsb-release 'libcudnn8=*cuda11.8'
apt-get install -y \
git \
'libcudnn8=*cuda11.8' `# tensorflow GPU support` \
cuda-nvcc-11-8 `# required for numba`
- uses: actions/checkout@v3
with:
fetch-depth: 0
Expand Down

0 comments on commit 7d9de2c

Please sign in to comment.