mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-05 18:06:32 +08:00
Refactor Sip Kernel usage
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
da779d067f
commit
8198a739c8
@@ -440,12 +440,10 @@ int main(int argc, char **argv) {
|
||||
GmmInterface::initialize(nullptr, nullptr);
|
||||
}
|
||||
|
||||
GlobalMockSipProgram::initSipProgramInfo();
|
||||
NEO::MockSipData::mockSipKernel.reset(new NEO::MockSipKernel());
|
||||
|
||||
retVal = RUN_ALL_TESTS();
|
||||
|
||||
GlobalMockSipProgram::shutDownSipProgramInfo();
|
||||
delete platformsImpl;
|
||||
|
||||
return retVal;
|
||||
|
||||
@@ -124,6 +124,7 @@ class MockCompilerInterface : public CompilerInterface {
|
||||
}
|
||||
|
||||
static std::vector<char> getDummyGenBinary();
|
||||
static void releaseDummyGenBinary();
|
||||
|
||||
void (*lockListener)(MockCompilerInterface &compInt) = nullptr;
|
||||
void *lockListenerData = nullptr;
|
||||
|
||||
@@ -113,7 +113,6 @@ HWTEST_P(PreemptionHwTest, GivenPreemptionModeIsNotChangingWhenGettingRequiredCm
|
||||
{
|
||||
auto builtIns = new MockBuiltins();
|
||||
|
||||
builtIns->overrideSipKernel(std::unique_ptr<NEO::SipKernel>(new NEO::SipKernel{SipKernelType::Csr, GlobalMockSipProgram::getSipProgramInfoWithCustomBinary()}));
|
||||
mockDevice->getExecutionEnvironment()->rootDeviceEnvironments[0]->builtins.reset(builtIns);
|
||||
PreemptionHelper::programCmdStream<FamilyType>(cmdStream, mode, mode, nullptr);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user