Skip to content

Commit f87cb7e

Browse files
committed
[L0 v2] remove unnecessary TODO comment
The check is already done in validation layer
1 parent cdf6ed6 commit f87cb7e

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

source/adapters/level_zero/v2/memory.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -419,8 +419,6 @@ ur_result_t urMemBufferCreate(ur_context_handle_t hContext,
419419
auto accessMode = getDeviceAccessMode(flags);
420420

421421
if (useHostBuffer(hContext)) {
422-
// TODO: assert that if hostPtr is set, either UR_MEM_FLAG_USE_HOST_POINTER
423-
// or UR_MEM_FLAG_ALLOC_COPY_HOST_POINTER is set?
424422
auto hostPtrAction =
425423
flags & UR_MEM_FLAG_USE_HOST_POINTER
426424
? ur_integrated_mem_handle_t::host_ptr_action_t::import

0 commit comments

Comments
 (0)