rocr: Fix HostQueue to obey the alignment requirement
Change-Id: I06542e9ff94e826ca0abba0328b301fec50a95ea
[ROCm/ROCR-Runtime commit: 7d64fe49fa]
Tá an tiomantas seo le fáil i:
1 tuismitheoir
922b61ddee
tiomantas
bda034bb82
1 comhad athraithe
+1
-1
@@ -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; }
|
||||
|
||||
Tagairt in Eagrán Nua
Cuir bac ar úsáideoir