mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-23 03:33:13 +08:00
fix: Update SIP kernel initialization logic
Initialize SIP kernel when shared device is being initialized instead of api-specific device. Initialize debugger when shared device is being initialized instead of during platform or driver initialization. Add missing makeResident calls for SIP kernel in heapless paths. Related-To: HSD-18038645398, HSD-18038819112 Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
6ded319b0f
commit
2f6eaf149a
@@ -429,16 +429,6 @@ TEST(PlatformInitTest, givenSingleDeviceWithNonZeroRootDeviceIndexInPassedDevice
|
||||
EXPECT_EQ(2u, platform()->getClDevice(0)->getRootDeviceIndex());
|
||||
}
|
||||
|
||||
TEST(PlatformInitTest, GivenDebuggingEnabledWhenPlatformIsInitializedThenL0DebuggerIsCreated) {
|
||||
std::vector<std::unique_ptr<Device>> devices;
|
||||
auto executionEnvironment = new MockExecutionEnvironment(defaultHwInfo.get(), false, 1);
|
||||
executionEnvironment->setDebuggingMode(NEO::DebuggingMode::online);
|
||||
devices.push_back(std::make_unique<MockDevice>(executionEnvironment, 0));
|
||||
auto status = platform()->initialize(std::move(devices));
|
||||
EXPECT_TRUE(status);
|
||||
EXPECT_NE(nullptr, platform()->getClDevice(0)->getDevice().getL0Debugger());
|
||||
}
|
||||
|
||||
TEST(PlatformInitTest, GivenPreferredPlatformNameWhenPlatformIsInitializedThenOverridePlatformName) {
|
||||
std::vector<std::unique_ptr<Device>> devices;
|
||||
auto executionEnvironment = new MockExecutionEnvironment(defaultHwInfo.get(), false, 1);
|
||||
|
||||
Reference in New Issue
Block a user