File tree Expand file tree Collapse file tree 2 files changed +19
-1
lines changed
tests/py/dynamo/distributed Expand file tree Collapse file tree 2 files changed +19
-1
lines changed Original file line number Diff line number Diff line change @@ -886,6 +886,7 @@ def is_platform_supported_for_trtllm() -> bool:
886
886
Unsupported:
887
887
- Windows platforms
888
888
- Jetson/Orin/Xavier (aarch64 architecture + 'tegra' in platform release)
889
+ - CUDA 13 not supported
889
890
"""
890
891
system = platform .system ().lower ()
891
892
machine = platform .machine ().lower ()
@@ -903,6 +904,23 @@ def is_platform_supported_for_trtllm() -> bool:
903
904
)
904
905
return False
905
906
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
+
906
924
return True
907
925
908
926
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ def forward(self, x):
44
44
class TestNcclOpsConverter (DispatchTestCase ):
45
45
@unittest .skipIf (
46
46
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." ,
48
48
)
49
49
@classmethod
50
50
def setUpClass (cls ):
You can’t perform that action at this time.
0 commit comments