[Ascend] add npu synchronize (#13154)
Co-authored-by: may_feimei <meifei5@huawei.com>
This commit is contained in:
@@ -132,7 +132,7 @@ class SchedulerUpdateWeightsMixin:
|
||||
if GPU_MEMORY_TYPE_CUDA_GRAPH in tags:
|
||||
self.memory_saver_adapter.pause(GPU_MEMORY_TYPE_CUDA_GRAPH)
|
||||
|
||||
torch.cuda.synchronize()
|
||||
torch.get_device_module().synchronize()
|
||||
|
||||
return ReleaseMemoryOccupationReqOutput()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user