mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +08:00
Correct logic in MultiRootDeviceFixture
Related-To: NEO-4589 Signed-off-by: Krzysztof Gibala <krzysztof.gibala@intel.com>
This commit is contained in:

committed by
Compute-Runtime-Automation

parent
4989cf308d
commit
baea633bdd
@ -7,14 +7,21 @@
|
||||
|
||||
#include "opencl/test/unit_test/mocks/ult_cl_device_factory.h"
|
||||
|
||||
#include "shared/source/os_interface/device_factory.h"
|
||||
#include "shared/test/unit_test/helpers/ult_hw_config.h"
|
||||
#include "shared/test/unit_test/mocks/ult_device_factory.h"
|
||||
|
||||
#include "opencl/source/command_stream/create_command_stream_impl.h"
|
||||
#include "opencl/test/unit_test/mocks/mock_cl_device.h"
|
||||
#include "opencl/test/unit_test/mocks/mock_memory_manager.h"
|
||||
|
||||
using namespace NEO;
|
||||
|
||||
UltClDeviceFactory::UltClDeviceFactory(uint32_t rootDevicesCount, uint32_t subDevicesCount) {
|
||||
|
||||
auto executionEnvironment = new ClExecutionEnvironment();
|
||||
UltDeviceFactory::prepareDeviceEnvironments(*executionEnvironment, rootDevicesCount);
|
||||
|
||||
pUltDeviceFactory = std::make_unique<UltDeviceFactory>(rootDevicesCount, subDevicesCount, *executionEnvironment);
|
||||
|
||||
for (auto &pRootDevice : pUltDeviceFactory->rootDevices) {
|
||||
|
@ -11,7 +11,10 @@
|
||||
#include <vector>
|
||||
|
||||
namespace NEO {
|
||||
class ExecutionEnvironment;
|
||||
class ClDevice;
|
||||
class MemoryManager;
|
||||
class MockMemoryManager;
|
||||
class MockClDevice;
|
||||
struct UltDeviceFactory;
|
||||
|
||||
|
Reference in New Issue
Block a user