[MUSA] Use MUSA-optimized operators in piecewise CUDA graph (#23633)
Signed-off-by: popsiclexu <zhenxuexu@gmail.com>
This commit is contained in:
@@ -56,7 +56,7 @@ def cache_once(fn):
|
||||
|
||||
@cache_once
|
||||
def is_arch_support_pdl() -> bool:
|
||||
if bool(torch.version.hip):
|
||||
if getattr(torch.version, "hip", None) or getattr(torch.version, "musa", None):
|
||||
return False
|
||||
try:
|
||||
device = torch.cuda.current_device()
|
||||
|
||||
Reference in New Issue
Block a user