mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-29 09:03:14 +08:00
Change-Id: I95750b90748dd65310fa72b030ea3ab2f72d3f24 Signed-off: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
30 lines
599 B
C++
30 lines
599 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_flag_t) = 0;
|
|
virtual void initialize(bool *result) = 0;
|
|
static Driver *get() { return driver; }
|
|
|
|
protected:
|
|
static Driver *driver;
|
|
};
|
|
|
|
ze_result_t init(_ze_init_flag_t);
|
|
ze_result_t driverHandleGet(uint32_t *pCount, ze_driver_handle_t *phDrivers);
|
|
|
|
extern uint32_t driverCount;
|
|
extern std::unique_ptr<_ze_driver_handle_t> GlobalDriver;
|
|
} // namespace L0
|