Skip to content

Commit b051202

Browse files
committed
minor adjustments for clang
1 parent 5a90016 commit b051202

File tree

3 files changed

+11
-8
lines changed

3 files changed

+11
-8
lines changed

unified-runtime/source/adapters/level_zero/image.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
#include "sampler.hpp"
1818
#include "ur_interface_loader.hpp"
1919

20+
#include "loader/ze_loader.h"
21+
2022
namespace {
2123

2224
bool Is3ChannelOrder(ur_image_channel_order_t ChannelOrder) {

unified-runtime/source/adapters/level_zero/image_common.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff 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
}

unified-runtime/source/adapters/level_zero/v2/common.hpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,12 @@ namespace {
2727

2828
namespace 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)
3636
namespace raii {
3737

3838
template <typename ZeHandleT, ze_result_t (*destroy)(ZeHandleT)>

0 commit comments

Comments
 (0)