diff --git a/rocclr/device/device.hpp b/rocclr/device/device.hpp index b6d9aefde2..bfcb18d81f 100644 --- a/rocclr/device/device.hpp +++ b/rocclr/device/device.hpp @@ -734,6 +734,16 @@ class Memory : public amd::HeapObject { return NULL; } + bool isPersistentMapped() const { return (flags_ & PersistentMap) ? true : false; } + void setPersistentMapFlag(bool persistentMapped) { + if (persistentMapped == true) { + flags_ |= PersistentMap; + } + else { + flags_ &= ~PersistentMap; + } + } + virtual bool pinSystemMemory(void* hostPtr, //!< System memory address size_t size //!< Size of allocated system memory ) { diff --git a/rocclr/device/pal/palmemory.hpp b/rocclr/device/pal/palmemory.hpp index 0c1cbd46a6..bc49c0f65a 100644 --- a/rocclr/device/pal/palmemory.hpp +++ b/rocclr/device/pal/palmemory.hpp @@ -97,16 +97,6 @@ class Memory : public device::Memory, public Resource { size_t* slicePitch = NULL //!< Slice for the mapped memory ); - virtual bool isPersistentMapped() const { return (flags_ & PersistentMap) ? true : false; } - virtual void setPersistentMapFlag(bool persistentMapped) { - if (persistentMapped == true) { - flags_ |= PersistentMap; - } - else { - flags_ &= ~PersistentMap; - } - } - //! Pins system memory associated with this memory object virtual bool pinSystemMemory(void* hostPtr, //!< System memory address size_t size //!< Size of allocated system memory