Skip to content

Commit 5a68c4a

Browse files
committed
Fix GPU docker builds?
1 parent 2a8783b commit 5a68c4a

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

.github/workflows/docker.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ name: Docker build
22

33
on:
44
push:
5-
branches:
6-
- main
5+
# branches:
6+
# - main
77
pull_request:
88
workflow_dispatch:
99

Dockerfile

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,11 @@ COPY pytorch.yml pytorch.yml
1111
RUN mamba env update -n base --file pytorch.yml \
1212
&& conda clean -afy \
1313
&& mamba uninstall -y pytorch torchvision \
14-
&& mamba install -y -n base -c pytorch -c nvidia -c conda-forge \
14+
&& mamba install -y -n base -c conda-forge \
1515
"cudatoolkit=${CUDA_VER%.*}.*" \
1616
"cuda-version=${CUDA_VER%.*}.*" \
17-
pytorch \
18-
torchvision \
19-
"pytorch-cuda=${CUDA_VER%.*}.*" \
17+
pytorch-gpu \
18+
torchvision
2019
&& conda clean -afy \
2120
&& rm pytorch.yml
2221

0 commit comments

Comments
 (0)