Skip to content

Commit 20802cb

Browse files
authored
Fix libtorch file naming in matrix (#6951)
``cxx11-abi`` was removed from file name in all libtorch builds. This should fix validation of these builds here: https://github.com/pytorch/test-infra/actions/runs/16472470897/job/46565023340
1 parent f581dff commit 20802cb

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

tools/scripts/generate_binary_build_matrix.py

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -237,11 +237,7 @@ def get_libtorch_install_command(
237237
if libtorch_config == "debug"
238238
else libtorch_variant
239239
)
240-
build_name = (
241-
f"{prefix}-{devtoolset}-{_libtorch_variant}-latest.zip"
242-
if devtoolset == "cxx11-abi"
243-
else f"{prefix}-{_libtorch_variant}-latest.zip"
244-
)
240+
build_name = f"{prefix}-{_libtorch_variant}-latest.zip"
245241

246242
if os == MACOS_ARM64:
247243
arch = "arm64"
@@ -251,9 +247,7 @@ def get_libtorch_install_command(
251247

252248
elif os == LINUX and (channel in (RELEASE, TEST)):
253249
build_name = (
254-
f"{prefix}-{devtoolset}-{_libtorch_variant}-{CURRENT_VERSION}%2B{desired_cuda}.zip"
255-
if devtoolset == "cxx11-abi"
256-
else f"{prefix}-{_libtorch_variant}-{CURRENT_VERSION}%2B{desired_cuda}.zip"
250+
f"{prefix}-{_libtorch_variant}-{CURRENT_VERSION}%2B{desired_cuda}.zip"
257251
)
258252
elif os == WINDOWS and (channel in (RELEASE, TEST)):
259253
build_name = (

0 commit comments

Comments
 (0)