SWDEV-322620 - Virtual Memory Management Part 1

Adding opaque data handle to memory. This is used to look back the HIP object associated with it.

Change-Id: I1bbb14a915bed79c6c3593a29a627778c7aaf13a
This commit is contained in:
Christophe Paquot
2022-03-31 13:45:53 -07:00
committed by Christophe Paquot
parent 7fb80a027a
commit 867346520f
+2 -1
View File
@@ -143,7 +143,8 @@ class Memory : public amd::RuntimeObject {
struct UserData
{
int deviceId = 0;
int deviceId = 0; //!< Device ID memory is allocated on
void* data = nullptr; //!< Opaque user data from CL or HIP or etc.
};
protected: