mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 06:49:52 +08:00
Remove platformDevices from runtime
Related-To: NEO-4207 Change-Id: I70781b44e7d14360a581808049baf8b61fd1b4e4 Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
2e6c9dbb80
commit
66754c4849
@@ -13,6 +13,7 @@
|
||||
#include "unit_tests/helpers/variable_backup.h"
|
||||
#include "unit_tests/mocks/mock_builtins.h"
|
||||
#include "unit_tests/mocks/mock_device.h"
|
||||
#include "unit_tests/mocks/mock_execution_environment.h"
|
||||
|
||||
#include "driver_version.h"
|
||||
#include "gtest/gtest.h"
|
||||
@@ -988,7 +989,7 @@ TEST_F(DeviceGetCapsTest, GivenFlagEnabled64kbPagesWhenSetThenReturnCorrectValue
|
||||
DebugManagerStateRestore dbgRestore;
|
||||
VariableBackup<bool> OsEnabled64kbPagesBackup(&OSInterface::osEnabled64kbPages);
|
||||
|
||||
ExecutionEnvironment executionEnvironment;
|
||||
MockExecutionEnvironment executionEnvironment;
|
||||
executionEnvironment.prepareRootDeviceEnvironments(1);
|
||||
auto &capabilityTable = executionEnvironment.getMutableHardwareInfo()->capabilityTable;
|
||||
std::unique_ptr<MemoryManager> memoryManager;
|
||||
|
||||
@@ -6,7 +6,6 @@
|
||||
*/
|
||||
|
||||
#include "core/helpers/hw_helper.h"
|
||||
#include "core/helpers/options.h"
|
||||
#include "core/indirect_heap/indirect_heap.h"
|
||||
#include "core/os_interface/os_context.h"
|
||||
#include "core/unit_tests/helpers/debug_manager_state_restore.h"
|
||||
@@ -20,6 +19,7 @@
|
||||
#include "unit_tests/libult/ult_command_stream_receiver.h"
|
||||
#include "unit_tests/mocks/mock_context.h"
|
||||
#include "unit_tests/mocks/mock_csr.h"
|
||||
#include "unit_tests/mocks/mock_execution_environment.h"
|
||||
|
||||
#include <memory>
|
||||
|
||||
@@ -279,7 +279,7 @@ HWTEST_F(DeviceHwTest, givenHwHelperInputWhenInitializingCsrThenCreatePageTableM
|
||||
localHwInfo.capabilityTable.ftrRenderCompressedBuffers = false;
|
||||
localHwInfo.capabilityTable.ftrRenderCompressedImages = false;
|
||||
|
||||
ExecutionEnvironment executionEnvironment;
|
||||
MockExecutionEnvironment executionEnvironment;
|
||||
executionEnvironment.prepareRootDeviceEnvironments(3);
|
||||
executionEnvironment.incRefInternal();
|
||||
executionEnvironment.initializeMemoryManager();
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2018-2019 Intel Corporation
|
||||
* Copyright (C) 2018-2020 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
@@ -8,7 +8,6 @@
|
||||
#include "core/debug_settings/debug_settings_manager.h"
|
||||
#include "core/helpers/basic_math.h"
|
||||
#include "core/helpers/hw_info.h"
|
||||
#include "core/helpers/options.h"
|
||||
#include "core/unit_tests/helpers/debug_manager_state_restore.h"
|
||||
#include "runtime/memory_manager/os_agnostic_memory_manager.h"
|
||||
#include "test.h"
|
||||
|
||||
@@ -78,7 +78,7 @@ TEST(SubDevicesTest, givenDeviceWithSubDevicesWhenSubDeviceRefcountsAreChangedTh
|
||||
TEST(SubDevicesTest, givenDeviceWithSubDevicesWhenSubDeviceCreationFailThenWholeDeviceIsDestroyed) {
|
||||
DebugManagerStateRestore restorer;
|
||||
DebugManager.flags.CreateMultipleSubDevices.set(10);
|
||||
ExecutionEnvironment executionEnvironment;
|
||||
MockExecutionEnvironment executionEnvironment;
|
||||
executionEnvironment.prepareRootDeviceEnvironments(1);
|
||||
executionEnvironment.incRefInternal();
|
||||
executionEnvironment.memoryManager.reset(new FailMemoryManager(10, executionEnvironment));
|
||||
|
||||
Reference in New Issue
Block a user