mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +08:00

Related-To: NEO-4208 Change-Id: I5e47f3dd75cf18d731a9353c8939ca3b6a99b4de Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
22 lines
496 B
C++
22 lines
496 B
C++
/*
|
|
* Copyright (C) 2020 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#include "unit_tests/mocks/mock_platform.h"
|
|
|
|
#include "core/device/device.h"
|
|
|
|
namespace NEO {
|
|
|
|
bool initPlatform() {
|
|
auto pPlatform = platform();
|
|
return pPlatform->initialize(DeviceFactory::createDevices(*pPlatform->peekExecutionEnvironment()));
|
|
}
|
|
bool MockPlatform::initializeWithNewDevices() {
|
|
return Platform::initialize(DeviceFactory::createDevices(executionEnvironment));
|
|
}
|
|
} // namespace NEO
|