[fix] zeCommandListAppendMemAdvise to clear preferred location correctly

The memadvise with preferred location for kmd-migrated shared allocation
is set to device associated with cmd list by default to migrate data
to lmem on non-atomic gpu page fault as well (for performance reasons).

Related-To: NEO-7252

Signed-off-by: Milczarek, Slawomir <slawomir.milczarek@intel.com>
This commit is contained in:
Milczarek, Slawomir
2023-04-21 00:36:45 +00:00
committed by Compute-Runtime-Automation
parent 09b111cc97
commit bf778be99e
14 changed files with 89 additions and 38 deletions

View File

@@ -61,6 +61,13 @@ enum class CachePolicy : uint32_t {
WriteBack = 3,
};
enum class PreferredLocation : int16_t {
Clear = -1,
System = 0,
Device = 1,
None = 2,
};
enum class PostSyncMode : uint32_t {
NoWrite = 0,
Timestamp = 1,