Create method to deduce transfer type

Related-To: NEO-7564
Signed-off-by: Fabian Zwolinski <fabian.zwolinski@intel.com>
This commit is contained in:
Fabian Zwolinski
2023-01-20 17:21:19 +00:00
committed by Compute-Runtime-Automation
parent eb002acaa1
commit d6bfcdb245
4 changed files with 139 additions and 1 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright (C) 2019-2022 Intel Corporation
* Copyright (C) 2019-2023 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
@@ -17,6 +17,20 @@ enum InternalMemoryType : uint32_t {
SHARED_UNIFIED_MEMORY = 0b1000
};
enum TransferType : uint32_t {
HOST_NON_USM_TO_HOST_USM = 0,
HOST_NON_USM_TO_DEVICE_USM = 1,
HOST_NON_USM_TO_HOST_NON_USM = 2,
HOST_USM_TO_HOST_USM = 3,
HOST_USM_TO_DEVICE_USM = 4,
HOST_USM_TO_HOST_NON_USM = 5,
DEVICE_USM_TO_HOST_USM = 6,
DEVICE_USM_TO_DEVICE_USM = 7,
DEVICE_USM_TO_HOST_NON_USM = 8
};
struct UnifiedMemoryControls {
uint32_t generateMask();
bool indirectDeviceAllocationsAllowed = false;