Skip to content

Commit

Permalink
[L0] Fix external semaphore import function call to match the header
Browse files Browse the repository at this point in the history
- Fix the function pointer for the external semaphore import function
  call to match the updated header.

Signed-off-by: Neil R. Spruit <neil.r.spruit@intel.com>
  • Loading branch information
nrspruit committed Dec 13, 2024
1 parent b5f4a93 commit cb57571
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion source/adapters/level_zero/image.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1237,7 +1237,7 @@ ur_result_t urBindlessImagesImportExternalSemaphoreExp(
}

ZE2UR_CALL(UrPlatform->ZeExternalSemaphoreExt.zexImportExternalSemaphoreExp,
(hDevice->ZeDevice, &ExtSemaphoreHandle, &SemDesc));
(hDevice->ZeDevice, &SemDesc, &ExtSemaphoreHandle));
*phExternalSemaphoreHandle =
(ur_exp_external_semaphore_handle_t)ExtSemaphoreHandle;

Expand Down
4 changes: 2 additions & 2 deletions source/adapters/level_zero/platform.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,8 @@ struct ur_platform_handle_t_ : public _ur_platform {
struct ZeExternalSemaphoreExtension {
bool Supported = false;
ze_result_t (*zexImportExternalSemaphoreExp)(
ze_device_handle_t, ze_intel_external_semaphore_exp_handle_t *,
const ze_intel_external_semaphore_exp_desc_t *);
ze_device_handle_t, const ze_intel_external_semaphore_exp_desc_t *,
ze_intel_external_semaphore_exp_handle_t *);
ze_result_t (*zexCommandListAppendWaitExternalSemaphoresExp)(
ze_command_list_handle_t,
const ze_intel_external_semaphore_exp_handle_t *,
Expand Down

0 comments on commit cb57571

Please sign in to comment.