From 867346520f1357d62c39edc23b78e005e2d08c08 Mon Sep 17 00:00:00 2001 From: Christophe Paquot Date: Thu, 31 Mar 2022 13:45:53 -0700 Subject: [PATCH] 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 --- rocclr/platform/memory.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rocclr/platform/memory.hpp b/rocclr/platform/memory.hpp index 98e67a4de5..05897958d8 100644 --- a/rocclr/platform/memory.hpp +++ b/rocclr/platform/memory.hpp @@ -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: