mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-05 09:09:04 +08:00
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:
committed by
sys_ocldev
parent
7bd910c94b
commit
6082cb3aeb
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user