rocr: Fix HostQueue to obey the alignment requirement

Change-Id: I06542e9ff94e826ca0abba0328b301fec50a95ea
Dieser Commit ist enthalten in:
Ben Vanik verfasst und David Yat Sin committed 2025-01-24 12:08:11 -05:00
1 Ursprung 7ea25ebb85
Commit 7d64fe49fa
1 Datei geändert
+1 -1
+1 -1
Datei anzeigen
@@ -165,7 +165,7 @@ class HostQueue : public Queue {
}
void* operator new(size_t size) {
return _aligned_malloc(size, HSA_QUEUE_ALIGN_BYTES);
return _aligned_malloc(AlignUp(size, HSA_QUEUE_ALIGN_BYTES), HSA_QUEUE_ALIGN_BYTES);
}
void* operator new(size_t size, void* ptr) { return ptr; }