Fix sgl_kernel import failure on devices other than CUDA (#10610)

This commit is contained in:
Zaili Wang authored and GitHub committed 2025-09-18 11:38:02 -07:00
1 parent 1344ebc833
commit 6fd4816d9f
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -23,7 +23,7 @@ def _find_cuda_home():
return cuda_home
if torch.version.hip is None:
if torch.version.cuda is not None:
cuda_home = Path(_find_cuda_home())
if (cuda_home / "lib").is_dir():