|
13 | 13 | #include "ur_level_zero.hpp"
|
14 | 14 | #include "ur_level_zero_event.hpp"
|
15 | 15 | #include <ur_bindings.hpp>
|
| 16 | + |
| 17 | +UR_APIEXPORT ur_result_t UR_APICALL urEnqueueEventsWait( |
| 18 | + ur_queue_handle_t hQueue, ///< [in] handle of the queue object |
| 19 | + uint32_t numEventsInWaitList, ///< [in] size of the event wait list |
| 20 | + const ur_event_handle_t * |
| 21 | + phEventWaitList, ///< [in][optional][range(0, numEventsInWaitList)] |
| 22 | + ///< pointer to a list of events that must be complete |
| 23 | + ///< before this command can be executed. If nullptr, |
| 24 | + ///< the numEventsInWaitList must be 0, indicating that |
| 25 | + ///< all previously enqueued commands must be complete. |
| 26 | + ur_event_handle_t |
| 27 | + *phEvent ///< [in,out][optional] return an event object that identifies |
| 28 | + ///< this particular command instance. |
| 29 | +) { |
| 30 | + zePrint("[UR][L0] %s function not implemented!\n", __FUNCTION__); |
| 31 | + return UR_RESULT_ERROR_UNSUPPORTED_FEATURE; |
| 32 | +} |
| 33 | + |
| 34 | +UR_APIEXPORT ur_result_t UR_APICALL urEnqueueEventsWaitWithBarrier( |
| 35 | + ur_queue_handle_t hQueue, ///< [in] handle of the queue object |
| 36 | + uint32_t numEventsInWaitList, ///< [in] size of the event wait list |
| 37 | + const ur_event_handle_t * |
| 38 | + phEventWaitList, ///< [in][optional][range(0, numEventsInWaitList)] |
| 39 | + ///< pointer to a list of events that must be complete |
| 40 | + ///< before this command can be executed. If nullptr, |
| 41 | + ///< the numEventsInWaitList must be 0, indicating that |
| 42 | + ///< all previously enqueued commands must be complete. |
| 43 | + ur_event_handle_t |
| 44 | + *phEvent ///< [in,out][optional] return an event object that identifies |
| 45 | + ///< this particular command instance. |
| 46 | +) { |
| 47 | + zePrint("[UR][L0] %s function not implemented!\n", __FUNCTION__); |
| 48 | + return UR_RESULT_ERROR_UNSUPPORTED_FEATURE; |
| 49 | +} |
| 50 | + |
| 51 | +UR_APIEXPORT ur_result_t UR_APICALL urEventGetInfo( |
| 52 | + ur_event_handle_t hEvent, ///< [in] handle of the event object |
| 53 | + ur_event_info_t propName, ///< [in] the name of the event property to query |
| 54 | + size_t propValueSize, ///< [in] size in bytes of the event property value |
| 55 | + void *pPropValue, ///< [out][optional] value of the event property |
| 56 | + size_t |
| 57 | + *pPropValueSizeRet ///< [out][optional] bytes returned in event property |
| 58 | +); |
| 59 | + |
| 60 | +UR_APIEXPORT ur_result_t UR_APICALL urEventGetProfilingInfo( |
| 61 | + ur_event_handle_t hEvent, ///< [in] handle of the event object |
| 62 | + ur_profiling_info_t |
| 63 | + propName, ///< [in] the name of the profiling property to query |
| 64 | + size_t |
| 65 | + propValueSize, ///< [in] size in bytes of the profiling property value |
| 66 | + void *pPropValue, ///< [out][optional] value of the profiling property |
| 67 | + size_t *pPropValueSizeRet ///< [out][optional] pointer to the actual size in |
| 68 | + ///< bytes returned in propValue |
| 69 | +) { |
| 70 | + zePrint("[UR][L0] %s function not implemented!\n", __FUNCTION__); |
| 71 | + return UR_RESULT_ERROR_UNSUPPORTED_FEATURE; |
| 72 | +} |
| 73 | + |
| 74 | +UR_APIEXPORT ur_result_t UR_APICALL urEventWait( |
| 75 | + uint32_t numEvents, ///< [in] number of events in the event list |
| 76 | + const ur_event_handle_t |
| 77 | + *phEventWaitList ///< [in][range(0, numEvents)] pointer to a list of |
| 78 | + ///< events to wait for completion |
| 79 | +) { |
| 80 | + zePrint("[UR][L0] %s function not implemented!\n", __FUNCTION__); |
| 81 | + return UR_RESULT_ERROR_UNSUPPORTED_FEATURE; |
| 82 | +} |
| 83 | + |
| 84 | +UR_APIEXPORT ur_result_t UR_APICALL urEventRetain( |
| 85 | + ur_event_handle_t hEvent ///< [in] handle of the event object |
| 86 | +) { |
| 87 | + zePrint("[UR][L0] %s function not implemented!\n", __FUNCTION__); |
| 88 | + return UR_RESULT_ERROR_UNSUPPORTED_FEATURE; |
| 89 | +} |
| 90 | + |
| 91 | +UR_APIEXPORT ur_result_t UR_APICALL urEventRelease( |
| 92 | + ur_event_handle_t hEvent ///< [in] handle of the event object |
| 93 | +) { |
| 94 | + zePrint("[UR][L0] %s function not implemented!\n", __FUNCTION__); |
| 95 | + return UR_RESULT_ERROR_UNSUPPORTED_FEATURE; |
| 96 | +} |
| 97 | + |
| 98 | +UR_APIEXPORT ur_result_t UR_APICALL urEventGetNativeHandle( |
| 99 | + ur_event_handle_t hEvent, ///< [in] handle of the event. |
| 100 | + ur_native_handle_t |
| 101 | + *phNativeEvent ///< [out] a pointer to the native handle of the event. |
| 102 | +) { |
| 103 | + zePrint("[UR][L0] %s function not implemented!\n", __FUNCTION__); |
| 104 | + return UR_RESULT_ERROR_UNSUPPORTED_FEATURE; |
| 105 | +} |
| 106 | + |
| 107 | +UR_APIEXPORT ur_result_t UR_APICALL urEventCreateWithNativeHandle( |
| 108 | + ur_native_handle_t hNativeEvent, ///< [in] the native handle of the event. |
| 109 | + ur_context_handle_t hContext, ///< [in] handle of the context object |
| 110 | + ur_event_handle_t |
| 111 | + *phEvent ///< [out] pointer to the handle of the event object created. |
| 112 | +) { |
| 113 | + zePrint("[UR][L0] %s function not implemented!\n", __FUNCTION__); |
| 114 | + return UR_RESULT_ERROR_UNSUPPORTED_FEATURE; |
| 115 | +} |
| 116 | + |
| 117 | +UR_APIEXPORT ur_result_t UR_APICALL urEventSetCallback( |
| 118 | + ur_event_handle_t hEvent, ///< [in] handle of the event object |
| 119 | + ur_execution_info_t execStatus, ///< [in] execution status of the event |
| 120 | + ur_event_callback_t pfnNotify, ///< [in] execution status of the event |
| 121 | + void *pUserData ///< [in][out][optional] pointer to data to be passed to |
| 122 | + ///< callback. |
| 123 | +) { |
| 124 | + zePrint("[UR][L0] %s function not implemented!\n", __FUNCTION__); |
| 125 | + return UR_RESULT_ERROR_UNSUPPORTED_FEATURE; |
| 126 | +} |
0 commit comments