rocr: use driver interface for scratch memory deallocation
Replace direct hsaKmtFreeMemory call with driver's FreeMemory interface
in GpuAgent::ReleaseResources(). This change improves code abstraction
by handling memory deallocation through the unified driver interface.
Signed-off-by: Honglei Huang <Honglei1.Huang@amd.com>
[ROCm/ROCR-Runtime commit: 8216787d4c]
이 커밋은 다음에 포함됨:
1 부모
1ad79f04d0
커밋
e81be86a31
1 파일이 변경됨
+1
-1
@@ -929,7 +929,7 @@ void GpuAgent::ReleaseResources() {
|
||||
scratch_cache_.free_reserve();
|
||||
|
||||
if (scratch_pool_.base() != NULL) {
|
||||
HSAKMT_CALL(hsaKmtFreeMemory(scratch_pool_.base(), scratch_pool_.size()));
|
||||
driver().FreeMemory(scratch_pool_.base(), scratch_pool_.size());
|
||||
}
|
||||
|
||||
for (int i = 0; i < QueueCount; i++)
|
||||
|
||||
새 이슈에서 참조
사용자 차단