2020-02-07 19:15:46 +08:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2020 Intel Corporation
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: MIT
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
2020-02-24 05:44:01 +08:00
|
|
|
#include "shared/source/execution_environment/execution_environment.h"
|
2020-02-24 17:22:30 +08:00
|
|
|
|
2020-02-23 05:50:57 +08:00
|
|
|
#include "opencl/source/platform/platform.h"
|
2020-02-15 00:36:30 +08:00
|
|
|
|
2020-02-07 19:15:46 +08:00
|
|
|
namespace NEO {
|
|
|
|
|
|
|
|
class MockPlatform : public Platform {
|
|
|
|
public:
|
|
|
|
using Platform::fillGlobalDispatchTable;
|
2020-02-11 18:39:25 +08:00
|
|
|
MockPlatform() : MockPlatform(*(new ExecutionEnvironment())) {}
|
|
|
|
MockPlatform(ExecutionEnvironment &executionEnvironment) : Platform(executionEnvironment) {}
|
2020-02-15 00:36:30 +08:00
|
|
|
bool initializeWithNewDevices();
|
2020-02-07 19:15:46 +08:00
|
|
|
};
|
|
|
|
|
2020-03-17 21:25:44 +08:00
|
|
|
Platform *platform();
|
|
|
|
|
|
|
|
Platform *constructPlatform();
|
|
|
|
|
2020-02-11 18:39:25 +08:00
|
|
|
bool initPlatform();
|
2020-02-07 19:15:46 +08:00
|
|
|
} // namespace NEO
|