Revert "Release host buffers after segment freeze."
This reverts commit 03a52655a8.
Change-Id: Idc7e568b2b54a226dbe4d189b25a78be3bd16eea
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user