Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions perf_tests/ze_peak/src/transfer_bw.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,20 @@ long double ZePeak::_transfer_bw_host_copy(L0Context &context,
&temp_cmd_list);
}

/*
Apply memory advise with preferred location set to system memory
to ensure best placement for kmd-migrated shared allocations (only).
*/
if (shared_is_dest) {
zeCommandListAppendMemAdvise(
temp_cmd_list, context.device, destination_buffer, buffer_size,
ZE_MEMORY_ADVICE_SET_SYSTEM_MEMORY_PREFERRED_LOCATION);
} else {
zeCommandListAppendMemAdvise(
temp_cmd_list, context.device, source_buffer, buffer_size,
ZE_MEMORY_ADVICE_SET_SYSTEM_MEMORY_PREFERRED_LOCATION);
}

for (uint32_t i = 0; i < warmup_iterations; i++) {
/*

Expand Down