Skip to content

Commit

Permalink
Merge pull request #2582 from przemektmalon/przemek/intel-host-usm-su…
Browse files Browse the repository at this point in the history
…pport

Enable Host USM backed images on Level Zero
  • Loading branch information
martygrant authored Jan 20, 2025
2 parents ed09541 + 7b0e3b1 commit 8b7a995
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions source/adapters/level_zero/image.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -517,6 +517,7 @@ ur_result_t bindlessImagesCreateImpl(ur_context_handle_t hContext,
ZE2UR_CALL(zeContextMakeImageResident,
(hContext->ZeContext, hDevice->ZeDevice, ZeImage));
} else if (MemAllocProperties.type == ZE_MEMORY_TYPE_DEVICE ||
MemAllocProperties.type == ZE_MEMORY_TYPE_HOST ||
MemAllocProperties.type == ZE_MEMORY_TYPE_SHARED) {
ZeStruct<ze_image_pitched_exp_desc_t> PitchedDesc;
PitchedDesc.ptr = reinterpret_cast<void *>(hImageMem);
Expand Down

0 comments on commit 8b7a995

Please sign in to comment.