@@ -220,10 +220,16 @@ def generate_build_matrix(
220
220
if not for_windows
221
221
else ["11.8.0" , "12.1.0" ],
222
222
},
223
+ "2.4.0" : {
224
+ "python-version" : ["3.8" , "3.9" , "3.10" , "3.11" , "3.12" ],
225
+ "cuda" : ["11.8" , "12.1" , "12.4" ] # default 12.1
226
+ if not for_windows
227
+ else ["11.8.0" , "12.1.0" , "12.4.0" ],
228
+ },
223
229
# https://github.com/Jimver/cuda-toolkit/blob/master/src/links/windows-links.ts
224
230
}
225
231
if test_only_latest_torch :
226
- latest = "2.3.1 "
232
+ latest = "2.4.0 "
227
233
matrix = {latest : matrix [latest ]}
228
234
229
235
if for_windows or for_macos :
@@ -283,15 +289,20 @@ def generate_build_matrix(
283
289
for p in python_versions :
284
290
if p in excluded_python_versions :
285
291
continue
286
- if for_macos and p in ["3.8" , "3.9" ]:
287
- # macOS arm64 in github actions does not support python 3.8 or 3.9
288
- continue
289
292
290
293
if for_windows :
291
294
p = "cp" + "" .join (p .split ("." ))
292
295
ans .append ({"torch" : torch , "python-version" : p })
293
296
elif for_macos or for_macos_m1 :
294
297
ans .append ({"torch" : torch , "python-version" : p })
298
+ elif version_ge (torch , "2.4.0" ):
299
+ ans .append (
300
+ {
301
+ "torch" : torch ,
302
+ "python-version" : p ,
303
+ "image" : "pytorch/manylinux-builder:cpu-2.4" ,
304
+ }
305
+ )
295
306
elif version_ge (torch , "2.2.0" ):
296
307
ans .append (
297
308
{
0 commit comments