SWDEV-380035 - Check for agent and ptr match for hsa LOCKED ptr

Change-Id: I2503aa05512aebc3535963e188ca8d1dbfab08f0
This commit is contained in:
Anusha GodavarthySurya
2023-02-09 23:46:06 +00:00
committed by Anusha Godavarthy Surya
parent 695f169ed0
commit fa35239b4b
2 changed files with 22 additions and 16 deletions
+1 -1
View File
@@ -544,7 +544,7 @@ class Device : public NullDevice {
const bool isFineGrainSupported() const;
//! Returns True if memory pointer is known to ROCr (excludes HMM allocations)
bool IsValidAllocation(const void* dev_ptr, size_t size) const;
bool IsValidAllocation(const void* dev_ptr, size_t size, hsa_amd_pointer_info_t* ptr_info);
//! Allocates hidden heap for device memory allocations
void HiddenHeapAlloc(const VirtualGPU& gpu);