mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +08:00
Remove unused function
Related-To: NEO-3503 Change-Id: I787907e73f1237295594d3a2620f8459f8698eee Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
This commit is contained in:

committed by
sys_ocldev

parent
bea29f18c9
commit
4410ebe74d
@ -244,7 +244,7 @@ int OfflineCompiler::getHardwareInfo(const char *pDeviceName) {
|
|||||||
hwInfo = hardwareInfoTable[productId];
|
hwInfo = hardwareInfoTable[productId];
|
||||||
familyNameWithType.clear();
|
familyNameWithType.clear();
|
||||||
familyNameWithType.append(familyName[hwInfo->platform.eRenderCoreFamily]);
|
familyNameWithType.append(familyName[hwInfo->platform.eRenderCoreFamily]);
|
||||||
familyNameWithType.append(getPlatformType(*hwInfo));
|
familyNameWithType.append(hwInfo->capabilityTable.platformType);
|
||||||
retVal = CL_SUCCESS;
|
retVal = CL_SUCCESS;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -222,7 +222,7 @@ const char *Device::getProductAbbrev() const {
|
|||||||
const std::string Device::getFamilyNameWithType() const {
|
const std::string Device::getFamilyNameWithType() const {
|
||||||
auto &hwInfo = getHardwareInfo();
|
auto &hwInfo = getHardwareInfo();
|
||||||
std::string platformName = familyName[hwInfo.platform.eRenderCoreFamily];
|
std::string platformName = familyName[hwInfo.platform.eRenderCoreFamily];
|
||||||
platformName.append(getPlatformType(hwInfo));
|
platformName.append(hwInfo.capabilityTable.platformType);
|
||||||
return platformName;
|
return platformName;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -24,10 +24,6 @@ void (*hardwareInfoSetup[IGFX_MAX_PRODUCT])(HardwareInfo *, bool, const std::str
|
|||||||
nullptr,
|
nullptr,
|
||||||
};
|
};
|
||||||
|
|
||||||
const char *getPlatformType(const HardwareInfo &hwInfo) {
|
|
||||||
return hwInfo.capabilityTable.platformType;
|
|
||||||
}
|
|
||||||
|
|
||||||
bool getHwInfoForPlatformString(std::string &platform, const HardwareInfo *&hwInfoIn) {
|
bool getHwInfoForPlatformString(std::string &platform, const HardwareInfo *&hwInfoIn) {
|
||||||
std::transform(platform.begin(), platform.end(), platform.begin(), ::tolower);
|
std::transform(platform.begin(), platform.end(), platform.begin(), ::tolower);
|
||||||
|
|
||||||
|
@ -99,7 +99,6 @@ struct EnableGfxFamilyHw {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
const char *getPlatformType(const HardwareInfo &hwInfo);
|
|
||||||
bool getHwInfoForPlatformString(std::string &platform, const HardwareInfo *&hwInfoIn);
|
bool getHwInfoForPlatformString(std::string &platform, const HardwareInfo *&hwInfoIn);
|
||||||
aub_stream::EngineType getChosenEngineType(const HardwareInfo &hwInfo);
|
aub_stream::EngineType getChosenEngineType(const HardwareInfo &hwInfo);
|
||||||
} // namespace NEO
|
} // namespace NEO
|
||||||
|
@ -229,20 +229,6 @@ HWTEST_F(PipeControlHelperTests, givenPostSyncWriteImmediateDataModeWhenHelperIs
|
|||||||
EXPECT_TRUE(memcmp(pipeControl, &expectedPipeControl, sizeof(PIPE_CONTROL)) == 0);
|
EXPECT_TRUE(memcmp(pipeControl, &expectedPipeControl, sizeof(PIPE_CONTROL)) == 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
TEST(HwInfoTest, givenHwInfoWhenPlatformTypeIsCoreThenPlatformTypeIsCore) {
|
|
||||||
HardwareInfo hwInfo;
|
|
||||||
hwInfo.capabilityTable.platformType = "core";
|
|
||||||
auto platformType = getPlatformType(hwInfo);
|
|
||||||
EXPECT_STREQ("core", platformType);
|
|
||||||
}
|
|
||||||
|
|
||||||
TEST(HwInfoTest, givenHwInfoWhenlatformTypeIsLpThenPlatformTypeIsLp) {
|
|
||||||
HardwareInfo hwInfo;
|
|
||||||
hwInfo.capabilityTable.platformType = "lp";
|
|
||||||
auto platformType = getPlatformType(hwInfo);
|
|
||||||
EXPECT_STREQ("lp", platformType);
|
|
||||||
}
|
|
||||||
|
|
||||||
TEST(HwInfoTest, givenHwInfoWhenChosenEngineTypeQueriedThenDefaultIsReturned) {
|
TEST(HwInfoTest, givenHwInfoWhenChosenEngineTypeQueriedThenDefaultIsReturned) {
|
||||||
HardwareInfo hwInfo;
|
HardwareInfo hwInfo;
|
||||||
hwInfo.capabilityTable.defaultEngineType = aub_stream::ENGINE_RCS;
|
hwInfo.capabilityTable.defaultEngineType = aub_stream::ENGINE_RCS;
|
||||||
|
@ -343,7 +343,7 @@ int main(int argc, char **argv) {
|
|||||||
device.capabilityTable.supportsImages = true;
|
device.capabilityTable.supportsImages = true;
|
||||||
|
|
||||||
binaryNameSuffix.append(familyName[device.platform.eRenderCoreFamily]);
|
binaryNameSuffix.append(familyName[device.platform.eRenderCoreFamily]);
|
||||||
binaryNameSuffix.append(getPlatformType(device));
|
binaryNameSuffix.append(device.capabilityTable.platformType);
|
||||||
|
|
||||||
std::string nBinaryKernelFiles = getRunPath(argv[0]);
|
std::string nBinaryKernelFiles = getRunPath(argv[0]);
|
||||||
nBinaryKernelFiles.append("/");
|
nBinaryKernelFiles.append("/");
|
||||||
|
Reference in New Issue
Block a user