File tree Expand file tree Collapse file tree 3 files changed +11
-8
lines changed
unified-runtime/source/adapters/level_zero Expand file tree Collapse file tree 3 files changed +11
-8
lines changed Original file line number Diff line number Diff line change 1717#include " sampler.hpp"
1818#include " ur_interface_loader.hpp"
1919
20+ #include " loader/ze_loader.h"
21+
2022namespace {
2123
2224bool Is3ChannelOrder (ur_image_channel_order_t ChannelOrder) {
Original file line number Diff line number Diff line change @@ -752,7 +752,8 @@ ur_result_t urBindlessImagesImportExternalSemaphoreExp(
752752 }
753753
754754 ZE2UR_CALL (UrPlatform->ZeExternalSemaphoreExt .zexImportExternalSemaphoreExp ,
755- (hDevice->ZeDevice , &SemDesc, &ExtSemaphoreHandle));
755+ (hDevice->ZeDevice , (ze_external_semaphore_ext_desc_t *)&SemDesc,
756+ (ze_external_semaphore_ext_handle_t *)&ExtSemaphoreHandle));
756757 *phExternalSemaphoreHandle =
757758 (ur_exp_external_semaphore_handle_t )ExtSemaphoreHandle;
758759
@@ -770,7 +771,7 @@ ur_result_t urBindlessImagesReleaseExternalSemaphoreExp(
770771 }
771772 ZE2UR_CALL (
772773 UrPlatform->ZeExternalSemaphoreExt .zexDeviceReleaseExternalSemaphoreExp ,
773- ((ze_intel_external_semaphore_exp_handle_t )hExternalSemaphore));
774+ ((ze_external_semaphore_ext_handle_t )hExternalSemaphore));
774775
775776 return UR_RESULT_SUCCESS;
776777}
Original file line number Diff line number Diff line change @@ -27,12 +27,12 @@ namespace {
2727
2828namespace v2 {
2929
30- DECLARE_DESTROY_FUNCTION (zeKernelDestroy);
31- DECLARE_DESTROY_FUNCTION (zeEventDestroy);
32- DECLARE_DESTROY_FUNCTION (zeEventPoolDestroy);
33- DECLARE_DESTROY_FUNCTION (zeContextDestroy);
34- DECLARE_DESTROY_FUNCTION (zeCommandListDestroy);
35- DECLARE_DESTROY_FUNCTION (zeImageDestroy);
30+ DECLARE_DESTROY_FUNCTION (zeKernelDestroy)
31+ DECLARE_DESTROY_FUNCTION (zeEventDestroy)
32+ DECLARE_DESTROY_FUNCTION (zeEventPoolDestroy)
33+ DECLARE_DESTROY_FUNCTION (zeContextDestroy)
34+ DECLARE_DESTROY_FUNCTION (zeCommandListDestroy)
35+ DECLARE_DESTROY_FUNCTION (zeImageDestroy)
3636namespace raii {
3737
3838template <typename ZeHandleT, ze_result_t (*destroy)(ZeHandleT)>
You can’t perform that action at this time.
0 commit comments