Skip to content
This repository has been archived by the owner on May 9, 2024. It is now read-only.

Commit

Permalink
leftover
Browse files Browse the repository at this point in the history
  • Loading branch information
Devjiu committed Oct 10, 2023
1 parent 41387df commit f820cbe
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions omniscidb/DataMgr/Allocators/GpuAllocator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ GpuAllocator::GpuAllocator(BufferProvider* buffer_provider, const int device_id)
GpuAllocator::~GpuAllocator() {
CHECK(buffer_provider_);
for (auto& buffer_ptr : owned_buffers_) {
buffer_ptr->deleteWhenUnpinned();
buffer_ptr->unPin();
// buffer_provider_->free(buffer_ptr);
// buffer_ptr->deleteWhenUnpinned();
// buffer_ptr->unPin();
buffer_provider_->free(buffer_ptr);
}
}

Expand Down
6 changes: 3 additions & 3 deletions omniscidb/DataMgr/Allocators/ThrustAllocator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@ void ThrustAllocator::deallocate(int8_t* ptr, size_t num_bytes) {
#endif // HAVE_CUDA
PtrMapperType::iterator ab_it = raw_to_ab_ptr_.find(ptr);
CHECK(ab_it != raw_to_ab_ptr_.end());
ab_it->second->deleteWhenUnpinned();
ab_it->second->unPin();
// buffer_provider_->free(ab_it->second);
// ab_it->second->deleteWhenUnpinned();
// ab_it->second->unPin();
buffer_provider_->free(ab_it->second);
raw_to_ab_ptr_.erase(ab_it);
}

Expand Down

0 comments on commit f820cbe

Please sign in to comment.