mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-10 15:12:56 +08:00
Rename OpenCL Platform Name
- Rename "Intel(R) OpenCL HD Graphics" -> "Intel(R) OpenCL Graphics" - Add and implement new DebugVariable - OverridePlatformName - for overriding Platform Name in OpenCL Related-To: NEO-7826 Signed-off-by: Fabian Zwolinski <fabian.zwolinski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
e79fb5f39b
commit
b909b03b02
@@ -98,7 +98,27 @@ INSTANTIATE_TEST_CASE_P(OCLVersions,
|
||||
|
||||
TEST_F(clGetPlatformInfoTests, GivenClPlatformNameWhenGettingPlatformInfoStringThenCorrectStringIsReturned) {
|
||||
paramValue = getPlatformInfoString(pPlatform, CL_PLATFORM_NAME);
|
||||
EXPECT_STREQ(paramValue, "Intel(R) OpenCL HD Graphics");
|
||||
EXPECT_STREQ(paramValue, "Intel(R) OpenCL Graphics");
|
||||
}
|
||||
|
||||
class clGetPlatformInfoOverridePlatformNameTests : public clGetPlatformInfoTests {
|
||||
public:
|
||||
void SetUp() override {
|
||||
NEO::DebugManager.flags.OverridePlatformName.set(testPlatformName);
|
||||
clGetPlatformInfoTests::SetUp();
|
||||
}
|
||||
|
||||
void TearDown() override {
|
||||
clGetPlatformInfoTests::TearDown();
|
||||
}
|
||||
|
||||
DebugManagerStateRestore restorer;
|
||||
const std::string testPlatformName = "test platform name";
|
||||
};
|
||||
|
||||
TEST_F(clGetPlatformInfoOverridePlatformNameTests, givenDebugVariableOverridePlatformNameSpecifiedWhenGettingPlatformInfoStringThenPlatformNameIsTakenFromDebugVariable) {
|
||||
paramValue = getPlatformInfoString(pPlatform, CL_PLATFORM_NAME);
|
||||
EXPECT_STREQ(paramValue, testPlatformName.c_str());
|
||||
}
|
||||
|
||||
TEST_F(clGetPlatformInfoTests, GivenClPlatformVendorWhenGettingPlatformInfoStringThenCorrectStringIsReturned) {
|
||||
|
||||
Reference in New Issue
Block a user