@@ -2399,16 +2399,19 @@ typedef struct ur_context_native_properties_t {
23992399/// - ::UR_RESULT_ERROR_UNINITIALIZED
24002400/// - ::UR_RESULT_ERROR_DEVICE_LOST
24012401/// - ::UR_RESULT_ERROR_ADAPTER_SPECIFIC
2402+ /// - ::UR_RESULT_ERROR_INVALID_NULL_HANDLE
2403+ /// + `NULL == hAdapter`
24022404/// - ::UR_RESULT_ERROR_INVALID_NULL_POINTER
2403- /// + `NULL == phDevices`
24042405/// + `NULL == phContext`
24052406/// - ::UR_RESULT_ERROR_UNSUPPORTED_FEATURE
24062407/// + If the adapter has no underlying equivalent handle.
24072408UR_APIEXPORT ur_result_t UR_APICALL
24082409urContextCreateWithNativeHandle(
24092410 ur_native_handle_t hNativeContext, ///< [in][nocheck] the native handle of the context.
2411+ ur_adapter_handle_t hAdapter, ///< [in] handle of the adapter that owns the native handle
24102412 uint32_t numDevices, ///< [in] number of devices associated with the context
2411- const ur_device_handle_t *phDevices, ///< [in][range(0, numDevices)] list of devices associated with the context
2413+ const ur_device_handle_t *phDevices, ///< [in][optional][range(0, numDevices)] list of devices associated with
2414+ ///< the context
24122415 const ur_context_native_properties_t *pProperties, ///< [in][optional] pointer to native context properties struct
24132416 ur_context_handle_t *phContext ///< [out] pointer to the handle of the context object created.
24142417);
@@ -5623,7 +5626,6 @@ typedef struct ur_queue_native_properties_t {
56235626/// - ::UR_RESULT_ERROR_ADAPTER_SPECIFIC
56245627/// - ::UR_RESULT_ERROR_INVALID_NULL_HANDLE
56255628/// + `NULL == hContext`
5626- /// + `NULL == hDevice`
56275629/// - ::UR_RESULT_ERROR_INVALID_NULL_POINTER
56285630/// + `NULL == phQueue`
56295631/// - ::UR_RESULT_ERROR_UNSUPPORTED_FEATURE
@@ -5632,7 +5634,7 @@ UR_APIEXPORT ur_result_t UR_APICALL
56325634urQueueCreateWithNativeHandle(
56335635 ur_native_handle_t hNativeQueue, ///< [in][nocheck] the native handle of the queue.
56345636 ur_context_handle_t hContext, ///< [in] handle of the context object
5635- ur_device_handle_t hDevice, ///< [in] handle of the device object
5637+ ur_device_handle_t hDevice, ///< [in][optional] handle of the device object
56365638 const ur_queue_native_properties_t *pProperties, ///< [in][optional] pointer to native queue properties struct
56375639 ur_queue_handle_t *phQueue ///< [out] pointer to the handle of the queue object created.
56385640);
@@ -9820,6 +9822,7 @@ typedef struct ur_context_get_native_handle_params_t {
98209822/// allowing the callback the ability to modify the parameter's value
98219823typedef struct ur_context_create_with_native_handle_params_t {
98229824 ur_native_handle_t *phNativeContext;
9825+ ur_adapter_handle_t *phAdapter;
98239826 uint32_t *pnumDevices;
98249827 const ur_device_handle_t **pphDevices;
98259828 const ur_context_native_properties_t **ppProperties;
0 commit comments