Rename platformDevices -> defaultHwInfo [1/n]

create new variable defaultHwInfo as a std::unqiue_ptr<HardwareInfo>
replace platformDevices with defaultHwInfo in opencl/test/unit_test/api

Related-To: NEO-4499

Change-Id: I75b924e5b8a3a18f4ff9fdc3e598192569e102f7
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
Mateusz Jablonski
2020-03-23 10:23:43 +01:00
committed by sys_ocldev
parent 7bd910c94b
commit 6082cb3aeb
20 changed files with 80 additions and 87 deletions

View File

@@ -7,9 +7,10 @@
#pragma once
#include <cstddef>
#include <memory>
namespace NEO {
struct HardwareInfo;
extern const HardwareInfo **platformDevices;
extern std::unique_ptr<HardwareInfo> defaultHwInfo;
extern HardwareInfo **platformDevices;
} // namespace NEO

View File

@@ -5,13 +5,10 @@
*
*/
#include "shared/source/helpers/array_count.h"
#include "shared/source/helpers/hw_cmds.h"
#include "shared/test/unit_test/helpers/default_hw_info.h"
namespace NEO {
static const HardwareInfo *DefaultPlatformDevices[] = {
&DEFAULT_TEST_PLATFORM::hwInfo,
};
const HardwareInfo **platformDevices = DefaultPlatformDevices;
std::unique_ptr<HardwareInfo> defaultHwInfo;
HardwareInfo **platformDevices = nullptr;
} // namespace NEO