SWDEV-413997 - Initial VMM changes for ROCm path.

Change-Id: I4405fd7b53182eb4c4622835c811c0dc08461537
This commit is contained in:
kjayapra-amd
2023-07-21 18:46:33 -04:00
committed by Karthik Jayaprakash
parent 8fe1d9dda1
commit 3ef829939a
13 changed files with 366 additions and 84 deletions
+2
View File
@@ -43,6 +43,7 @@
#define CL_MEM_VA_RANGE_AMD (1u << 28)
#define ROCCLR_MEM_HSA_UNCACHED (1u << 27)
#define ROCCLR_MEM_INTERPROCESS (1u << 26)
#define ROCCLR_MEM_PHYMEM (1u << 25)
namespace device {
class Memory;
@@ -148,6 +149,7 @@ class Memory : public amd::RuntimeObject {
{
int deviceId = 0; //!< Device ID memory is allocated on
void* data = nullptr; //!< Opaque user data from CL or HIP or etc.
uint64_t hsa_handle = 0; //!<Opaque hsa handle saved for Virtual memories
unsigned int flags = 0; //!< HIP memory flags
//! hipMallocPitch allocates buffer using width & height and returns pitch & device pointer.
//! Since device pointer is void*, It looses the values of width & height used for allocation.
+1
View File
@@ -142,6 +142,7 @@ class RuntimeObject : public ReferenceCountedObject, public ICDDispatchedObject
ObjectTypeQueue = 8,
ObjectTypeSampler = 9,
ObjectTypeThreadTrace = 10,
ObjectTypeVMMAlloc = 11
};
virtual ObjectType objectType() const = 0;