SWDEV-508632 - Align address to 2 MBs for hidden heap allocation. (#29)

[ROCm/clr commit: b5c9cbc236]
This commit is contained in:
Patel, Jaydeepkumar
2025-04-02 04:03:29 -07:00
committed by GitHub
parent 29be7230eb
commit b217d3a4e6
10 changed files with 33 additions and 24 deletions
+2 -1
View File
@@ -102,7 +102,8 @@ static void handlePayload(MessageHandler& messages, uint32_t service, uint64_t*
}
} else {
amd::Context& ctx = dev.context();
amd::Buffer* buf = new(ctx) amd::Buffer(ctx, CL_MEM_READ_WRITE, payload[1]);
amd::Buffer* buf = new(ctx) amd::Buffer(ctx, CL_MEM_READ_WRITE, payload[1], NULL,
(payload[1] == 2 * Mi) ? 2 * Mi : 0);
uint64_t va = 0;
if (buf) {
if (buf->create()) {