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:
873873def is_thor () -> bool :
874874 if torch .cuda .get_device_capability () in [(11 , 0 )]:
875875 return True
876+ return False
876877
877878
878879def 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
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ def forward(self, x):
4444class 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 ):
You can’t perform that action at this time.
0 commit comments