Skip to content

Commit 5925d78

Browse files
committed
Remove unneeded check in USM allocator.
1 parent 9238f53 commit 5925d78

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

sycl/plugins/level_zero/usm_allocator.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -617,10 +617,6 @@ 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-
624620
size_t AlignedSize = (Size > 1) ? AlignUp(Size, Alignment) : Alignment;
625621

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

0 commit comments

Comments
 (0)