mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-30 01:35:20 +08:00
refactor: remove not needed code
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
167ca6e50c
commit
c75d9d30b0
@@ -700,32 +700,6 @@ TEST_F(MinimumProgramFixture, givenEmptyAilWhenCreateProgramWithSourcesThenSourc
|
||||
pProgram->release();
|
||||
}
|
||||
|
||||
TEST_F(MinimumProgramFixture, givenApplicationContextMarkedAsNonZebinWhenBuildingProgramThenInternalOptionsShouldContainDisableZebinOption) {
|
||||
const char *kernelSources[] = {"some source code"};
|
||||
size_t knownSourceSize = strlen(kernelSources[0]);
|
||||
|
||||
auto cip = new MockCompilerInterfaceCaptureBuildOptions();
|
||||
auto pDevice = pContext->getDevice(0);
|
||||
pDevice->getExecutionEnvironment()->rootDeviceEnvironments[pDevice->getRootDeviceIndex()]->compilerInterface.reset(cip);
|
||||
|
||||
MockProgram *pProgram = nullptr;
|
||||
pContext->setContextAsNonZebin();
|
||||
pProgram = Program::create<SucceedingGenBinaryProgram>(
|
||||
pContext,
|
||||
1,
|
||||
kernelSources,
|
||||
&knownSourceSize,
|
||||
retVal);
|
||||
|
||||
ASSERT_NE(nullptr, pProgram);
|
||||
ASSERT_EQ(CL_SUCCESS, retVal);
|
||||
|
||||
retVal = pProgram->build(pProgram->getDevices(), "");
|
||||
EXPECT_EQ(CL_SUCCESS, retVal);
|
||||
EXPECT_TRUE(CompilerOptions::contains(cip->buildInternalOptions, CompilerOptions::disableZebin));
|
||||
pProgram->release();
|
||||
}
|
||||
|
||||
TEST_F(ProgramFromSourceTest, GivenSpecificParamatersWhenBuildingProgramThenSuccessOrCorrectErrorCodeIsReturned) {
|
||||
zebinPtr->setAsMockCompilerLoadedFile("copybuffer.bin");
|
||||
|
||||
@@ -3842,4 +3816,4 @@ TEST(ProgramGenerateDefaultArgsMetadataTests, whenGeneratingDefaultMetadataForSa
|
||||
|
||||
buildInfo.kernelInfoArray.clear();
|
||||
buildInfo.unpackedDeviceBinary.release();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user