File tree Expand file tree Collapse file tree 2 files changed +20
-1
lines changed
tests/py/dynamo/distributed Expand file tree Collapse file tree 2 files changed +20
-1
lines changed Original file line number Diff line number Diff line change @@ -873,6 +873,7 @@ def is_tegra_platform() -> bool:
873
873
def is_thor () -> bool :
874
874
if torch .cuda .get_device_capability () in [(11 , 0 )]:
875
875
return True
876
+ return False
876
877
877
878
878
879
def is_platform_supported_for_trtllm () -> bool :
@@ -885,6 +886,7 @@ def is_platform_supported_for_trtllm() -> bool:
885
886
Unsupported:
886
887
- Windows platforms
887
888
- Jetson/Orin/Xavier (aarch64 architecture + 'tegra' in platform release)
889
+ - CUDA 13 not supported
888
890
"""
889
891
system = platform .system ().lower ()
890
892
machine = platform .machine ().lower ()
@@ -902,6 +904,23 @@ def is_platform_supported_for_trtllm() -> bool:
902
904
)
903
905
return False
904
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
+
905
924
return True
906
925
907
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