Ensure GPU work is finished when release memory occupation call is finished (#12592)
This commit is contained in:
@@ -132,6 +132,8 @@ class SchedulerUpdateWeightsMixin:
|
||||
if GPU_MEMORY_TYPE_CUDA_GRAPH in tags:
|
||||
self.memory_saver_adapter.pause(GPU_MEMORY_TYPE_CUDA_GRAPH)
|
||||
|
||||
torch.cuda.synchronize()
|
||||
|
||||
return ReleaseMemoryOccupationReqOutput()
|
||||
|
||||
def resume_memory_occupation(
|
||||
|
||||
Reference in New Issue
Block a user