refactor: Add IPC memory data

Refactor structure and add field to pass USM memory type.

To maintain backwards compatibility with current applications,
pass 0 as type for device allocations, and 1 for host
allocations.

Related-To: LOCI-3771

Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
This commit is contained in:
Jaime Arteaga
2023-01-19 09:14:03 +00:00
committed by Compute-Runtime-Automation
parent 371ee24554
commit 51d767daea
6 changed files with 195 additions and 27 deletions

View File

@@ -17,6 +17,11 @@ enum InternalMemoryType : uint32_t {
SHARED_UNIFIED_MEMORY = 0b1000
};
enum class InternalIpcMemoryType : uint32_t {
IPC_DEVICE_UNIFIED_MEMORY = 0,
IPC_HOST_UNIFIED_MEMORY = 1
};
enum TransferType : uint32_t {
HOST_NON_USM_TO_HOST_USM = 0,
HOST_NON_USM_TO_DEVICE_USM = 1,