2020-02-11 11:39:25 +01:00
|
|
|
/*
|
|
|
|
|
* Copyright (C) 2020 Intel Corporation
|
|
|
|
|
*
|
|
|
|
|
* SPDX-License-Identifier: MIT
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
|
2020-02-23 15:20:22 +01:00
|
|
|
#include "opencl/test/unit_test/mocks/mock_platform.h"
|
2020-02-14 17:36:30 +01:00
|
|
|
|
2020-02-23 18:46:50 +01:00
|
|
|
#include "device/device.h"
|
2020-02-14 17:36:30 +01:00
|
|
|
|
2020-02-11 11:39:25 +01:00
|
|
|
namespace NEO {
|
|
|
|
|
|
|
|
|
|
bool initPlatform() {
|
|
|
|
|
auto pPlatform = platform();
|
2020-02-14 17:36:30 +01:00
|
|
|
return pPlatform->initialize(DeviceFactory::createDevices(*pPlatform->peekExecutionEnvironment()));
|
|
|
|
|
}
|
|
|
|
|
bool MockPlatform::initializeWithNewDevices() {
|
|
|
|
|
return Platform::initialize(DeviceFactory::createDevices(executionEnvironment));
|
2020-02-11 11:39:25 +01:00
|
|
|
}
|
|
|
|
|
} // namespace NEO
|