Skip to content

Commit 3311d71

Browse files
filter out unsupported cuda versions (#3990)
1 parent 8d25c28 commit 3311d71

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

.github/scripts/filter-matrix.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
jetpack_cuda_versions: List[str] = ["cu126"]
1616
# rtx 1.2 currently only supports cu129 and cu130
1717
rtx_cuda_versions: List[str] = ["cu129", "cu130"]
18+
# trt 10.14.1 currently only supports cu129 and cu130
19+
trt_cuda_versions: List[str] = ["cu129", "cu130"]
1820

1921
jetpack_container_image: str = "nvcr.io/nvidia/l4t-jetpack:r36.4.0"
2022
sbsa_container_image: str = "quay.io/pypa/manylinux_2_39_aarch64"
@@ -55,9 +57,11 @@ def filter_matrix_item(
5557
return False
5658
else:
5759
if use_rtx:
58-
if item["desired_cuda"] in rtx_cuda_versions:
59-
return True
60-
return False
60+
if item["desired_cuda"] not in rtx_cuda_versions:
61+
return False
62+
else:
63+
if item["desired_cuda"] not in trt_cuda_versions:
64+
return False
6165
if item["gpu_arch_type"] == "cuda-aarch64":
6266
# pytorch image:pytorch/manylinuxaarch64-builder:cuda12.8 comes with glibc2.28
6367
# however, TensorRT requires glibc2.31 on aarch64 platform

tests/py/dynamo/models/test_models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,7 @@ def test_resnet18_half(ir):
426426

427427
@pytest.mark.unit
428428
@unittest.skipIf(
429-
torch_trt.ENABLED_FEATURES.tensorrt_rtx,
429+
torchtrt.ENABLED_FEATURES.tensorrt_rtx,
430430
"tensorrt_rtx does not support bfloat16",
431431
)
432432
def test_cosmos_true_div(ir):

0 commit comments

Comments
 (0)