Skip to content
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
db178ef
[UR] option to build UR with level_zero_v2 adapter
mateuszpn Feb 20, 2025
e1bd97f
Merge branch 'intel:sycl' into l0v2
mateuszpn Mar 3, 2025
c5090bb
bindless images - create, copy
mateuszpn Mar 3, 2025
de9e8a4
Merge branch 'l0v2' of github.com:mateuszpn/llvm into l0v2
mateuszpn Mar 3, 2025
772b279
bindless images - create, copy data, destroy
mateuszpn Mar 3, 2025
3a602ca
bindless images - further functions (20/22 test passed)
mateuszpn Mar 4, 2025
9c9b89e
Pre-implementation of all needed functions (0 tests failed)
mateuszpn Mar 6, 2025
525829d
ur2zeImageDesc (image_helpers.cpp) and ur2zeImageDescBindless (image.…
mateuszpn Mar 7, 2025
9e1d202
bindless images functions common for v1 & v2 moved to image_common.cpp
mateuszpn Mar 7, 2025
29e507b
fixed usage of handles in v2, refactor
mateuszpn Mar 12, 2025
9da86d1
format fix
mateuszpn Mar 12, 2025
ba96ee7
common functions moved to image_common.cpp
mateuszpn Mar 12, 2025
e2267ae
urBindlessImagesImageGetInfoExp tested and moved to image_common.cpp
mateuszpn Mar 12, 2025
e32f719
urBindlessImagesImageGetInfoExp tested and moved to image_common.cpp
mateuszpn Mar 13, 2025
85cb762
common (v1/v2) bindless img description struct
mateuszpn Mar 13, 2025
e3b020b
Merge branch 'sycl' into l0v2
mateuszpn Mar 13, 2025
8f252bd
format fix
mateuszpn Mar 13, 2025
ec8d16e
Merge branch 'intel:sycl' into l0v2
mateuszpn Mar 14, 2025
e6bd8a6
Merge branch 'intel:sycl' into l0v2
mateuszpn Mar 17, 2025
49c489c
fixes in ur_bindless_mem_handle_t and bindlessImagesImageCopyExp
mateuszpn Mar 17, 2025
30023d3
common image copy logic extracted
mateuszpn Mar 18, 2025
6dd26d9
some funcions moved to anonymous namespace
mateuszpn Mar 18, 2025
7893a10
comments applied
mateuszpn Mar 19, 2025
0a56566
comments cntd
mateuszpn Mar 20, 2025
cbdeab0
Merge branch 'intel:sycl' into l0v2
mateuszpn Mar 20, 2025
cf906bf
all functions implemented in v1 enabled in v2
mateuszpn Mar 24, 2025
295c315
Merge branch 'intel:sycl' into l0v2
mateuszpn Mar 25, 2025
14827d0
Merge branch 'intel:sycl' into l0v2
mateuszpn Mar 26, 2025
e320adf
Comments applied
mateuszpn Mar 27, 2025
f82218c
urBindlessImagesMapExternalLinearMemoryExp made common for v1 & v2
mateuszpn Mar 28, 2025
e31edfc
lock added
mateuszpn Mar 28, 2025
5a90016
Merge remote-tracking branch 'upstream/sycl' into l0v2
mateuszpn Mar 28, 2025
2856929
Merge branch 'intel:sycl' into l0v2
mateuszpn Mar 28, 2025
b051202
minor adjustments for clang
mateuszpn Mar 28, 2025
a354323
Merge branch 'l0v2' of github.com:mateuszpn/llvm into l0v2
mateuszpn Mar 28, 2025
852e27b
integration of image_common and image_helper files
mateuszpn Mar 28, 2025
d5fd1db
comments addressed
mateuszpn Apr 1, 2025
fc881e8
fix of function call
mateuszpn Apr 3, 2025
63f837a
Merge remote-tracking branch 'upstream/sycl' into l0v2
mateuszpn Apr 8, 2025
5a3c00f
Merge remote-tracking branch 'upstream/sycl' into l0v2
mateuszpn Apr 15, 2025
eb723b0
Merge remote-tracking branch 'upstream/sycl' into l0v2
mateuszpn Apr 18, 2025
9f97b4b
Merge remote-tracking branch 'upstream/sycl' into l0v2
mateuszpn Apr 25, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ if(UR_BUILD_ADAPTER_L0_V2)
${CMAKE_CURRENT_SOURCE_DIR}/v2/event_provider_counter.cpp
${CMAKE_CURRENT_SOURCE_DIR}/v2/event_provider_normal.cpp
${CMAKE_CURRENT_SOURCE_DIR}/v2/event.cpp
${CMAKE_CURRENT_SOURCE_DIR}/v2/image.cpp
${CMAKE_CURRENT_SOURCE_DIR}/v2/kernel.cpp
${CMAKE_CURRENT_SOURCE_DIR}/v2/memory.cpp
${CMAKE_CURRENT_SOURCE_DIR}/v2/queue_api.cpp
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -282,11 +282,50 @@ ur_result_t ur2zeImageDesc(const ur_image_format_t *ImageFormat,
break;
default:
logger::error("ur2zeImageDesc: unexpected data type Size\n");
std::cerr << "ur2zeImageDesc: unexpected data type Size\n";
return UR_RESULT_ERROR_UNSUPPORTED_IMAGE_FORMAT;
}
break;
}
case UR_IMAGE_CHANNEL_ORDER_R: {
switch (ZeImageFormatTypeSize) {
case 8:
ZeImageFormatLayout = ZE_IMAGE_FORMAT_LAYOUT_8;
break;
case 16:
ZeImageFormatLayout = ZE_IMAGE_FORMAT_LAYOUT_16;
break;
case 32:
ZeImageFormatLayout = ZE_IMAGE_FORMAT_LAYOUT_32;
break;
default:
logger::error("ur2zeImageDesc: unexpected data type Size\n");
std::cerr << "ur2zeImageDesc: unexpected data type Size\n";
return UR_RESULT_ERROR_UNSUPPORTED_IMAGE_FORMAT;
}
break;
}
case UR_IMAGE_CHANNEL_ORDER_RG: {
switch (ZeImageFormatTypeSize) {
case 8:
ZeImageFormatLayout = ZE_IMAGE_FORMAT_LAYOUT_8_8;
break;
case 16:
ZeImageFormatLayout = ZE_IMAGE_FORMAT_LAYOUT_16_16;
break;
case 32:
ZeImageFormatLayout = ZE_IMAGE_FORMAT_LAYOUT_32_32;
break;
default:
logger::error("ur2zeImageDesc: unexpected data type Size\n");
std::cerr << "ur2zeImageDesc: unexpected data type Size\n";
return UR_RESULT_ERROR_UNSUPPORTED_IMAGE_FORMAT;
}
break;

}
default:
std::cerr << "format layout = " << ImageFormat->channelOrder << std::endl;
logger::error("format layout = {}", ImageFormat->channelOrder);
return UR_RESULT_ERROR_UNSUPPORTED_IMAGE_FORMAT;
break;
Expand Down Expand Up @@ -316,6 +355,7 @@ ur_result_t ur2zeImageDesc(const ur_image_format_t *ImageFormat,
ZeImageType = ZE_IMAGE_TYPE_2DARRAY;
break;
default:
std::cerr << "ur2zeImageDesc: unsupported image type" << std::endl;
logger::error("ur2zeImageDesc: unsupported image type");
return UR_RESULT_ERROR_INVALID_IMAGE_FORMAT_DESCRIPTOR;
}
Expand Down
129 changes: 0 additions & 129 deletions unified-runtime/source/adapters/level_zero/v2/api.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,135 +41,6 @@ ur_result_t urEventSetCallback(ur_event_handle_t hEvent,
return UR_RESULT_ERROR_UNSUPPORTED_FEATURE;
}

