| 20 | static ObjectMap<ze_event_handle_t, std::shared_ptr<ZeKernelCommand>> g_event_to_cmd; |
| 21 | |
| 22 | ze_result_t XCommandQueueCreate(ze_context_handle_t hContext, ze_device_handle_t hDevice, const ze_command_queue_desc_t *desc, ze_command_queue_handle_t *phCommandQueue) |
| 23 | { |
| 24 | ze_result_t res = Driver::CommandQueueCreate(hContext, hDevice, desc, phCommandQueue); |
| 25 | if (res != ZE_RESULT_SUCCESS) return res; |
| 26 | XQueueManager::AutoCreate([&](HwQueueHandle *hwq) { return ZeQueueCreate(hwq, hDevice, *phCommandQueue); }); |
| 27 | XDEBG("XCommandQueueCreate(cmdq: %p, dev: %p)", *phCommandQueue, hDevice); |
| 28 | return res; |
| 29 | } |
| 30 | |
| 31 | ze_result_t XCommandQueueDestroy(ze_command_queue_handle_t hCommandQueue) |
| 32 | { |
nothing calls this directly
no test coverage detected