@@ -28,8 +28,6 @@ urUSMHostAlloc(ur_context_handle_t hContext, const ur_usm_desc_t *pUSMDesc,
28
28
UR_ASSERT (!pUSMDesc ||
29
29
(alignment == 0 || ((alignment & (alignment - 1 )) == 0 )),
30
30
UR_RESULT_ERROR_INVALID_VALUE);
31
- UR_ASSERT (size < hContext->DeviceID ->getMaxAllocSize (),
32
- UR_RESULT_ERROR_INVALID_USM_SIZE);
33
31
34
32
if (!hPool) {
35
33
return USMHostAllocImpl (ppMem, hContext, nullptr , size, alignment);
@@ -54,8 +52,6 @@ urUSMDeviceAlloc(ur_context_handle_t hContext, ur_device_handle_t hDevice,
54
52
UR_ASSERT (!pUSMDesc ||
55
53
(alignment == 0 || ((alignment & (alignment - 1 )) == 0 )),
56
54
UR_RESULT_ERROR_INVALID_VALUE);
57
- UR_ASSERT (size <= hDevice->getMaxAllocSize (),
58
- UR_RESULT_ERROR_INVALID_USM_SIZE);
59
55
60
56
if (!hPool) {
61
57
return USMDeviceAllocImpl (ppMem, hContext, hDevice, nullptr , size,
@@ -81,8 +77,6 @@ urUSMSharedAlloc(ur_context_handle_t hContext, ur_device_handle_t hDevice,
81
77
UR_ASSERT (!pUSMDesc ||
82
78
(alignment == 0 || ((alignment & (alignment - 1 )) == 0 )),
83
79
UR_RESULT_ERROR_INVALID_VALUE);
84
- UR_ASSERT (size <= hDevice->getMaxAllocSize (),
85
- UR_RESULT_ERROR_INVALID_USM_SIZE);
86
80
87
81
if (!hPool) {
88
82
return USMSharedAllocImpl (ppMem, hContext, hDevice, nullptr , nullptr , size,
0 commit comments