Skip to content

Commit

Permalink
Reinstate "Merge pull request #1855 from Seanst98/sean/rename-externa…
Browse files Browse the repository at this point in the history
…l-semaphore-release""

This reverts commit b26e53c.
  • Loading branch information
kbenzie committed Jul 17, 2024
1 parent b26e53c commit 0abf370
Show file tree
Hide file tree
Showing 25 changed files with 108 additions and 105 deletions.
16 changes: 8 additions & 8 deletions include/ur_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ typedef enum ur_function_t {
UR_FUNCTION_BINDLESS_IMAGES_MIPMAP_FREE_EXP = 142, ///< Enumerator for ::urBindlessImagesMipmapFreeExp
UR_FUNCTION_BINDLESS_IMAGES_MAP_EXTERNAL_ARRAY_EXP = 144, ///< Enumerator for ::urBindlessImagesMapExternalArrayExp
UR_FUNCTION_BINDLESS_IMAGES_RELEASE_INTEROP_EXP = 145, ///< Enumerator for ::urBindlessImagesReleaseInteropExp
UR_FUNCTION_BINDLESS_IMAGES_DESTROY_EXTERNAL_SEMAPHORE_EXP = 147, ///< Enumerator for ::urBindlessImagesDestroyExternalSemaphoreExp
UR_FUNCTION_BINDLESS_IMAGES_RELEASE_EXTERNAL_SEMAPHORE_EXP = 147, ///< Enumerator for ::urBindlessImagesReleaseExternalSemaphoreExp
UR_FUNCTION_BINDLESS_IMAGES_WAIT_EXTERNAL_SEMAPHORE_EXP = 148, ///< Enumerator for ::urBindlessImagesWaitExternalSemaphoreExp
UR_FUNCTION_BINDLESS_IMAGES_SIGNAL_EXTERNAL_SEMAPHORE_EXP = 149, ///< Enumerator for ::urBindlessImagesSignalExternalSemaphoreExp
UR_FUNCTION_ENQUEUE_USM_FILL_2D = 151, ///< Enumerator for ::urEnqueueUSMFill2D
Expand Down Expand Up @@ -7944,7 +7944,7 @@ urBindlessImagesMapExternalArrayExp(
);

///////////////////////////////////////////////////////////////////////////////
/// @brief Destroy interop memory
/// @brief Release interop memory
///
/// @remarks
/// _Analogues_
Expand All @@ -7965,7 +7965,7 @@ UR_APIEXPORT ur_result_t UR_APICALL
urBindlessImagesReleaseInteropExp(
ur_context_handle_t hContext, ///< [in] handle of the context object
ur_device_handle_t hDevice, ///< [in] handle of the device object
ur_exp_interop_mem_handle_t hInteropMem ///< [in][release] handle of interop memory to be freed
ur_exp_interop_mem_handle_t hInteropMem ///< [in][release] handle of interop memory to be destroyed
);

///////////////////////////////////////////////////////////////////////////////
Expand Down Expand Up @@ -8000,7 +8000,7 @@ urBindlessImagesImportExternalSemaphoreExp(
);

///////////////////////////////////////////////////////////////////////////////
/// @brief Destroy the external semaphore handle
/// @brief Release the external semaphore
///
/// @remarks
/// _Analogues_
Expand All @@ -8018,7 +8018,7 @@ urBindlessImagesImportExternalSemaphoreExp(
/// - ::UR_RESULT_ERROR_INVALID_CONTEXT
/// - ::UR_RESULT_ERROR_INVALID_VALUE
UR_APIEXPORT ur_result_t UR_APICALL
urBindlessImagesDestroyExternalSemaphoreExp(
urBindlessImagesReleaseExternalSemaphoreExp(
ur_context_handle_t hContext, ///< [in] handle of the context object
ur_device_handle_t hDevice, ///< [in] handle of the device object
ur_exp_interop_semaphore_handle_t hInteropSemaphore ///< [in][release] handle of interop semaphore to be destroyed
Expand Down Expand Up @@ -11235,14 +11235,14 @@ typedef struct ur_bindless_images_import_external_semaphore_exp_params_t {
} ur_bindless_images_import_external_semaphore_exp_params_t;

///////////////////////////////////////////////////////////////////////////////
/// @brief Function parameters for urBindlessImagesDestroyExternalSemaphoreExp
/// @brief Function parameters for urBindlessImagesReleaseExternalSemaphoreExp
/// @details Each entry is a pointer to the parameter passed to the function;
/// allowing the callback the ability to modify the parameter's value
typedef struct ur_bindless_images_destroy_external_semaphore_exp_params_t {
typedef struct ur_bindless_images_release_external_semaphore_exp_params_t {
ur_context_handle_t *phContext;
ur_device_handle_t *phDevice;
ur_exp_interop_semaphore_handle_t *phInteropSemaphore;
} ur_bindless_images_destroy_external_semaphore_exp_params_t;
} ur_bindless_images_release_external_semaphore_exp_params_t;

///////////////////////////////////////////////////////////////////////////////
/// @brief Function parameters for urBindlessImagesWaitExternalSemaphoreExp
Expand Down
6 changes: 3 additions & 3 deletions include/ur_ddi.h
Original file line number Diff line number Diff line change
Expand Up @@ -1656,8 +1656,8 @@ typedef ur_result_t(UR_APICALL *ur_pfnBindlessImagesImportExternalSemaphoreExp_t
ur_exp_interop_semaphore_handle_t *);

///////////////////////////////////////////////////////////////////////////////
/// @brief Function-pointer for urBindlessImagesDestroyExternalSemaphoreExp
typedef ur_result_t(UR_APICALL *ur_pfnBindlessImagesDestroyExternalSemaphoreExp_t)(
/// @brief Function-pointer for urBindlessImagesReleaseExternalSemaphoreExp
typedef ur_result_t(UR_APICALL *ur_pfnBindlessImagesReleaseExternalSemaphoreExp_t)(
ur_context_handle_t,
ur_device_handle_t,
ur_exp_interop_semaphore_handle_t);
Expand Down Expand Up @@ -1701,7 +1701,7 @@ typedef struct ur_bindless_images_exp_dditable_t {
ur_pfnBindlessImagesMapExternalArrayExp_t pfnMapExternalArrayExp;
ur_pfnBindlessImagesReleaseInteropExp_t pfnReleaseInteropExp;
ur_pfnBindlessImagesImportExternalSemaphoreExp_t pfnImportExternalSemaphoreExp;
ur_pfnBindlessImagesDestroyExternalSemaphoreExp_t pfnDestroyExternalSemaphoreExp;
ur_pfnBindlessImagesReleaseExternalSemaphoreExp_t pfnReleaseExternalSemaphoreExp;
ur_pfnBindlessImagesWaitExternalSemaphoreExp_t pfnWaitExternalSemaphoreExp;
ur_pfnBindlessImagesSignalExternalSemaphoreExp_t pfnSignalExternalSemaphoreExp;
} ur_bindless_images_exp_dditable_t;
Expand Down
4 changes: 2 additions & 2 deletions include/ur_print.h
Original file line number Diff line number Diff line change
Expand Up @@ -2155,12 +2155,12 @@ UR_APIEXPORT ur_result_t UR_APICALL urPrintBindlessImagesReleaseInteropExpParams
UR_APIEXPORT ur_result_t UR_APICALL urPrintBindlessImagesImportExternalSemaphoreExpParams(const struct ur_bindless_images_import_external_semaphore_exp_params_t *params, char *buffer, const size_t buff_size, size_t *out_size);

///////////////////////////////////////////////////////////////////////////////
/// @brief Print ur_bindless_images_destroy_external_semaphore_exp_params_t struct
/// @brief Print ur_bindless_images_release_external_semaphore_exp_params_t struct
/// @returns
/// - ::UR_RESULT_SUCCESS
/// - ::UR_RESULT_ERROR_INVALID_SIZE
/// - `buff_size < out_size`
UR_APIEXPORT ur_result_t UR_APICALL urPrintBindlessImagesDestroyExternalSemaphoreExpParams(const struct ur_bindless_images_destroy_external_semaphore_exp_params_t *params, char *buffer, const size_t buff_size, size_t *out_size);
UR_APIEXPORT ur_result_t UR_APICALL urPrintBindlessImagesReleaseExternalSemaphoreExpParams(const struct ur_bindless_images_release_external_semaphore_exp_params_t *params, char *buffer, const size_t buff_size, size_t *out_size);

///////////////////////////////////////////////////////////////////////////////
/// @brief Print ur_bindless_images_wait_external_semaphore_exp_params_t struct
Expand Down
12 changes: 6 additions & 6 deletions include/ur_print.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -752,8 +752,8 @@ inline std::ostream &operator<<(std::ostream &os, enum ur_function_t value) {
case UR_FUNCTION_BINDLESS_IMAGES_RELEASE_INTEROP_EXP:
os << "UR_FUNCTION_BINDLESS_IMAGES_RELEASE_INTEROP_EXP";
break;
case UR_FUNCTION_BINDLESS_IMAGES_DESTROY_EXTERNAL_SEMAPHORE_EXP:
os << "UR_FUNCTION_BINDLESS_IMAGES_DESTROY_EXTERNAL_SEMAPHORE_EXP";
case UR_FUNCTION_BINDLESS_IMAGES_RELEASE_EXTERNAL_SEMAPHORE_EXP:
os << "UR_FUNCTION_BINDLESS_IMAGES_RELEASE_EXTERNAL_SEMAPHORE_EXP";
break;
case UR_FUNCTION_BINDLESS_IMAGES_WAIT_EXTERNAL_SEMAPHORE_EXP:
os << "UR_FUNCTION_BINDLESS_IMAGES_WAIT_EXTERNAL_SEMAPHORE_EXP";
Expand Down Expand Up @@ -15191,10 +15191,10 @@ inline std::ostream &operator<<(std::ostream &os, [[maybe_unused]] const struct
}

///////////////////////////////////////////////////////////////////////////////
/// @brief Print operator for the ur_bindless_images_destroy_external_semaphore_exp_params_t type
/// @brief Print operator for the ur_bindless_images_release_external_semaphore_exp_params_t type
/// @returns
/// std::ostream &
inline std::ostream &operator<<(std::ostream &os, [[maybe_unused]] const struct ur_bindless_images_destroy_external_semaphore_exp_params_t *params) {
inline std::ostream &operator<<(std::ostream &os, [[maybe_unused]] const struct ur_bindless_images_release_external_semaphore_exp_params_t *params) {

os << ".hContext = ";

Expand Down Expand Up @@ -17747,8 +17747,8 @@ inline ur_result_t UR_APICALL printFunctionParams(std::ostream &os, ur_function_
case UR_FUNCTION_BINDLESS_IMAGES_IMPORT_EXTERNAL_SEMAPHORE_EXP: {
os << (const struct ur_bindless_images_import_external_semaphore_exp_params_t *)params;
} break;
case UR_FUNCTION_BINDLESS_IMAGES_DESTROY_EXTERNAL_SEMAPHORE_EXP: {
os << (const struct ur_bindless_images_destroy_external_semaphore_exp_params_t *)params;
case UR_FUNCTION_BINDLESS_IMAGES_RELEASE_EXTERNAL_SEMAPHORE_EXP: {
os << (const struct ur_bindless_images_release_external_semaphore_exp_params_t *)params;
} break;
case UR_FUNCTION_BINDLESS_IMAGES_WAIT_EXTERNAL_SEMAPHORE_EXP: {
os << (const struct ur_bindless_images_wait_external_semaphore_exp_params_t *)params;
Expand Down
7 changes: 5 additions & 2 deletions scripts/core/EXP-BINDLESS-IMAGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ Enums
* ${X}_FUNCTION_BINDLESS_IMAGES_MAP_EXTERNAL_ARRAY_EXP
* ${X}_FUNCTION_BINDLESS_IMAGES_RELEASE_INTEROP_EXP
* ${X}_FUNCTION_BINDLESS_IMAGES_IMPORT_EXTERNAL_SEMAPHORE_EXP
* ${X}_FUNCTION_BINDLESS_IMAGES_DESTROY_EXTERNAL_SEMAPHORE_EXP
* ${X}_FUNCTION_BINDLESS_IMAGES_RELEASE_EXTERNAL_SEMAPHORE_EXP
* ${X}_FUNCTION_BINDLESS_IMAGES_WAIT_EXTERNAL_SEMAPHORE_EXP
* ${X}_FUNCTION_BINDLESS_IMAGES_SIGNAL_EXTERNAL_SEMAPHORE_EXP

Expand Down Expand Up @@ -181,7 +181,7 @@ Functions
* ${x}BindlessImagesMapExternalArrayExp
* ${x}BindlessImagesReleaseInteropExp
* ${x}BindlessImagesImportExternalSemaphoreExp
* ${x}BindlessImagesDestroyExternalSemaphoreExp
* ${x}BindlessImagesReleaseExternalSemaphoreExp
* ${x}BindlessImagesWaitExternalSemaphoreExp
* ${x}BindlessImagesSignalExternalSemaphoreExp

Expand Down Expand Up @@ -237,6 +237,9 @@ Changelog
| || - ${X}_EXP_EXTERNAL_MEM_TYPE_WIN32_NT_DX12_RESOURCE |
| || - ${X}_EXP_EXTERNAL_SEMAPHORE_TYPE_WIN32_NT_DX12_FENCE |
+------------------------------------------------------------------------+
| 14.0 || Rename func BindlessImagesDestroyExternalSemaphoreExp to |
| || BindlessImagesReleaseExternalSemaphoreExp |
+------------------------------------------------------------------------+

Contributors
--------------------------------------------------------------------------------
Expand Down
8 changes: 4 additions & 4 deletions scripts/core/exp-bindless-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -717,7 +717,7 @@ returns:
- $X_RESULT_ERROR_OUT_OF_RESOURCES
--- #--------------------------------------------------------------------------
type: function
desc: "Destroy interop memory"
desc: "Release interop memory"
class: $xBindlessImages
name: ReleaseInteropExp
ordinal: "0"
Expand All @@ -732,7 +732,7 @@ params:
desc: "[in] handle of the device object"
- type: $x_exp_interop_mem_handle_t
name: hInteropMem
desc: "[in][release] handle of interop memory to be freed"
desc: "[in][release] handle of interop memory to be destroyed"
returns:
- $X_RESULT_ERROR_INVALID_CONTEXT
- $X_RESULT_ERROR_INVALID_VALUE
Expand Down Expand Up @@ -765,9 +765,9 @@ returns:
- $X_RESULT_ERROR_INVALID_VALUE
--- #--------------------------------------------------------------------------
type: function
desc: "Destroy the external semaphore handle"
desc: "Release the external semaphore"
class: $xBindlessImages
name: DestroyExternalSemaphoreExp
name: ReleaseExternalSemaphoreExp
ordinal: "0"
analogue:
- "**cuDestroyExternalSemaphore**"
Expand Down
4 changes: 2 additions & 2 deletions scripts/core/registry.yml
Original file line number Diff line number Diff line change
Expand Up @@ -406,8 +406,8 @@ etors:
- name: BINDLESS_IMAGES_RELEASE_INTEROP_EXP
desc: Enumerator for $xBindlessImagesReleaseInteropExp
value: '145'
- name: BINDLESS_IMAGES_DESTROY_EXTERNAL_SEMAPHORE_EXP
desc: Enumerator for $xBindlessImagesDestroyExternalSemaphoreExp
- name: BINDLESS_IMAGES_RELEASE_EXTERNAL_SEMAPHORE_EXP
desc: Enumerator for $xBindlessImagesReleaseExternalSemaphoreExp
value: '147'
- name: BINDLESS_IMAGES_WAIT_EXTERNAL_SEMAPHORE_EXP
desc: Enumerator for $xBindlessImagesWaitExternalSemaphoreExp
Expand Down
2 changes: 1 addition & 1 deletion source/adapters/cuda/image.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1226,7 +1226,7 @@ UR_APIEXPORT ur_result_t UR_APICALL urBindlessImagesImportExternalSemaphoreExp(
return UR_RESULT_SUCCESS;
}

UR_APIEXPORT ur_result_t UR_APICALL urBindlessImagesDestroyExternalSemaphoreExp(
UR_APIEXPORT ur_result_t UR_APICALL urBindlessImagesReleaseExternalSemaphoreExp(
ur_context_handle_t hContext, ur_device_handle_t hDevice,
ur_exp_interop_semaphore_handle_t hInteropSemaphore) {
UR_ASSERT(std::find(hContext->getDevices().begin(),
Expand Down
4 changes: 2 additions & 2 deletions source/adapters/cuda/ur_interface_loader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -343,8 +343,8 @@ UR_DLLEXPORT ur_result_t UR_APICALL urGetBindlessImagesExpProcAddrTable(
pDdiTable->pfnReleaseInteropExp = urBindlessImagesReleaseInteropExp;
pDdiTable->pfnImportExternalSemaphoreExp =
urBindlessImagesImportExternalSemaphoreExp;
pDdiTable->pfnDestroyExternalSemaphoreExp =
urBindlessImagesDestroyExternalSemaphoreExp;
pDdiTable->pfnReleaseExternalSemaphoreExp =
urBindlessImagesReleaseExternalSemaphoreExp;
pDdiTable->pfnWaitExternalSemaphoreExp =
urBindlessImagesWaitExternalSemaphoreExp;
pDdiTable->pfnSignalExternalSemaphoreExp =
Expand Down
2 changes: 1 addition & 1 deletion source/adapters/hip/image.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ UR_APIEXPORT ur_result_t UR_APICALL urBindlessImagesImportExternalSemaphoreExp(
return UR_RESULT_ERROR_UNSUPPORTED_FEATURE;
}

UR_APIEXPORT ur_result_t UR_APICALL urBindlessImagesDestroyExternalSemaphoreExp(
UR_APIEXPORT ur_result_t UR_APICALL urBindlessImagesReleaseExternalSemaphoreExp(
[[maybe_unused]] ur_context_handle_t hContext,
[[maybe_unused]] ur_device_handle_t hDevice,
[[maybe_unused]] ur_exp_interop_semaphore_handle_t hInteropSemaphore) {
Expand Down
2 changes: 1 addition & 1 deletion source/adapters/level_zero/image.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1100,7 +1100,7 @@ UR_APIEXPORT ur_result_t UR_APICALL urBindlessImagesImportExternalSemaphoreExp(
return UR_RESULT_ERROR_UNSUPPORTED_FEATURE;
}

UR_APIEXPORT ur_result_t UR_APICALL urBindlessImagesDestroyExternalSemaphoreExp(
UR_APIEXPORT ur_result_t UR_APICALL urBindlessImagesReleaseExternalSemaphoreExp(
ur_context_handle_t hContext, ur_device_handle_t hDevice,
ur_exp_interop_semaphore_handle_t hInteropSemaphore) {
std::ignore = hContext;
Expand Down
4 changes: 2 additions & 2 deletions source/adapters/level_zero/ur_interface_loader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -390,8 +390,8 @@ UR_DLLEXPORT ur_result_t UR_APICALL urGetBindlessImagesExpProcAddrTable(
pDdiTable->pfnReleaseInteropExp = urBindlessImagesReleaseInteropExp;
pDdiTable->pfnImportExternalSemaphoreExp =
urBindlessImagesImportExternalSemaphoreExp;
pDdiTable->pfnDestroyExternalSemaphoreExp =
urBindlessImagesDestroyExternalSemaphoreExp;
pDdiTable->pfnReleaseExternalSemaphoreExp =
urBindlessImagesReleaseExternalSemaphoreExp;
pDdiTable->pfnWaitExternalSemaphoreExp =
urBindlessImagesWaitExternalSemaphoreExp;
pDdiTable->pfnSignalExternalSemaphoreExp =
Expand Down
18 changes: 9 additions & 9 deletions source/adapters/mock/ur_mockddi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7813,7 +7813,7 @@ __urdlllocal ur_result_t UR_APICALL urBindlessImagesReleaseInteropExp(
ur_context_handle_t hContext, ///< [in] handle of the context object
ur_device_handle_t hDevice, ///< [in] handle of the device object
ur_exp_interop_mem_handle_t
hInteropMem ///< [in][release] handle of interop memory to be freed
hInteropMem ///< [in][release] handle of interop memory to be destroyed
) try {
ur_result_t result = UR_RESULT_SUCCESS;

Expand Down Expand Up @@ -7914,21 +7914,21 @@ __urdlllocal ur_result_t UR_APICALL urBindlessImagesImportExternalSemaphoreExp(
}

///////////////////////////////////////////////////////////////////////////////
/// @brief Intercept function for urBindlessImagesDestroyExternalSemaphoreExp
__urdlllocal ur_result_t UR_APICALL urBindlessImagesDestroyExternalSemaphoreExp(
/// @brief Intercept function for urBindlessImagesReleaseExternalSemaphoreExp
__urdlllocal ur_result_t UR_APICALL urBindlessImagesReleaseExternalSemaphoreExp(
ur_context_handle_t hContext, ///< [in] handle of the context object
ur_device_handle_t hDevice, ///< [in] handle of the device object
ur_exp_interop_semaphore_handle_t
hInteropSemaphore ///< [in][release] handle of interop semaphore to be destroyed
) try {
ur_result_t result = UR_RESULT_SUCCESS;

ur_bindless_images_destroy_external_semaphore_exp_params_t params = {
ur_bindless_images_release_external_semaphore_exp_params_t params = {
&hContext, &hDevice, &hInteropSemaphore};

auto beforeCallback = reinterpret_cast<ur_mock_callback_t>(
mock::getCallbacks().get_before_callback(
"urBindlessImagesDestroyExternalSemaphoreExp"));
"urBindlessImagesReleaseExternalSemaphoreExp"));
if (beforeCallback) {
result = beforeCallback(&params);
if (result != UR_RESULT_SUCCESS) {
Expand All @@ -7938,7 +7938,7 @@ __urdlllocal ur_result_t UR_APICALL urBindlessImagesDestroyExternalSemaphoreExp(

auto replaceCallback = reinterpret_cast<ur_mock_callback_t>(
mock::getCallbacks().get_replace_callback(
"urBindlessImagesDestroyExternalSemaphoreExp"));
"urBindlessImagesReleaseExternalSemaphoreExp"));
if (replaceCallback) {
result = replaceCallback(&params);
} else {
Expand All @@ -7953,7 +7953,7 @@ __urdlllocal ur_result_t UR_APICALL urBindlessImagesDestroyExternalSemaphoreExp(

auto afterCallback = reinterpret_cast<ur_mock_callback_t>(
mock::getCallbacks().get_after_callback(
"urBindlessImagesDestroyExternalSemaphoreExp"));
"urBindlessImagesReleaseExternalSemaphoreExp"));
if (afterCallback) {
return afterCallback(&params);
}
Expand Down Expand Up @@ -10279,8 +10279,8 @@ UR_DLLEXPORT ur_result_t UR_APICALL urGetBindlessImagesExpProcAddrTable(
pDdiTable->pfnImportExternalSemaphoreExp =
driver::urBindlessImagesImportExternalSemaphoreExp;

pDdiTable->pfnDestroyExternalSemaphoreExp =
driver::urBindlessImagesDestroyExternalSemaphoreExp;
pDdiTable->pfnReleaseExternalSemaphoreExp =
driver::urBindlessImagesReleaseExternalSemaphoreExp;

pDdiTable->pfnWaitExternalSemaphoreExp =
driver::urBindlessImagesWaitExternalSemaphoreExp;
Expand Down
2 changes: 1 addition & 1 deletion source/adapters/native_cpu/image.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ UR_APIEXPORT ur_result_t UR_APICALL urBindlessImagesImportExternalSemaphoreExp(
return UR_RESULT_ERROR_UNSUPPORTED_FEATURE;
}

UR_APIEXPORT ur_result_t UR_APICALL urBindlessImagesDestroyExternalSemaphoreExp(
UR_APIEXPORT ur_result_t UR_APICALL urBindlessImagesReleaseExternalSemaphoreExp(
[[maybe_unused]] ur_context_handle_t hContext,
[[maybe_unused]] ur_device_handle_t hDevice,
[[maybe_unused]] ur_exp_interop_semaphore_handle_t hInteropSemaphore) {
Expand Down
4 changes: 2 additions & 2 deletions source/adapters/native_cpu/ur_interface_loader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -332,8 +332,8 @@ UR_DLLEXPORT ur_result_t UR_APICALL urGetBindlessImagesExpProcAddrTable(
pDdiTable->pfnReleaseInteropExp = urBindlessImagesReleaseInteropExp;
pDdiTable->pfnImportExternalSemaphoreExp =
urBindlessImagesImportExternalSemaphoreExp;
pDdiTable->pfnDestroyExternalSemaphoreExp =
urBindlessImagesDestroyExternalSemaphoreExp;
pDdiTable->pfnReleaseExternalSemaphoreExp =
urBindlessImagesReleaseExternalSemaphoreExp;
pDdiTable->pfnWaitExternalSemaphoreExp =
urBindlessImagesWaitExternalSemaphoreExp;
pDdiTable->pfnSignalExternalSemaphoreExp =
Expand Down
2 changes: 1 addition & 1 deletion source/adapters/opencl/image.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ UR_APIEXPORT ur_result_t UR_APICALL urBindlessImagesImportExternalSemaphoreExp(
return UR_RESULT_ERROR_UNSUPPORTED_FEATURE;
}

UR_APIEXPORT ur_result_t UR_APICALL urBindlessImagesDestroyExternalSemaphoreExp(
UR_APIEXPORT ur_result_t UR_APICALL urBindlessImagesReleaseExternalSemaphoreExp(
[[maybe_unused]] ur_context_handle_t hContext,
[[maybe_unused]] ur_device_handle_t hDevice,
[[maybe_unused]] ur_exp_interop_semaphore_handle_t hInteropSemaphore) {
Expand Down
4 changes: 2 additions & 2 deletions source/adapters/opencl/ur_interface_loader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -350,8 +350,8 @@ UR_DLLEXPORT ur_result_t UR_APICALL urGetBindlessImagesExpProcAddrTable(
pDdiTable->pfnReleaseInteropExp = urBindlessImagesReleaseInteropExp;
pDdiTable->pfnImportExternalSemaphoreExp =
urBindlessImagesImportExternalSemaphoreExp;
pDdiTable->pfnDestroyExternalSemaphoreExp =
urBindlessImagesDestroyExternalSemaphoreExp;
pDdiTable->pfnReleaseExternalSemaphoreExp =
urBindlessImagesReleaseExternalSemaphoreExp;
pDdiTable->pfnWaitExternalSemaphoreExp =
urBindlessImagesWaitExternalSemaphoreExp;
pDdiTable->pfnSignalExternalSemaphoreExp =
Expand Down
Loading

0 comments on commit 0abf370

Please sign in to comment.