Skip to content

Commit 037bc1d

Browse files
committed
Merge branch 'ij2397' of https://github.com/rdeodhar/llvm into ij2397
2 parents cabdf60 + 8a461ac commit 037bc1d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

sycl/plugins/level_zero/usm_allocator.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -617,6 +617,10 @@ void *USMAllocContext::USMAllocImpl::allocate(size_t Size, size_t Alignment) {
617617
if (Alignment <= 1)
618618
return allocate(Size);
619619

620+
// L0 does not support alignments > 64KB, so we don't either.
621+
if (Alignment > 65536)
622+
Alignment = 65536;
623+
620624
size_t AlignedSize = (Size > 1) ? AlignUp(Size, Alignment) : Alignment;
621625

622626
// Check if requested allocation size is within pooling limit.

0 commit comments

Comments
 (0)