Skip to content

Commit b2e575f

Browse files
authored
Fix: Use CUDA 12.4 on Linux (#501)
1 parent c2288d2 commit b2e575f

File tree

3 files changed

+1645
-1556
lines changed

3 files changed

+1645
-1556
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Base image with CUDA and cuDNN support
2-
FROM nvidia/cuda:12.2.2-cudnn8-devel-ubuntu22.04
2+
FROM nvidia/cuda:12.4.1-cudnn-devel-ubuntu22.04
33

44
ARG DEBIAN_FRONTEND=noninteractive
55

pyproject.toml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,23 @@ vbd = [
6262
default-groups = "all"
6363
cache-dir = "./.uv_cache"
6464

65+
# Use the CUDA index for torch on Linux
66+
[[tool.uv.index]]
67+
name = "pytorch-cuda"
68+
url = "https://download.pytorch.org/whl/cu124"
69+
explicit = true
70+
71+
[[tool.uv.index]]
72+
name = "pytorch-cpu"
73+
url = "https://download.pytorch.org/whl/cpu"
74+
explicit = true
75+
76+
[tool.uv.sources]
77+
torch = [
78+
{ index = "pytorch-cuda", marker = "platform_system == 'Linux'" },
79+
{ index = "pytorch-cpu", marker = "platform_system != 'Linux'" }
80+
]
81+
6582
[tool.madrona.packages.madrona_gpudrive]
6683
ext-only = true
6784
ext-out-dir = "build"

0 commit comments

Comments
 (0)