From d77932dd362f2fff64dcc298f203d0b07c46c252 Mon Sep 17 00:00:00 2001 From: Omar Ahmed Date: Thu, 31 Aug 2023 11:01:04 +0100 Subject: [PATCH] [SYCL][CUDA] Reintroduce removing of size checks from USM allocations --- sycl/plugins/unified_runtime/ur/adapters/cuda/usm.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/sycl/plugins/unified_runtime/ur/adapters/cuda/usm.cpp b/sycl/plugins/unified_runtime/ur/adapters/cuda/usm.cpp index f1b52c429c8d3..2cb6eeb487898 100644 --- a/sycl/plugins/unified_runtime/ur/adapters/cuda/usm.cpp +++ b/sycl/plugins/unified_runtime/ur/adapters/cuda/usm.cpp @@ -28,8 +28,6 @@ urUSMHostAlloc(ur_context_handle_t hContext, const ur_usm_desc_t *pUSMDesc, UR_ASSERT(!pUSMDesc || (alignment == 0 || ((alignment & (alignment - 1)) == 0)), UR_RESULT_ERROR_INVALID_VALUE); - UR_ASSERT(size < hContext->DeviceID->getMaxAllocSize(), - UR_RESULT_ERROR_INVALID_USM_SIZE); if (!hPool) { return USMHostAllocImpl(ppMem, hContext, nullptr, size, alignment); @@ -54,8 +52,6 @@ urUSMDeviceAlloc(ur_context_handle_t hContext, ur_device_handle_t hDevice, UR_ASSERT(!pUSMDesc || (alignment == 0 || ((alignment & (alignment - 1)) == 0)), UR_RESULT_ERROR_INVALID_VALUE); - UR_ASSERT(size <= hDevice->getMaxAllocSize(), - UR_RESULT_ERROR_INVALID_USM_SIZE); if (!hPool) { return USMDeviceAllocImpl(ppMem, hContext, hDevice, nullptr, size, @@ -81,8 +77,6 @@ urUSMSharedAlloc(ur_context_handle_t hContext, ur_device_handle_t hDevice, UR_ASSERT(!pUSMDesc || (alignment == 0 || ((alignment & (alignment - 1)) == 0)), UR_RESULT_ERROR_INVALID_VALUE); - UR_ASSERT(size <= hDevice->getMaxAllocSize(), - UR_RESULT_ERROR_INVALID_USM_SIZE); if (!hPool) { return USMSharedAllocImpl(ppMem, hContext, hDevice, nullptr, nullptr, size,