@@ -132,6 +132,7 @@ python = "~=3.13.0"
132
132
numpy = " =1.22.0"
133
133
134
134
# Backends that can run on CPU-only hosts
135
+ # Note: JAX and PyTorch will install CPU variants.
135
136
[tool .pixi .feature .backends .dependencies ]
136
137
pytorch = " *"
137
138
dask = " *"
@@ -153,25 +154,34 @@ jax = "*"
153
154
[tool .pixi .feature .backends .target .win-64 .dependencies ]
154
155
# jax = "*" # unavailable
155
156
156
- # Backends that require a GPU host and a CUDA driver
157
+ # Backends that require a GPU host and a CUDA driver.
158
+ # Note that JAX and PyTorch automatically prefer CUDA variants
159
+ # thanks to the `system-requirements` below, *if available*.
160
+ # We request them explicitly below to ensure that we don't
161
+ # quietly revert to CPU-only in the future, e.g. when CUDA 13
162
+ # is released and CUDA 12 builds are dropped upstream.
157
163
[tool .pixi .feature .cuda-backends ]
158
164
system-requirements = { cuda = " 12" }
159
165
160
166
[tool .pixi .feature .cuda-backends .target .linux-64 .dependencies ]
161
167
cupy = " *"
162
168
jaxlib = { version = " *" , build = " cuda12*" }
169
+ pytorch = { version = " *" , build = " cuda12*" }
163
170
164
171
[tool .pixi .feature .cuda-backends .target .osx-64 .dependencies ]
165
172
# cupy = "*" # unavailable
166
173
# jaxlib = { version = "*", build = "cuda12*" } # unavailable
174
+ # pytorch = { version = "*", build = "cuda12*" } # unavailable
167
175
168
176
[tool .pixi .feature .cuda-backends .target .osx-arm64 .dependencies ]
169
177
# cupy = "*" # unavailable
170
178
# jaxlib = { version = "*", build = "cuda12*" } # unavailable
179
+ # pytorch = { version = "*", build = "cuda12*" } # unavailable
171
180
172
181
[tool .pixi .feature .cuda-backends .target .win-64 .dependencies ]
173
182
cupy = " *"
174
183
# jaxlib = { version = "*", build = "cuda12*" } # unavailable
184
+ pytorch = { version = " *" , build = " cuda12*" }
175
185
176
186
[tool .pixi .environments ]
177
187
default = { features = [" py313" ], solve-group = " py313" }
0 commit comments