Skip to content

Commit 9255c4a

Browse files
committed
Changes for CUDA13
1 parent 8914503 commit 9255c4a

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

py/torch_tensorrt/dynamo/utils.py

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -873,6 +873,7 @@ def is_tegra_platform() -> bool:
873873
def is_thor() -> bool:
874874
if torch.cuda.get_device_capability() in [(11, 0)]:
875875
return True
876+
return False
876877

877878

878879
def is_platform_supported_for_trtllm() -> bool:
@@ -885,6 +886,7 @@ def is_platform_supported_for_trtllm() -> bool:
885886
Unsupported:
886887
- Windows platforms
887888
- Jetson/Orin/Xavier (aarch64 architecture + 'tegra' in platform release)
889+
- CUDA 13 not supported
888890
"""
889891
system = platform.system().lower()
890892
machine = platform.machine().lower()
@@ -902,6 +904,23 @@ def is_platform_supported_for_trtllm() -> bool:
902904
)
903905
return False
904906

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+
905924
return True
906925

907926

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)