SWDEV-445221 - Fix the memory reported for hipMemPoolAttrReservedMemHigh

Change-Id: I894a836643612c73feb322f29a9236ada4d8cbda
This commit is contained in:
Ioannis Assiouras
2024-02-08 20:09:51 +00:00
parent 0479cdb3dd
commit 5e6ad190ff
2 changed files with 7 additions and 5 deletions
+3 -1
View File
@@ -187,7 +187,8 @@ class MemoryPool : public amd::ReferenceCountedObject {
free_heap_(device),
lock_pool_ops_("Pool operations", true),
device_(device),
shared_(nullptr) {
shared_(nullptr),
max_total_size_(0) {
device_->AddMemoryPool(this);
state_.value_ = 0;
state_.event_dependencies_ = 1;
@@ -286,6 +287,7 @@ private:
std::map<hip::Device*, hipMemAccessFlags> access_map_; //!< Map of access to the pool from devices
hip::Device* device_; //!< Hip device the heap will reside
SharedMemPool* shared_; //!< Pointer to shared memory for IPC
uint64_t max_total_size_; //!< Max of total reserved memory in the pool since last reset
};