2017-12-21 07:45:38 +08:00
|
|
|
/*
|
2020-02-22 16:28:27 +08:00
|
|
|
* Copyright (C) 2017-2020 Intel Corporation
|
2019-02-27 18:39:32 +08:00
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: MIT
|
|
|
|
*
|
|
|
|
*/
|
2017-12-21 07:45:38 +08:00
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2020-02-23 05:50:57 +08:00
|
|
|
#include "opencl/source/device/driver_info.h"
|
2019-02-27 18:39:32 +08:00
|
|
|
|
2017-12-21 07:45:38 +08:00
|
|
|
#include <memory>
|
|
|
|
#include <string>
|
|
|
|
|
2019-03-26 18:59:46 +08:00
|
|
|
namespace NEO {
|
2017-12-21 07:45:38 +08:00
|
|
|
|
|
|
|
class SettingsReader;
|
|
|
|
|
|
|
|
class DriverInfoWindows : public DriverInfo {
|
|
|
|
public:
|
|
|
|
std::string getDeviceName(std::string defaultName);
|
|
|
|
std::string getVersion(std::string defaultVersion);
|
|
|
|
|
|
|
|
void setRegistryReader(SettingsReader *reader);
|
|
|
|
std::string trimRegistryKey(std::string key);
|
|
|
|
|
|
|
|
protected:
|
|
|
|
std::unique_ptr<SettingsReader> registryReader;
|
|
|
|
};
|
|
|
|
|
2019-03-26 18:59:46 +08:00
|
|
|
} // namespace NEO
|