mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-04 23:56:39 +08:00
Reorganization directory structure [2/n]
Change-Id: I47962d17d755e80dcd9476e1ed75560f433f6115
This commit is contained in:
committed by
Jaroslaw Chodor
parent
d015d3633f
commit
e8852a68c4
21
opencl/test/unit_test/mocks/mock_platform.cpp
Normal file
21
opencl/test/unit_test/mocks/mock_platform.cpp
Normal file
@@ -0,0 +1,21 @@
|
||||
/*
|
||||
* Copyright (C) 2020 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
*/
|
||||
|
||||
#include "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
|
||||
Reference in New Issue
Block a user