SWDEV-313126 - Use data() method for the base array address

Reference for the first element can trigger an assert with
_GLIBCXX_ASSERTIONS build

Change-Id: I59c63c052831307edfe5dcc6384798a43e9596dd
This commit is contained in:
German Andryeyev
2021-11-25 14:37:34 -05:00
parent e4be77cbef
commit 6f2e7c3199
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -1614,7 +1614,7 @@ void VirtualGPU::submitSvmPrefetchAsync(amd::SvmPrefetchAsyncCommand& cmd) {
// Initiate a prefetch command
hsa_status_t status = hsa_amd_svm_prefetch_async(
const_cast<void*>(cmd.dev_ptr()), cmd.count(), agent,
wait_events.size(), &wait_events[0], active);
wait_events.size(), wait_events.data(), active);
// Wait for the prefetch. Should skip wait, but may require extra tracking for kernel execution
if ((status != HSA_STATUS_SUCCESS) || !Barriers().WaitCurrent()) {