Revert "Release host buffers after segment freeze."
This reverts commitcf3f441625. Change-Id: Idc7e568b2b54a226dbe4d189b25a78be3bd16eea [ROCm/ROCR-Runtime commit:b3caf6782b]
이 커밋은 다음에 포함됨:
1 부모
16efad0cdc
커밋
6622fe0163
1 파일이 변경됨
-4
@@ -358,10 +358,6 @@ bool RegionMemory::Freeze() {
|
||||
memcpy(ptr_, host_ptr_, size_);
|
||||
}
|
||||
|
||||
// Free host buffer
|
||||
HSA::hsa_memory_free(host_ptr_);
|
||||
host_ptr_ = nullptr;
|
||||
|
||||
// Invalidate agent caches which may hold lines of the new allocation.
|
||||
if (is_code_ && (region_->owner()->device_type() == core::Agent::kAmdGpuDevice))
|
||||
((AMD::GpuAgent*)region_->owner())->InvalidateCodeCaches();
|
||||
|
||||
새 이슈에서 참조
사용자 차단