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

Commit f820cbe

Browse files
committed
leftover
1 parent 41387df commit f820cbe

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

omniscidb/DataMgr/Allocators/GpuAllocator.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ GpuAllocator::GpuAllocator(BufferProvider* buffer_provider, const int device_id)
3232
GpuAllocator::~GpuAllocator() {
3333
CHECK(buffer_provider_);
3434
for (auto& buffer_ptr : owned_buffers_) {
35-
buffer_ptr->deleteWhenUnpinned();
36-
buffer_ptr->unPin();
37-
// buffer_provider_->free(buffer_ptr);
35+
// buffer_ptr->deleteWhenUnpinned();
36+
// buffer_ptr->unPin();
37+
buffer_provider_->free(buffer_ptr);
3838
}
3939
}
4040

omniscidb/DataMgr/Allocators/ThrustAllocator.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,9 @@ void ThrustAllocator::deallocate(int8_t* ptr, size_t num_bytes) {
5959
#endif // HAVE_CUDA
6060
PtrMapperType::iterator ab_it = raw_to_ab_ptr_.find(ptr);
6161
CHECK(ab_it != raw_to_ab_ptr_.end());
62-
ab_it->second->deleteWhenUnpinned();
63-
ab_it->second->unPin();
64-
// buffer_provider_->free(ab_it->second);
62+
// ab_it->second->deleteWhenUnpinned();
63+
// ab_it->second->unPin();
64+
buffer_provider_->free(ab_it->second);
6565
raw_to_ab_ptr_.erase(ab_it);
6666
}
6767

0 commit comments

Comments
 (0)