Skip to content

Commit 44ed979

Browse files
committed
SWDEV-459254 - Make the memory alignment as 256 from 128.
Change-Id: I349486d315d948d750fdc28bd783e7010154ac3f
1 parent 5763d9e commit 44ed979

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rocclr/device/pal/palconstbuf.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ bool ManagedBuffer::create(Resource::MemoryType type) {
7272
// ================================================================================================
7373
address ManagedBuffer::reserve(uint32_t size, uint64_t* gpu_address) {
7474
// Align to the maximum data size available in OpenCL
75-
static constexpr uint32_t MemAlignment = sizeof(double[16]);
75+
static constexpr uint32_t MemAlignment = sizeof(double[32]);
7676

7777
// Align reserve size on the vector's boundary
7878
uint32_t count = amd::alignUp(size, MemAlignment);

0 commit comments

Comments
 (0)