diff --git a/include/ur_api.h b/include/ur_api.h index 99f4d71872..ef34cc39ce 100644 --- a/include/ur_api.h +++ b/include/ur_api.h @@ -7164,16 +7164,16 @@ urBindlessImagesReleaseInteropExp( /// + `NULL == hContext` /// + `NULL == hDevice` /// - ::UR_RESULT_ERROR_INVALID_NULL_POINTER -/// + `NULL == interopSemaphoreDesc` +/// + `NULL == pInteropSemaphoreDesc` /// + `NULL == phInteropSemaphore` /// - ::UR_RESULT_ERROR_INVALID_CONTEXT /// - ::UR_RESULT_ERROR_INVALID_VALUE UR_APIEXPORT ur_result_t UR_APICALL urBindlessImagesImportExternalSemaphoreOpaqueFDExp( - 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_desc_t *interopSemaphoreDesc, ///< [in] the interop semaphore descriptor - ur_exp_interop_semaphore_handle_t *phInteropSemaphore ///< [out] interop semaphore handle to the external semaphore + 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_desc_t *pInteropSemaphoreDesc, ///< [in] the interop semaphore descriptor + ur_exp_interop_semaphore_handle_t *phInteropSemaphore ///< [out] interop semaphore handle to the external semaphore ); /////////////////////////////////////////////////////////////////////////////// @@ -9277,7 +9277,7 @@ typedef struct ur_bindless_images_release_interop_exp_params_t { typedef struct ur_bindless_images_import_external_semaphore_opaque_fd_exp_params_t { ur_context_handle_t *phContext; ur_device_handle_t *phDevice; - ur_exp_interop_semaphore_desc_t **pinteropSemaphoreDesc; + ur_exp_interop_semaphore_desc_t **ppInteropSemaphoreDesc; ur_exp_interop_semaphore_handle_t **pphInteropSemaphore; } ur_bindless_images_import_external_semaphore_opaque_fd_exp_params_t; diff --git a/scripts/core/EXP-BINDLESS-IMAGES.rst b/scripts/core/EXP-BINDLESS-IMAGES.rst index 5a001f2915..071fe799fd 100644 --- a/scripts/core/EXP-BINDLESS-IMAGES.rst +++ b/scripts/core/EXP-BINDLESS-IMAGES.rst @@ -174,6 +174,8 @@ Changelog +----------+-------------------------------------------------------------+ | 5.0 | Update interop struct and func param names to adhere to convention. | +----------+-------------------------------------------------------------+ +| 6.0 | Fix semaphore import function parameter name. | ++----------+-------------------------------------------------------------+ Contributors -------------------------------------------------------------------------------- diff --git a/scripts/core/exp-bindless-images.yml b/scripts/core/exp-bindless-images.yml index 993c95add8..cbb194849f 100644 --- a/scripts/core/exp-bindless-images.yml +++ b/scripts/core/exp-bindless-images.yml @@ -642,7 +642,7 @@ params: name: hDevice desc: "[in] handle of the device object" - type: $x_exp_interop_semaphore_desc_t* - name: interopSemaphoreDesc + name: pInteropSemaphoreDesc desc: "[in] the interop semaphore descriptor" - type: $x_exp_interop_semaphore_handle_t* name: phInteropSemaphore diff --git a/source/adapters/null/ur_nullddi.cpp b/source/adapters/null/ur_nullddi.cpp index e2d80641cc..3971e9188b 100644 --- a/source/adapters/null/ur_nullddi.cpp +++ b/source/adapters/null/ur_nullddi.cpp @@ -4215,7 +4215,7 @@ urBindlessImagesImportExternalSemaphoreOpaqueFDExp( 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_desc_t - *interopSemaphoreDesc, ///< [in] the interop semaphore descriptor + *pInteropSemaphoreDesc, ///< [in] the interop semaphore descriptor ur_exp_interop_semaphore_handle_t * phInteropSemaphore ///< [out] interop semaphore handle to the external semaphore ) try { @@ -4227,7 +4227,7 @@ urBindlessImagesImportExternalSemaphoreOpaqueFDExp( .pfnImportExternalSemaphoreOpaqueFDExp; if (nullptr != pfnImportExternalSemaphoreOpaqueFDExp) { result = pfnImportExternalSemaphoreOpaqueFDExp( - hContext, hDevice, interopSemaphoreDesc, phInteropSemaphore); + hContext, hDevice, pInteropSemaphoreDesc, phInteropSemaphore); } else { // generic implementation *phInteropSemaphore = diff --git a/source/common/ur_params.hpp b/source/common/ur_params.hpp index c9f0cf0201..fd20752dad 100644 --- a/source/common/ur_params.hpp +++ b/source/common/ur_params.hpp @@ -10167,9 +10167,9 @@ operator<<(std::ostream &os, const struct ur_params::serializePtr(os, *(params->phDevice)); os << ", "; - os << ".interopSemaphoreDesc = "; + os << ".pInteropSemaphoreDesc = "; - ur_params::serializePtr(os, *(params->pinteropSemaphoreDesc)); + ur_params::serializePtr(os, *(params->ppInteropSemaphoreDesc)); os << ", "; os << ".phInteropSemaphore = "; diff --git a/source/loader/layers/tracing/ur_trcddi.cpp b/source/loader/layers/tracing/ur_trcddi.cpp index f0ccc8fea9..f951d0280e 100644 --- a/source/loader/layers/tracing/ur_trcddi.cpp +++ b/source/loader/layers/tracing/ur_trcddi.cpp @@ -4802,7 +4802,7 @@ urBindlessImagesImportExternalSemaphoreOpaqueFDExp( 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_desc_t - *interopSemaphoreDesc, ///< [in] the interop semaphore descriptor + *pInteropSemaphoreDesc, ///< [in] the interop semaphore descriptor ur_exp_interop_semaphore_handle_t * phInteropSemaphore ///< [out] interop semaphore handle to the external semaphore ) { @@ -4815,13 +4815,13 @@ urBindlessImagesImportExternalSemaphoreOpaqueFDExp( } ur_bindless_images_import_external_semaphore_opaque_fd_exp_params_t params = - {&hContext, &hDevice, &interopSemaphoreDesc, &phInteropSemaphore}; + {&hContext, &hDevice, &pInteropSemaphoreDesc, &phInteropSemaphore}; uint64_t instance = context.notify_begin( UR_FUNCTION_BINDLESS_IMAGES_IMPORT_EXTERNAL_SEMAPHORE_OPAQUE_FD_EXP, "urBindlessImagesImportExternalSemaphoreOpaqueFDExp", ¶ms); ur_result_t result = pfnImportExternalSemaphoreOpaqueFDExp( - hContext, hDevice, interopSemaphoreDesc, phInteropSemaphore); + hContext, hDevice, pInteropSemaphoreDesc, phInteropSemaphore); context.notify_end( UR_FUNCTION_BINDLESS_IMAGES_IMPORT_EXTERNAL_SEMAPHORE_OPAQUE_FD_EXP, diff --git a/source/loader/layers/validation/ur_valddi.cpp b/source/loader/layers/validation/ur_valddi.cpp index a79756d755..ee7f665783 100644 --- a/source/loader/layers/validation/ur_valddi.cpp +++ b/source/loader/layers/validation/ur_valddi.cpp @@ -6092,7 +6092,7 @@ urBindlessImagesImportExternalSemaphoreOpaqueFDExp( 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_desc_t - *interopSemaphoreDesc, ///< [in] the interop semaphore descriptor + *pInteropSemaphoreDesc, ///< [in] the interop semaphore descriptor ur_exp_interop_semaphore_handle_t * phInteropSemaphore ///< [out] interop semaphore handle to the external semaphore ) { @@ -6113,7 +6113,7 @@ urBindlessImagesImportExternalSemaphoreOpaqueFDExp( return UR_RESULT_ERROR_INVALID_NULL_HANDLE; } - if (NULL == interopSemaphoreDesc) { + if (NULL == pInteropSemaphoreDesc) { return UR_RESULT_ERROR_INVALID_NULL_POINTER; } @@ -6123,7 +6123,7 @@ urBindlessImagesImportExternalSemaphoreOpaqueFDExp( } ur_result_t result = pfnImportExternalSemaphoreOpaqueFDExp( - hContext, hDevice, interopSemaphoreDesc, phInteropSemaphore); + hContext, hDevice, pInteropSemaphoreDesc, phInteropSemaphore); return result; } diff --git a/source/loader/ur_ldrddi.cpp b/source/loader/ur_ldrddi.cpp index 7ae7865d0c..ecd56c1f46 100644 --- a/source/loader/ur_ldrddi.cpp +++ b/source/loader/ur_ldrddi.cpp @@ -5858,7 +5858,7 @@ urBindlessImagesImportExternalSemaphoreOpaqueFDExp( 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_desc_t - *interopSemaphoreDesc, ///< [in] the interop semaphore descriptor + *pInteropSemaphoreDesc, ///< [in] the interop semaphore descriptor ur_exp_interop_semaphore_handle_t * phInteropSemaphore ///< [out] interop semaphore handle to the external semaphore ) { @@ -5880,7 +5880,7 @@ urBindlessImagesImportExternalSemaphoreOpaqueFDExp( // forward to device-platform result = pfnImportExternalSemaphoreOpaqueFDExp( - hContext, hDevice, interopSemaphoreDesc, phInteropSemaphore); + hContext, hDevice, pInteropSemaphoreDesc, phInteropSemaphore); if (UR_RESULT_SUCCESS != result) { return result; diff --git a/source/loader/ur_libapi.cpp b/source/loader/ur_libapi.cpp index 95077120e8..ee8914ccba 100644 --- a/source/loader/ur_libapi.cpp +++ b/source/loader/ur_libapi.cpp @@ -6427,7 +6427,7 @@ ur_result_t UR_APICALL urBindlessImagesReleaseInteropExp( /// + `NULL == hContext` /// + `NULL == hDevice` /// - ::UR_RESULT_ERROR_INVALID_NULL_POINTER -/// + `NULL == interopSemaphoreDesc` +/// + `NULL == pInteropSemaphoreDesc` /// + `NULL == phInteropSemaphore` /// - ::UR_RESULT_ERROR_INVALID_CONTEXT /// - ::UR_RESULT_ERROR_INVALID_VALUE @@ -6435,7 +6435,7 @@ ur_result_t UR_APICALL urBindlessImagesImportExternalSemaphoreOpaqueFDExp( 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_desc_t - *interopSemaphoreDesc, ///< [in] the interop semaphore descriptor + *pInteropSemaphoreDesc, ///< [in] the interop semaphore descriptor ur_exp_interop_semaphore_handle_t * phInteropSemaphore ///< [out] interop semaphore handle to the external semaphore ) try { @@ -6447,7 +6447,7 @@ ur_result_t UR_APICALL urBindlessImagesImportExternalSemaphoreOpaqueFDExp( } return pfnImportExternalSemaphoreOpaqueFDExp( - hContext, hDevice, interopSemaphoreDesc, phInteropSemaphore); + hContext, hDevice, pInteropSemaphoreDesc, phInteropSemaphore); } catch (...) { return exceptionToResult(std::current_exception()); } diff --git a/source/ur_api.cpp b/source/ur_api.cpp index da5d63e087..c5fb0d48c5 100644 --- a/source/ur_api.cpp +++ b/source/ur_api.cpp @@ -5426,7 +5426,7 @@ ur_result_t UR_APICALL urBindlessImagesReleaseInteropExp( /// + `NULL == hContext` /// + `NULL == hDevice` /// - ::UR_RESULT_ERROR_INVALID_NULL_POINTER -/// + `NULL == interopSemaphoreDesc` +/// + `NULL == pInteropSemaphoreDesc` /// + `NULL == phInteropSemaphore` /// - ::UR_RESULT_ERROR_INVALID_CONTEXT /// - ::UR_RESULT_ERROR_INVALID_VALUE @@ -5434,7 +5434,7 @@ ur_result_t UR_APICALL urBindlessImagesImportExternalSemaphoreOpaqueFDExp( 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_desc_t - *interopSemaphoreDesc, ///< [in] the interop semaphore descriptor + *pInteropSemaphoreDesc, ///< [in] the interop semaphore descriptor ur_exp_interop_semaphore_handle_t * phInteropSemaphore ///< [out] interop semaphore handle to the external semaphore ) {