Skip to content

Commit

Permalink
use nvidia image
Browse files Browse the repository at this point in the history
Signed-off-by: Jinzhe Zeng <[email protected]>
  • Loading branch information
njzjz authored Oct 3, 2023
1 parent b748719 commit e11450d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/test_cuda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ jobs:
runs-on: nvidia
# https://github.com/deepmodeling/deepmd-kit/pull/2884#issuecomment-1744216845
container:
image: ubuntu:22.04
image: nvidia/cuda:11.8.0-cudnn8-devel-ubuntu22.04
options: --gpus all
if: github.repository_owner == 'deepmodeling' && github.event.label.name == 'Test CUDA' || github.event_name == 'workflow_dispatch'
steps:
- name: Make sudo work
run: apt-get update && apt-get install -y sudo wget
run: apt-get update && apt-get install -y sudo
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
Expand All @@ -32,6 +32,7 @@ jobs:
&& sudo dpkg -i cuda-keyring_1.0-1_all.deb \
&& sudo apt-get update \
&& sudo apt-get -y install cuda-11-8 libcudnn8=8.9.5.*-1+cuda11.8
if: false # skip as we use nvidia image
- name: Set PyPI mirror for Aliyun cloud machine
run: python -m pip config --user set global.index-url http://mirrors.cloud.aliyuncs.com/pypi/simple/
- run: python -m pip install -U "pip>=21.3.1,!=23.0.0"
Expand Down

0 comments on commit e11450d

Please sign in to comment.