rocr: Fix HostQueue to obey the alignment requirement

Change-Id: I06542e9ff94e826ca0abba0328b301fec50a95ea
Tá an tiomantas seo le fáil i:
Ben Vanik
2025-01-24 03:22:58 +00:00
tiomanta ag David Yat Sin
tuismitheoir 7ea25ebb85
tiomantas 7d64fe49fa
+1 -1
Féach ar an gComhad
@@ -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; }