Skip to content

Commit 9b45f43

Browse files
committed
Changes for CUDA13
1 parent 892e8bb commit 9b45f43

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed

py/torch_tensorrt/dynamo/utils.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -886,6 +886,7 @@ def is_platform_supported_for_trtllm() -> bool:
886886
Unsupported:
887887
- Windows platforms
888888
- Jetson/Orin/Xavier (aarch64 architecture + 'tegra' in platform release)
889+
- CUDA 13 not supported
889890
"""
890891
system = platform.system().lower()
891892
machine = platform.machine().lower()
@@ -903,6 +904,23 @@ def is_platform_supported_for_trtllm() -> bool:
903904
)
904905
return False
905906

907+
try:
908+
cuda_version = torch.version.cuda # e.g., "12.4" or "13.0"
909+
if cuda_version is None:
910+
logger.warning("No CUDA runtime detected — TRT-LLM plugins unavailable.")
911+
return False
912+
913+
major, minor = map(int, cuda_version.split("."))
914+
if major != 12:
915+
logger.warning("CUDA 13 is not supported for TRT-LLM plugins.")
916+
return False
917+
918+
return True
919+
920+
except Exception as e:
921+
logger.warning(f"Failed to detect CUDA version: {e}")
922+
return False
923+
906924
return True
907925

908926

tests/py/dynamo/distributed/test_nccl_ops.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def forward(self, x):
4444
class TestNcclOpsConverter(DispatchTestCase):
4545
@unittest.skipIf(
4646
not is_platform_supported_for_trtllm(),
47-
"Skipped on Windows, Jetson: NCCL backend is not supported.",
47+
"Skipped on Windows, Jetson and CUDA13: NCCL backend is not supported.",
4848
)
4949
@classmethod
5050
def setUpClass(cls):

0 commit comments

Comments
 (0)