ur_result_t urUSMPitchedAllocExp(ur_context_handle_t hContext,
ur_device_handle_t hDevice,
const ur_usm_desc_t *pUSMDesc,
ur_usm_pool_handle_t pool, size_t widthInBytes,
size_t height, size_t elementSizeBytes,
void **ppMem, size_t *pResultPitch) {
logger::error("{} function not implemented!", __FUNCTION__);
return UR_RESULT_ERROR_UNSUPPORTED_FEATURE;
}

ur_result_t urBindlessImagesUnsampledImageHandleDestroyExp(
ur_context_handle_t hContext, ur_device_handle_t hDevice,
ur_exp_image_native_handle_t hImage) {
logger::error("{} function not implemented!", __FUNCTION__);
return UR_RESULT_ERROR_UNSUPPORTED_FEATURE;
}

ur_result_t urBindlessImagesSampledImageHandleDestroyExp(
ur_context_handle_t hContext, ur_device_handle_t hDevice,
ur_exp_image_native_handle_t hImage) {
logger::error("{} function not implemented!", __FUNCTION__);
return UR_RESULT_ERROR_UNSUPPORTED_FEATURE;
}

ur_result_t urBindlessImagesImageAllocateExp(
ur_context_handle_t hContext, ur_device_handle_t hDevice,
const ur_image_format_t *pImageFormat, const ur_image_desc_t *pImageDesc,
ur_exp_image_mem_native_handle_t *phImageMem) {
logger::error("{} function not implemented!", __FUNCTION__);
return UR_RESULT_ERROR_UNSUPPORTED_FEATURE;
}

ur_result_t
urBindlessImagesImageFreeExp(ur_context_handle_t hContext,
ur_device_handle_t hDevice,
ur_exp_image_mem_native_handle_t hImageMem) {
logger::error("{} function not implemented!", __FUNCTION__);
return UR_RESULT_ERROR_UNSUPPORTED_FEATURE;
}

