File: driver_discovery.h

package info (click to toggle)
level-zero 1.26.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 13,468 kB
  • sloc: cpp: 130,327; ansic: 16,197; python: 9,824; makefile: 4
file content (27 lines) | stat: -rw-r--r-- 598 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/*
 *
 * Copyright (C) 2020 Intel Corporation
 *
 * SPDX-License-Identifier: MIT
 *
 */

#pragma once

#include <string>
#include <vector>
#include "ze_loader_internal.h"

namespace loader {

struct DriverLibraryPath {
    std::string path;
    bool customDriver;
    zel_driver_type_t driverType = ZEL_DRIVER_TYPE_FORCE_UINT32;
    DriverLibraryPath(const std::string& p, bool isCustom = false, zel_driver_type_t type = ZEL_DRIVER_TYPE_FORCE_UINT32)
        : path(p), customDriver(isCustom), driverType(type) {}
};

std::vector<DriverLibraryPath> discoverEnabledDrivers();

} // namespace loader