Fix sgl_kernel import failure on devices other than CUDA (#10610)
This commit is contained in:
1 parent
1344ebc833
commit
6fd4816d9f
2 files changed
+2
-2
No files matched your search
@@ -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():
|
||||
|
||||
Reference in new issue
Block a user