ur_result_t urBindlessImagesUnsampledImageCreateExp(
ur_context_handle_t hContext, ur_device_handle_t hDevice,
ur_exp_image_mem_native_handle_t hImageMem,
const ur_image_format_t *pImageFormat, const ur_image_desc_t *pImageDesc,
ur_exp_image_native_handle_t *phImage) {
logger::error("{} function not implemented!", __FUNCTION__);
return UR_RESULT_ERROR_UNSUPPORTED_FEATURE;
}

ur_result_t urBindlessImagesSampledImageCreateExp(
ur_context_handle_t hContext, ur_device_handle_t hDevice,
ur_exp_image_mem_native_handle_t hImageMem,
const ur_image_format_t *pImageFormat, const ur_image_desc_t *pImageDesc,
ur_sampler_handle_t hSampler, ur_exp_image_native_handle_t *phImage) {
logger::error("{} function not implemented!", __FUNCTION__);
return UR_RESULT_ERROR_UNSUPPORTED_FEATURE;
}

ur_result_t urBindlessImagesImageGetInfoExp(
ur_context_handle_t hContext, ur_exp_image_mem_native_handle_t hImageMem,
ur_image_info_t propName, void *pPropValue, size_t *pPropSizeRet) {
logger::error("{} function not implemented!", __FUNCTION__);
return UR_RESULT_ERROR_UNSUPPORTED_FEATURE;
}

ur_result_t urBindlessImagesMipmapGetLevelExp(
ur_context_handle_t hContext, ur_device_handle_t hDevice,
ur_exp_image_mem_native_handle_t hImageMem, uint32_t mipmapLevel,
ur_exp_image_mem_native_handle_t *phImageMem) {
logger::error("{} function not implemented!", __FUNCTION__);
return UR_RESULT_ERROR_UNSUPPORTED_FEATURE;
}

ur_result_t
urBindlessImagesMipmapFreeExp(ur_context_handle_t hContext,
ur_device_handle_t hDevice,
ur_exp_image_mem_native_handle_t hMem) {
logger::error("{} function not implemented!", __FUNCTION__);
return UR_RESULT_ERROR_UNSUPPORTED_FEATURE;
}

ur_result_t urBindlessImagesImportExternalMemoryExp(
ur_context_handle_t hContext, ur_device_handle_t hDevice, size_t size,
ur_exp_external_mem_type_t memHandleType,
ur_exp_external_mem_desc_t *pExternalMemDesc,
ur_exp_external_mem_handle_t *phExternalMem) {
logger::error("{} function not implemented!", __FUNCTION__);
return UR_RESULT_ERROR_UNSUPPORTED_FEATURE;
}

ur_result_t urBindlessImagesMapExternalArrayExp(
ur_context_handle_t hContext, ur_device_handle_t hDevice,
const ur_image_format_t *pImageFormat, const ur_image_desc_t *pImageDesc,
ur_exp_external_mem_handle_t hExternalMem,
ur_exp_image_mem_native_handle_t *phImageMem) {
logger::error("{} function not implemented!", __FUNCTION__);
return UR_RESULT_ERROR_UNSUPPORTED_FEATURE;
}

ur_result_t urBindlessImagesMapExternalLinearMemoryExp(
ur_context_handle_t hContext, ur_device_handle_t hDevice, uint64_t offset,
uint64_t size, ur_exp_external_mem_handle_t hExternalMem, void **ppRetMem) {
logger::error("{} function not implemented!", __FUNCTION__);
return UR_RESULT_ERROR_UNSUPPORTED_FEATURE;
}

ur_result_t urBindlessImagesReleaseExternalMemoryExp(
ur_context_handle_t hContext, ur_device_handle_t hDevice,
ur_exp_external_mem_handle_t hExternalMem) {
logger::error("{} function not implemented!", __FUNCTION__);
return UR_RESULT_ERROR_UNSUPPORTED_FEATURE;
}

ur_result_t urBindlessImagesImportExternalSemaphoreExp(
ur_context_handle_t hContext, ur_device_handle_t hDevice,
ur_exp_external_semaphore_type_t semHandleType,
ur_exp_external_semaphore_desc_t *pExternalSemaphoreDesc,
ur_exp_external_semaphore_handle_t *phExternalSemaphore) {
logger::error("{} function not implemented!", __FUNCTION__);
return UR_RESULT_ERROR_UNSUPPORTED_FEATURE;
}

ur_result_t urBindlessImagesReleaseExternalSemaphoreExp(
ur_context_handle_t hContext, ur_device_handle_t hDevice,
ur_exp_external_semaphore_handle_t hExternalSemaphore) {
logger::error("{} function not implemented!", __FUNCTION__);
return UR_RESULT_ERROR_UNSUPPORTED_FEATURE;
}

ur_result_t urCommandBufferUpdateKernelLaunchExp(
ur_exp_command_buffer_command_handle_t hCommand,
const ur_exp_command_buffer_update_kernel_launch_desc_t
Expand Down
Loading
Loading