@@ -2401,16 +2401,19 @@ typedef struct ur_context_native_properties_t {
24012401/// - ::UR_RESULT_ERROR_UNINITIALIZED
24022402/// - ::UR_RESULT_ERROR_DEVICE_LOST
24032403/// - ::UR_RESULT_ERROR_ADAPTER_SPECIFIC
2404+ /// - ::UR_RESULT_ERROR_INVALID_NULL_HANDLE
2405+ /// + `NULL == hAdapter`
24042406/// - ::UR_RESULT_ERROR_INVALID_NULL_POINTER
2405- /// + `NULL == phDevices`
24062407/// + `NULL == phContext`
24072408/// - ::UR_RESULT_ERROR_UNSUPPORTED_FEATURE
24082409/// + If the adapter has no underlying equivalent handle.
24092410UR_APIEXPORT ur_result_t UR_APICALL
24102411urContextCreateWithNativeHandle(
24112412 ur_native_handle_t hNativeContext, ///< [in][nocheck] the native handle of the context.
2413+ ur_adapter_handle_t hAdapter, ///< [in] handle of the adapter that owns the native handle
24122414 uint32_t numDevices, ///< [in] number of devices associated with the context
2413- const ur_device_handle_t *phDevices, ///< [in][range(0, numDevices)] list of devices associated with the context
2415+ const ur_device_handle_t *phDevices, ///< [in][optional][range(0, numDevices)] list of devices associated with
2416+ ///< the context
24142417 const ur_context_native_properties_t *pProperties, ///< [in][optional] pointer to native context properties struct
24152418 ur_context_handle_t *phContext ///< [out] pointer to the handle of the context object created.
24162419);
@@ -5627,7 +5630,6 @@ typedef struct ur_queue_native_properties_t {
56275630/// - ::UR_RESULT_ERROR_ADAPTER_SPECIFIC
56285631/// - ::UR_RESULT_ERROR_INVALID_NULL_HANDLE
56295632/// + `NULL == hContext`
5630- /// + `NULL == hDevice`
56315633/// - ::UR_RESULT_ERROR_INVALID_NULL_POINTER
56325634/// + `NULL == phQueue`
56335635/// - ::UR_RESULT_ERROR_UNSUPPORTED_FEATURE
@@ -5636,7 +5638,7 @@ UR_APIEXPORT ur_result_t UR_APICALL
56365638urQueueCreateWithNativeHandle(
56375639 ur_native_handle_t hNativeQueue, ///< [in][nocheck] the native handle of the queue.
56385640 ur_context_handle_t hContext, ///< [in] handle of the context object
5639- ur_device_handle_t hDevice, ///< [in] handle of the device object
5641+ ur_device_handle_t hDevice, ///< [in][optional] handle of the device object
56405642 const ur_queue_native_properties_t *pProperties, ///< [in][optional] pointer to native queue properties struct
56415643 ur_queue_handle_t *phQueue ///< [out] pointer to the handle of the queue object created.
56425644);
@@ -9824,6 +9826,7 @@ typedef struct ur_context_get_native_handle_params_t {
98249826/// allowing the callback the ability to modify the parameter's value
98259827typedef struct ur_context_create_with_native_handle_params_t {
98269828 ur_native_handle_t *phNativeContext;
9829+ ur_adapter_handle_t *phAdapter;
98279830 uint32_t *pnumDevices;
98289831 const ur_device_handle_t **pphDevices;
98299832 const ur_context_native_properties_t **ppProperties;
0 commit comments