Skip to content

Commit

Permalink
Check for unsupported on CreateWithNative as well as GetNative.
Browse files Browse the repository at this point in the history
  • Loading branch information
aarongreig committed Jan 21, 2025
1 parent c8b8a3e commit 1bf1809
Showing 1 changed file with 27 additions and 27 deletions.
54 changes: 27 additions & 27 deletions include/ur_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -1615,9 +1615,9 @@ typedef struct ur_platform_native_properties_t {
ur_structure_type_t stype;
/// [in,out][optional] pointer to extension-specific structure
void *pNext;
/// [in] Indicates UR owns the native handle or if it came from an
/// interoperability operation in the application that asked to not
/// transfer the ownership to the unified-runtime.
/// [in] If true then ownership of the native handle is tranferred to
/// the resultant object. This means the object will be responsible for
/// releasing the native resources at the end of its lifetime.
bool isNativeHandleOwned;

} ur_platform_native_properties_t;
Expand Down Expand Up @@ -2696,9 +2696,9 @@ typedef struct ur_device_native_properties_t {
ur_structure_type_t stype;
/// [in,out][optional] pointer to extension-specific structure
void *pNext;
/// [in] Indicates UR owns the native handle or if it came from an
/// interoperability operation in the application that asked to not
/// transfer the ownership to the unified-runtime.
/// [in] If true then ownership of the native handle is tranferred to
/// the resultant object. This means the object will be responsible for
/// releasing the native resources at the end of its lifetime.
bool isNativeHandleOwned;

} ur_device_native_properties_t;
Expand Down Expand Up @@ -3076,9 +3076,9 @@ typedef struct ur_context_native_properties_t {
ur_structure_type_t stype;
/// [in,out][optional] pointer to extension-specific structure
void *pNext;
/// [in] Indicates UR owns the native handle or if it came from an
/// interoperability operation in the application that asked to not transfer
/// the ownership to the unified-runtime.
/// [in] If true then ownership of the native handle is tranferred to
/// the resultant object. This means the object will be responsible for
/// releasing the native resources at the end of its lifetime.
bool isNativeHandleOwned;

} ur_context_native_properties_t;
Expand Down Expand Up @@ -3697,9 +3697,9 @@ typedef struct ur_mem_native_properties_t {
ur_structure_type_t stype;
/// [in,out][optional] pointer to extension-specific structure
void *pNext;
/// [in] Indicates UR owns the native handle or if it came from an
/// interoperability operation in the application that asked to not
/// transfer the ownership to the unified-runtime.
/// [in] If true then ownership of the native handle is tranferred to
/// the resultant object. This means the object will be responsible for
/// releasing the native resources at the end of its lifetime.
bool isNativeHandleOwned;

} ur_mem_native_properties_t;
Expand Down Expand Up @@ -4103,9 +4103,9 @@ typedef struct ur_sampler_native_properties_t {
ur_structure_type_t stype;
/// [in,out][optional] pointer to extension-specific structure
void *pNext;
/// [in] Indicates UR owns the native handle or if it came from an
/// interoperability operation in the application that asked to not
/// transfer the ownership to the unified-runtime.
/// [in] If true then ownership of the native handle is tranferred to
/// the resultant object. This means the object will be responsible for
/// releasing the native resources at the end of its lifetime.
bool isNativeHandleOwned;

} ur_sampler_native_properties_t;
Expand Down Expand Up @@ -5811,9 +5811,9 @@ typedef struct ur_program_native_properties_t {
ur_structure_type_t stype;
/// [in,out][optional] pointer to extension-specific structure
void *pNext;
/// [in] Indicates UR owns the native handle or if it came from an
/// interoperability operation in the application that asked to not
/// transfer the ownership to the unified-runtime.
/// [in] If true then ownership of the native handle is tranferred to
/// the resultant object. This means the object will be responsible for
/// releasing the native resources at the end of its lifetime.
bool isNativeHandleOwned;

} ur_program_native_properties_t;
Expand Down Expand Up @@ -6480,9 +6480,9 @@ typedef struct ur_kernel_native_properties_t {
ur_structure_type_t stype;
/// [in,out][optional] pointer to extension-specific structure
void *pNext;
/// [in] Indicates UR owns the native handle or if it came from an
/// interoperability operation in the application that asked to not transfer
/// the ownership to the unified-runtime.
/// [in] If true then ownership of the native handle is tranferred to
/// the resultant object. This means the object will be responsible for
/// releasing the native resources at the end of its lifetime.
bool isNativeHandleOwned;

} ur_kernel_native_properties_t;
Expand Down Expand Up @@ -6875,9 +6875,9 @@ typedef struct ur_queue_native_properties_t {
ur_structure_type_t stype;
/// [in,out][optional] pointer to extension-specific structure
void *pNext;
/// [in] Indicates UR owns the native handle or if it came from an
/// interoperability operation in the application that asked to not transfer
/// the ownership to the unified-runtime.
/// [in] If true then ownership of the native handle is tranferred to
/// the resultant object. This means the object will be responsible for
/// releasing the native resources at the end of its lifetime.
bool isNativeHandleOwned;

} ur_queue_native_properties_t;
Expand Down Expand Up @@ -7301,9 +7301,9 @@ typedef struct ur_event_native_properties_t {
ur_structure_type_t stype;
/// [in,out][optional] pointer to extension-specific structure
void *pNext;
/// [in] Indicates UR owns the native handle or if it came from an
/// interoperability operation in the application that asked to not transfer
/// the ownership to the unified-runtime.
/// [in] If true then ownership of the native handle is tranferred to
/// the resultant object. This means the object will be responsible for
/// releasing the native resources at the end of its lifetime.
bool isNativeHandleOwned;

} ur_event_native_properties_t;
Expand Down

0 comments on commit 1bf1809

Please sign in to comment.