Fix multidevice support for events

Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
This commit is contained in:
Jaime Arteaga
2021-04-12 22:00:23 +00:00
committed by Compute-Runtime-Automation
parent a51ee31500
commit c540af8e5f
19 changed files with 328 additions and 175 deletions

View File

@@ -51,10 +51,6 @@ struct DriverHandle : _ze_driver_handle_t {
virtual ze_result_t getIpcMemHandle(const void *ptr, ze_ipc_mem_handle_t *pIpcHandle) = 0;
virtual ze_result_t openIpcMemHandle(ze_device_handle_t hDevice, ze_ipc_mem_handle_t handle,
ze_ipc_memory_flags_t flags, void **ptr) = 0;
virtual ze_result_t createEventPool(const ze_event_pool_desc_t *desc,
uint32_t numDevices,
ze_device_handle_t *phDevices,
ze_event_pool_handle_t *phEventPool) = 0;
virtual ze_result_t openEventPoolIpcHandle(ze_ipc_event_pool_handle_t hIpc, ze_event_pool_handle_t *phEventPool) = 0;
virtual ze_result_t checkMemoryAccessFromDevice(Device *device, const void *ptr) = 0;
virtual bool findAllocationDataForRange(const void *buffer,

View File

@@ -353,21 +353,6 @@ std::vector<NEO::SvmAllocationData *> DriverHandleImp::findAllocationsWithinRang
return allocDataArray;
}
ze_result_t DriverHandleImp::createEventPool(const ze_event_pool_desc_t *desc,
uint32_t numDevices,
ze_device_handle_t *phDevices,
ze_event_pool_handle_t *phEventPool) {
EventPool *eventPool = EventPool::create(this, numDevices, phDevices, desc);
if (eventPool == nullptr) {
return ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY;
}
*phEventPool = eventPool->toHandle();
return ZE_RESULT_SUCCESS;
}
ze_result_t DriverHandleImp::openEventPoolIpcHandle(ze_ipc_event_pool_handle_t hIpc,
ze_event_pool_handle_t *phEventPool) {
return ZE_RESULT_ERROR_UNSUPPORTED_FEATURE;

View File

@@ -51,10 +51,6 @@ struct DriverHandleImp : public DriverHandle {
ze_result_t getIpcMemHandle(const void *ptr, ze_ipc_mem_handle_t *pIpcHandle) override;
ze_result_t openIpcMemHandle(ze_device_handle_t hDevice, ze_ipc_mem_handle_t handle,
ze_ipc_memory_flags_t flags, void **ptr) override;
ze_result_t createEventPool(const ze_event_pool_desc_t *desc,
uint32_t numDevices,
ze_device_handle_t *phDevices,
ze_event_pool_handle_t *phEventPool) override;
ze_result_t openEventPoolIpcHandle(ze_ipc_event_pool_handle_t hIpc, ze_event_pool_handle_t *phEventPool) override;
ze_result_t checkMemoryAccessFromDevice(Device *device, const void *ptr) override;
NEO::SVMAllocsManager *getSvmAllocsManager() override;