mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-29 09:03:14 +08:00
Change-Id: I1419231a721fab210e166d26a264cae04d661dcd Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com> Signed-off-by: macabral <matias.a.cabral@intel.com> Signed-off-by: davidoli <david.olien@intel.com> Signed-off-by: Aravind Gopalakrishnan <Aravind.Gopalakrishnan@intel.com> Signed-off-by: Spruit, Neil R <neil.r.spruit@intel.com> Signed-off-by: Latif, Raiyan <raiyan.latif@intel.com> Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
31 lines
635 B
C++
31 lines
635 B
C++
/*
|
|
* Copyright (C) 2019-2020 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <level_zero/ze_api.h>
|
|
|
|
#include <memory>
|
|
|
|
namespace L0 {
|
|
struct Driver {
|
|
virtual ze_result_t driverInit(ze_init_flags_t flags) = 0;
|
|
virtual void initialize(ze_result_t *result) = 0;
|
|
static Driver *get() { return driver; }
|
|
virtual ~Driver() = default;
|
|
|
|
protected:
|
|
static Driver *driver;
|
|
};
|
|
|
|
ze_result_t init(ze_init_flags_t);
|
|
ze_result_t driverHandleGet(uint32_t *pCount, ze_driver_handle_t *phDrivers);
|
|
|
|
extern uint32_t driverCount;
|
|
extern _ze_driver_handle_t *GlobalDriverHandle;
|
|
} // namespace L0
|