mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +08:00
Add -all on the begining of extensionsList
-all resets all compiler settings. Change-Id: I8eec4beffa27673918d741f4b0d9d894f40a2cee
This commit is contained in:
@ -82,7 +82,7 @@ TEST_F(PlatformTest, PlatformGetCompilerExtensions) {
|
||||
pPlatform->initialize(numPlatformDevices, platformDevices);
|
||||
compilerExtensions = pPlatform->getCompilerExtensions();
|
||||
|
||||
EXPECT_THAT(compilerExtensions, ::testing::HasSubstr(std::string("-cl-ext=+cl")));
|
||||
EXPECT_THAT(compilerExtensions, ::testing::HasSubstr(std::string("-cl-ext=-all,+cl")));
|
||||
if (std::string(pPlatform->getDevice(0)->getDeviceInfo().clVersion).find("OpenCL 2.1") != std::string::npos) {
|
||||
EXPECT_THAT(compilerExtensions, ::testing::HasSubstr(std::string("cl_khr_subgroups")));
|
||||
}
|
||||
|
@ -695,7 +695,7 @@ TEST_P(ProgramFromSourceTest, CreateWithSource_Build) {
|
||||
// EXPECT_EQ(0, retVal);
|
||||
retVal = pProgram->build(0, nullptr, nullptr, nullptr, nullptr, false);
|
||||
EXPECT_EQ(CL_SUCCESS, retVal);
|
||||
EXPECT_THAT(pProgram->getInternalOptions(), ::testing::HasSubstr(std::string("-cl-ext=+cl")));
|
||||
EXPECT_THAT(pProgram->getInternalOptions(), ::testing::HasSubstr(std::string("-cl-ext=-all,+cl")));
|
||||
|
||||
// get build log
|
||||
size_t param_value_size_ret = 0u;
|
||||
|
Reference in New Issue
Block a user