rocr: Fix HostQueue to obey the alignment requirement

Change-Id: I06542e9ff94e826ca0abba0328b301fec50a95ea


[ROCm/ROCR-Runtime commit: 7d64fe49fa]
This commit is contained in:
Ben Vanik
2025-01-24 03:22:58 +00:00
committed by David Yat Sin
parent 922b61ddee
commit bda034bb82
@@ -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; }