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:
@ -107,7 +107,7 @@ std::string Platform::getCompilerExtensions(const char *deviceExtensions) {
|
|||||||
while ((pos = extensionsList.find(" ", pos)) != std::string::npos) {
|
while ((pos = extensionsList.find(" ", pos)) != std::string::npos) {
|
||||||
extensionsList.replace(pos, 1, ",+");
|
extensionsList.replace(pos, 1, ",+");
|
||||||
}
|
}
|
||||||
extensionsList = "-cl-ext=+" + extensionsList;
|
extensionsList = "-cl-ext=-all,+" + extensionsList;
|
||||||
return extensionsList;
|
return extensionsList;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -82,7 +82,7 @@ TEST_F(PlatformTest, PlatformGetCompilerExtensions) {
|
|||||||
pPlatform->initialize(numPlatformDevices, platformDevices);
|
pPlatform->initialize(numPlatformDevices, platformDevices);
|
||||||
compilerExtensions = pPlatform->getCompilerExtensions();
|
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) {
|
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")));
|
EXPECT_THAT(compilerExtensions, ::testing::HasSubstr(std::string("cl_khr_subgroups")));
|
||||||
}
|
}
|
||||||
|
@ -695,7 +695,7 @@ TEST_P(ProgramFromSourceTest, CreateWithSource_Build) {
|
|||||||
// EXPECT_EQ(0, retVal);
|
// EXPECT_EQ(0, retVal);
|
||||||
retVal = pProgram->build(0, nullptr, nullptr, nullptr, nullptr, false);
|
retVal = pProgram->build(0, nullptr, nullptr, nullptr, nullptr, false);
|
||||||
EXPECT_EQ(CL_SUCCESS, retVal);
|
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
|
// get build log
|
||||||
size_t param_value_size_ret = 0u;
|
size_t param_value_size_ret = 0u;
|
||||||
|
Reference in New Issue
Block a user