OpenVINO™ is an open source toolkit for optimizing and deploying AI inference
C++ aicomputer-visiondeep-learningdeploy-aidiffusion-modelsgenerative-aigood-first-issueinferencellm-inferencenatural-language-processingnlpopenvinooptimize-aiperformance-boostrecommendation-systemspeech-recognitionstable-diffusiontransformersyolo
support offline CPU in Linux (#27870)
Wanglei Shen7c34fbdfc258
diff --git a/src/inference/src/os/lin/lin_system_conf.cpp b/src/inference/src/os/lin/lin_system_conf.cppindex f8bd16173b8..48d486d2ed2 100644--- a/src/inference/src/os/lin/lin_system_conf.cpp+++ b/src/inference/src/os/lin/lin_system_conf.cpp@@ -23,76 +23,108 @@ CPU::CPU() {std::vector<std::vector<std::string>> system_info_table;std::vector<std::string> node_info_table;- auto get_cache_info_linux = [&]() {+ constexpr int cache_info_mode = 1;+ constexpr int freq_info_mode = 2;++ auto get_info_linux = [&](int mode) {int cpu_index = 0;int cache_index = 0;int cache_files = 3;- std::vector<std::string> one_info(cache_files);+ std::string one_info;- while (1) {- for (int n = 0; n < cache_files; n++) {- cache_index = (n == 0) ? n : n + 1;-- std::ifstream cache_file("/sys/devices/system/cpu/cpu" + std::to_string(cpu_index) + "/cache/index" +- std::to_string(cache_index) + "/shared_cpu_list");- if (!cache_file.is_open()) {- cache_index = -1;- break;- }- std::string cache_info;- std::getline(cache_file, cache_info);- one_info[n] = std::move(cache_info);- }+ std::vector<std::string> file_name = {"/topology/core_cpus_list",+ "/topology/physical_package_id",+ "/cpufreq/cpuinfo_max_freq"};+ int num_of_files = file_name.size();- if (cache_index == -1) {- if (cpu_index == 0) {- return -1;- } else {- return 0;- }- } else {- system_info_table.push_back(one_info);- cpu_index++;- }+ std::string::size_type pos = 0;+ std::string::size_type endpos = 0;+ std::string sub_str;++ int core_1;+ int core_2;++ system_info_table.clear();++ std::ifstream possible_file("/sys/devices/system/cpu/possible");+ std::string possible_info;++ if (possible_file.is_open()) {+ std::getline(possible_file, possible_info);+ } else {+ return -1;}- return 0;- };+ if ((endpos = possible_info.find('-', pos)) != std::string::npos) {+ sub_str = possible_info.substr(pos, endpos - pos);+ core_1 = std::stoi(sub_str);+ sub_str = possible_info.substr(endpos + 1);+ core_2 = std::stoi(sub_str);+ system_info_table.resize(core_2 + 1, std::vector<std::string>(cache_files, ""));+ } else {+ return -1;+ }- auto get_freq_info_linux = [&]() {- int cpu_index = 0;- int cache_index = 0;+ std::ifstream online_file("/sys/devices/system/cpu/online");+ std::string online_info;- std::vector<std::string> file_name = {"/topology/core_cpus_list",- "/topology/physical_package_id",- "/cpufreq/cpuinfo_max_freq"};- int num_of_files = file_name.size();- std::vector<std::string> one_info(num_of_files);+ if (online_file.is_open()) {+ std::getline(online_file, online_info);+ } else {+ system_info_table.clear();+ return -1;+ }while (1) {- for (int n = 0; n < num_of_files; n++) {- cache_index = n;+ if ((endpos = online_info.find('-', pos)) != std::string::npos) {+ sub_str = online_info.substr(pos, endpos - pos);+ core_1 = std::stoi(sub_str);+ sub_str = online_info.substr(endpos + 1);+ core_2 = std::stoi(sub_str);- std::ifstream cache_file("/sys/devices/system/cpu/cpu" + std::to_string(cpu_index) + file_name[n]);- if (!cache_file.is_open()) {- cache_index = -1;- break;+ for (cpu_index = core_1; cpu_index <= core_2; cpu_index++) {+ if (mode == cache_info_mode) {+ for (int n = 0; n < cache_files; n++) {+ cache_index = (n == 0) ? n : n + 1;+ one_info.clear();++ std::ifstream cache_file("/sys/devices/system/cpu/cpu" + std::to_string(cpu_index) ++ "/cache/index" + std::to_string(cache_index) + "/shared_cpu_list");+ if (cache_file.is_open()) {+ std::getline(cache_file, one_info);+ } else {+ if ((cpu_index == core_1) && (n == 0)) {+ system_info_table.clear();+ return -1;+ }+ }+ system_info_table[cpu_index][n] = std::move(one_info);+ }+ } else {+ for (int n = 0; n < num_of_files; n++) {+ one_info.clear();++ std::ifstream cache_file("/sys/devices/system/cpu/cpu" + std::to_string(cpu_index) ++ file_name[n]);+ if (cache_file.is_open()) {+ std::getline(cache_file, one_info);+ } else {+ if ((cpu_index == core_1) && (n == 2)) {+ system_info_table.clear();+ return -1;+ }+ }+ system_info_table[cpu_index][n] = std::move(one_info);+ }+ }}- std::string cache_info;- std::getline(cache_file, cache_info);- one_info[n] = std::move(cache_info);}- if (cache_index == -1) {- if (cpu_index == 0) {- return -1;- } else {- return 0;- }+ if ((pos = online_info.find(',', endpos)) != std::string::npos) {+ pos++;} else {- system_info_table.push_back(one_info);- cpu_index++;+ break;}}@@ -201,7 +233,7 @@ CPU::CPU() {get_node_info_linux();- if (!get_cache_info_linux()) {+ if (!get_info_linux(cache_info_mode)) {parse_cache_info_linux(system_info_table,node_info_table,_processors,@@ -215,7 +247,7 @@ CPU::CPU() {if ((_proc_type_table.size() == 0) ||((_proc_type_table[0][MAIN_CORE_PROC] == 0) && (_proc_type_table[0][ALL_PROC] > 0) &&(_proc_type_table[0][ALL_PROC] != _proc_type_table[0][EFFICIENT_CORE_PROC]))) {- if (!get_freq_info_linux()) {+ if (!get_info_linux(freq_info_mode)) {parse_freq_info_linux(system_info_table,node_info_table,_processors,@@ -471,56 +503,73 @@ void parse_cache_info_linux(const std::vector<std::vector<std::string>> system_iconst std::vector<int> line_value_0({0, 0, 0, 0, -1, -1});- for (int n = 0; n < _processors; n++) {- if (-1 == _cpu_mapping_table[n][CPU_MAP_SOCKET_ID]) {- std::string::size_type pos = 0;- std::string::size_type endpos = 0;- std::string sub_str;-- int core_1;- int core_2;+ std::vector<int> offline_list;+ int info_index = 0;- if (0 == _sockets) {- _proc_type_table.push_back(line_value_0);- } else {- _proc_type_table.push_back(_proc_type_table[0]);- _proc_type_table[0] = line_value_0;- }-- while (1) {- if ((endpos = system_info_table[n][2].find('-', pos)) != std::string::npos) {- sub_str = system_info_table[n][2].substr(pos, endpos - pos);- core_1 = std::stoi(sub_str);- sub_str = system_info_table[n][2].substr(endpos + 1);- core_2 = std::stoi(sub_str);+ for (int n = 0; n < _processors; n++) {+ if ((system_info_table[n][2].size() > 0) || (system_info_table[n][1].size() > 0)) {+ info_index = system_info_table[n][2].size() > 0 ? 2 : 1;+ if (-1 == _cpu_mapping_table[n][CPU_MAP_SOCKET_ID]) {+ std::string::size_type pos = 0;+ std::string::size_type endpos = 0;+ std::string sub_str;++ int core_1;+ int core_2;++ if (0 == _sockets) {+ _proc_type_table.push_back(line_value_0);+ } else {+ _proc_type_table.push_back(_proc_type_table[0]);+ _proc_type_table[0] = line_value_0;+ }- for (int m = core_1; m <= core_2; m++) {- _cpu_mapping_table[m][CPU_MAP_SOCKET_ID] = _sockets;- _cpu_mapping_table[m][CPU_MAP_NUMA_NODE_ID] = _cpu_mapping_table[m][CPU_MAP_SOCKET_ID];- update_proc_map_info(m);+ while (1) {+ if ((endpos = system_info_table[n][info_index].find('-', pos)) != std::string::npos) {+ sub_str = system_info_table[n][info_index].substr(pos, endpos - pos);+ core_1 = std::stoi(sub_str);+ sub_str = system_info_table[n][info_index].substr(endpos + 1);+ core_2 = std::stoi(sub_str);++ if ((info_index == 1) && (core_2 - core_1 == 1)) {+ offline_list.push_back(n);+ break;+ }+ for (int m = core_1; m <= core_2; m++) {+ _cpu_mapping_table[m][CPU_MAP_SOCKET_ID] = _sockets;+ _cpu_mapping_table[m][CPU_MAP_NUMA_NODE_ID] = _cpu_mapping_table[m][CPU_MAP_SOCKET_ID];+ update_proc_map_info(m);+ if (_processors == 0) {+ return;+ };+ }+ } else if (pos != std::string::npos) {+ sub_str = system_info_table[n][info_index].substr(pos);+ core_1 = std::stoi(sub_str);+ _cpu_mapping_table[core_1][CPU_MAP_SOCKET_ID] = _sockets;+ _cpu_mapping_table[core_1][CPU_MAP_NUMA_NODE_ID] =+ _cpu_mapping_table[core_1][CPU_MAP_SOCKET_ID];+ update_proc_map_info(core_1);if (_processors == 0) {return;};+ endpos = pos;}- } else if (pos != std::string::npos) {- sub_str = system_info_table[n][2].substr(pos);- core_1 = std::stoi(sub_str);- _cpu_mapping_table[core_1][CPU_MAP_SOCKET_ID] = _sockets;- _cpu_mapping_table[core_1][CPU_MAP_NUMA_NODE_ID] = _cpu_mapping_table[core_1][CPU_MAP_SOCKET_ID];- update_proc_map_info(core_1);- if (_processors == 0) {- return;- };- endpos = pos;- }- if ((pos = system_info_table[n][2].find(',', endpos)) != std::string::npos) {- pos++;- } else {- break;+ if ((pos = system_info_table[n][2].find(',', endpos)) != std::string::npos) {+ pos++;+ } else {+ break;+ }+ }+ _sockets++;+ if (_proc_type_table[0][ALL_PROC] == 0) {+ _proc_type_table.erase(_proc_type_table.begin());+ _sockets--;}}- _sockets++;+ } else {+ offline_list.push_back(n);}}@@ -540,6 +589,11 @@ void parse_cache_info_linux(const std::vector<std::vector<std::string>> system_i_numa_nodes = node_info_table.size();parse_node_info_linux(node_info_table, _numa_nodes, _sockets, _proc_type_table, _cpu_mapping_table);}++ for (size_t n = 0; n < offline_list.size(); n++) {+ _cpu_mapping_table.erase(_cpu_mapping_table.begin() + offline_list[n] - n);+ _processors--;+ }};void get_cpu_mapping_from_cores(const int _processors,@@ -615,7 +669,6 @@ void parse_freq_info_linux(const std::vector<std::vector<std::string>> system_instd::vector<std::vector<int>>& _cpu_mapping_table) {int freq_max = 0;bool ecore_enabled = false;- bool ht_enabled = false;_processors = system_info_table.size();_numa_nodes = 0;@@ -625,6 +678,8 @@ void parse_freq_info_linux(const std::vector<std::vector<std::string>> system_instd::vector<int> line_value_0(PROC_TYPE_TABLE_SIZE, 0);+ std::vector<int> offline_list;+auto clean_up_output = [&]() {_processors = 0;_cores = 0;@@ -636,65 +691,68 @@ void parse_freq_info_linux(const std::vector<std::vector<std::string>> system_in};for (int n = 0; n < _processors; n++) {- if (-1 == _cpu_mapping_table[n][CPU_MAP_SOCKET_ID]) {- std::string::size_type pos = 0;- std::string::size_type endpos1 = 0;- std::string::size_type endpos2 = 0;- std::string sub_str;-- int core_1 = 0;- int core_2 = 0;-- if (((endpos1 = system_info_table[n][0].find(',', pos)) != std::string::npos) ||- ((endpos2 = system_info_table[n][0].find('-', pos)) != std::string::npos)) {- endpos1 = (endpos1 != std::string::npos) ? endpos1 : endpos2;- sub_str = system_info_table[n][0].substr(pos, endpos1 - pos);- core_1 = std::stoi(sub_str);- sub_str = system_info_table[n][0].substr(endpos1 + 1);- core_2 = std::stoi(sub_str);- if ((core_1 != n) && (core_2 != n)) {- clean_up_output();- return;- }-- _cpu_mapping_table[core_1][CPU_MAP_PROCESSOR_ID] = core_1;- _cpu_mapping_table[core_1][CPU_MAP_SOCKET_ID] = std::stoi(system_info_table[core_1][1]);- _cpu_mapping_table[core_1][CPU_MAP_NUMA_NODE_ID] = _cpu_mapping_table[core_1][CPU_MAP_SOCKET_ID];- _cpu_mapping_table[core_1][CPU_MAP_CORE_ID] = _cores;- _cpu_mapping_table[core_1][CPU_MAP_CORE_TYPE] = HYPER_THREADING_PROC;- _cpu_mapping_table[core_1][CPU_MAP_GROUP_ID] = _cores;+ if (system_info_table[n][2].size() > 0) {+ if (-1 == _cpu_mapping_table[n][CPU_MAP_SOCKET_ID]) {+ std::string::size_type pos = 0;+ std::string::size_type endpos1 = 0;+ std::string::size_type endpos2 = 0;+ std::string sub_str;++ int core_1 = 0;+ int core_2 = 0;++ if (((endpos1 = system_info_table[n][0].find(',', pos)) != std::string::npos) ||+ ((endpos2 = system_info_table[n][0].find('-', pos)) != std::string::npos)) {+ endpos1 = (endpos1 != std::string::npos) ? endpos1 : endpos2;+ sub_str = system_info_table[n][0].substr(pos, endpos1 - pos);+ core_1 = std::stoi(sub_str);+ sub_str = system_info_table[n][0].substr(endpos1 + 1);+ core_2 = std::stoi(sub_str);+ if ((core_1 != n) && (core_2 != n)) {+ clean_up_output();+ return;+ }- _cpu_mapping_table[core_2][CPU_MAP_PROCESSOR_ID] = core_2;- _cpu_mapping_table[core_2][CPU_MAP_SOCKET_ID] = _cpu_mapping_table[core_1][CPU_MAP_SOCKET_ID];- _cpu_mapping_table[core_2][CPU_MAP_NUMA_NODE_ID] = _cpu_mapping_table[core_1][CPU_MAP_SOCKET_ID];- _cpu_mapping_table[core_2][CPU_MAP_CORE_ID] = _cpu_mapping_table[core_1][CPU_MAP_CORE_ID];- _cpu_mapping_table[core_2][CPU_MAP_CORE_TYPE] = MAIN_CORE_PROC;- _cpu_mapping_table[core_2][CPU_MAP_GROUP_ID] = _cpu_mapping_table[core_1][CPU_MAP_GROUP_ID];+ _cpu_mapping_table[core_1][CPU_MAP_PROCESSOR_ID] = core_1;+ _cpu_mapping_table[core_1][CPU_MAP_SOCKET_ID] = std::stoi(system_info_table[core_1][1]);+ _cpu_mapping_table[core_1][CPU_MAP_NUMA_NODE_ID] = _cpu_mapping_table[core_1][CPU_MAP_SOCKET_ID];+ _cpu_mapping_table[core_1][CPU_MAP_CORE_ID] = _cores;+ _cpu_mapping_table[core_1][CPU_MAP_CORE_TYPE] = HYPER_THREADING_PROC;+ _cpu_mapping_table[core_1][CPU_MAP_GROUP_ID] = _cores;++ _cpu_mapping_table[core_2][CPU_MAP_PROCESSOR_ID] = core_2;+ _cpu_mapping_table[core_2][CPU_MAP_SOCKET_ID] = _cpu_mapping_table[core_1][CPU_MAP_SOCKET_ID];+ _cpu_mapping_table[core_2][CPU_MAP_NUMA_NODE_ID] = _cpu_mapping_table[core_1][CPU_MAP_SOCKET_ID];+ _cpu_mapping_table[core_2][CPU_MAP_CORE_ID] = _cpu_mapping_table[core_1][CPU_MAP_CORE_ID];+ _cpu_mapping_table[core_2][CPU_MAP_CORE_TYPE] = MAIN_CORE_PROC;+ _cpu_mapping_table[core_2][CPU_MAP_GROUP_ID] = _cpu_mapping_table[core_1][CPU_MAP_GROUP_ID];++ int core_freq = std::stoi(system_info_table[core_1][2]);+ freq_max = std::max(core_freq, freq_max);+ } else if (system_info_table[n][0].size() > 0) {+ core_1 = std::stoi(system_info_table[n][0]);- ht_enabled = true;- int core_freq = std::stoi(system_info_table[core_1][2]);- freq_max = std::max(core_freq, freq_max);- } else if (system_info_table[n][0].size() > 0) {- core_1 = std::stoi(system_info_table[n][0]);+ _cpu_mapping_table[core_1][CPU_MAP_PROCESSOR_ID] = core_1;+ _cpu_mapping_table[core_1][CPU_MAP_SOCKET_ID] = std::stoi(system_info_table[core_1][1]);+ _cpu_mapping_table[core_1][CPU_MAP_NUMA_NODE_ID] = _cpu_mapping_table[core_1][CPU_MAP_SOCKET_ID];+ _cpu_mapping_table[core_1][CPU_MAP_CORE_ID] = _cores;- _cpu_mapping_table[core_1][CPU_MAP_PROCESSOR_ID] = core_1;- _cpu_mapping_table[core_1][CPU_MAP_SOCKET_ID] = std::stoi(system_info_table[core_1][1]);- _cpu_mapping_table[core_1][CPU_MAP_NUMA_NODE_ID] = _cpu_mapping_table[core_1][CPU_MAP_SOCKET_ID];- _cpu_mapping_table[core_1][CPU_MAP_CORE_ID] = _cores;+ int core_freq = std::stoi(system_info_table[core_1][2]);+ if ((0 == freq_max) || (core_freq >= freq_max * 0.97)) {+ freq_max = std::max(core_freq, freq_max);+ _cpu_mapping_table[core_1][CPU_MAP_CORE_TYPE] = MAIN_CORE_PROC;+ } else {+ _cpu_mapping_table[core_1][CPU_MAP_CORE_TYPE] = EFFICIENT_CORE_PROC;+ ecore_enabled = true;+ }- int core_freq = std::stoi(system_info_table[core_1][2]);- if (((0 == freq_max) || (core_freq >= freq_max * 0.95)) && (!ht_enabled)) {- freq_max = std::max(core_freq, freq_max);- _cpu_mapping_table[core_1][CPU_MAP_CORE_TYPE] = MAIN_CORE_PROC;- } else {- _cpu_mapping_table[core_1][CPU_MAP_CORE_TYPE] = EFFICIENT_CORE_PROC;- ecore_enabled = true;+ _cpu_mapping_table[core_1][CPU_MAP_GROUP_ID] = _cores;}-- _cpu_mapping_table[core_1][CPU_MAP_GROUP_ID] = _cores;+ _sockets = std::max(_sockets, _cpu_mapping_table[core_1][CPU_MAP_SOCKET_ID]);+ _cores++;}- _sockets = std::max(_sockets, _cpu_mapping_table[core_1][CPU_MAP_SOCKET_ID]);- _cores++;+ } else {+ offline_list.push_back(n);}}@@ -733,6 +791,11 @@ void parse_freq_info_linux(const std::vector<std::vector<std::string>> system_in_numa_nodes = node_info_table.size();parse_node_info_linux(node_info_table, _numa_nodes, _sockets, _proc_type_table, _cpu_mapping_table);}++ for (size_t n = 0; n < offline_list.size(); n++) {+ _cpu_mapping_table.erase(_cpu_mapping_table.begin() + offline_list[n] - n);+ _processors--;+ }};void update_valid_processor_linux(const std::vector<int> phy_core_list,diff --git a/src/inference/tests/unit/cpu_map_parser/cache_parser_linux.cpp b/src/inference/tests/unit/cpu_map_parser/cache_parser_linux.cppindex 8679090b9ae..9ea43bd0604 100644--- a/src/inference/tests/unit/cpu_map_parser/cache_parser_linux.cpp+++ b/src/inference/tests/unit/cpu_map_parser/cache_parser_linux.cpp@@ -385,6 +385,188 @@ LinuxCpuMapTestCase cache_1sockets_96cores = {{"0-95"},},};+LinuxCpuMapTestCase cache_2sockets_56cores_hyperthreading = {+ 110,+ 2,+ 2,+ 56,+ {{110, 56, 0, 54, -1, -1}, {54, 28, 0, 26, 0, 0}, {56, 28, 0, 28, 1, 1}},+ {+ {0, 0, 0, 0, HYPER_THREADING_PROC, 0, -1}, {1, 0, 0, 1, HYPER_THREADING_PROC, 1, -1},+ {2, 0, 0, 2, HYPER_THREADING_PROC, 2, -1}, {3, 0, 0, 3, HYPER_THREADING_PROC, 3, -1},+ {4, 0, 0, 4, HYPER_THREADING_PROC, 4, -1}, {5, 0, 0, 5, HYPER_THREADING_PROC, 5, -1},+ {6, 0, 0, 6, HYPER_THREADING_PROC, 6, -1}, {7, 0, 0, 7, HYPER_THREADING_PROC, 7, -1},+ {8, 0, 0, 8, HYPER_THREADING_PROC, 8, -1}, {9, 0, 0, 9, HYPER_THREADING_PROC, 9, -1},+ {11, 0, 0, 10, HYPER_THREADING_PROC, 10, -1}, {12, 0, 0, 11, HYPER_THREADING_PROC, 11, -1},+ {13, 0, 0, 12, HYPER_THREADING_PROC, 12, -1}, {14, 0, 0, 13, HYPER_THREADING_PROC, 13, -1},+ {15, 0, 0, 14, HYPER_THREADING_PROC, 14, -1}, {16, 0, 0, 15, HYPER_THREADING_PROC, 15, -1},+ {17, 0, 0, 16, HYPER_THREADING_PROC, 16, -1}, {18, 0, 0, 17, HYPER_THREADING_PROC, 17, -1},+ {19, 0, 0, 18, HYPER_THREADING_PROC, 18, -1}, {21, 0, 0, 19, HYPER_THREADING_PROC, 19, -1},+ {22, 0, 0, 20, HYPER_THREADING_PROC, 20, -1}, {23, 0, 0, 21, HYPER_THREADING_PROC, 21, -1},+ {24, 0, 0, 22, HYPER_THREADING_PROC, 22, -1}, {25, 0, 0, 23, HYPER_THREADING_PROC, 23, -1},+ {26, 0, 0, 24, HYPER_THREADING_PROC, 24, -1}, {27, 0, 0, 25, HYPER_THREADING_PROC, 25, -1},+ {28, 1, 1, 28, HYPER_THREADING_PROC, 28, -1}, {29, 1, 1, 29, HYPER_THREADING_PROC, 29, -1},+ {30, 1, 1, 30, HYPER_THREADING_PROC, 30, -1}, {31, 1, 1, 31, HYPER_THREADING_PROC, 31, -1},+ {32, 1, 1, 32, HYPER_THREADING_PROC, 32, -1}, {33, 1, 1, 33, HYPER_THREADING_PROC, 33, -1},+ {34, 1, 1, 34, HYPER_THREADING_PROC, 34, -1}, {35, 1, 1, 35, HYPER_THREADING_PROC, 35, -1},+ {36, 1, 1, 36, HYPER_THREADING_PROC, 36, -1}, {37, 1, 1, 37, HYPER_THREADING_PROC, 37, -1},+ {38, 1, 1, 38, HYPER_THREADING_PROC, 38, -1}, {39, 1, 1, 39, HYPER_THREADING_PROC, 39, -1},+ {40, 1, 1, 40, HYPER_THREADING_PROC, 40, -1}, {41, 1, 1, 41, HYPER_THREADING_PROC, 41, -1},+ {42, 1, 1, 42, HYPER_THREADING_PROC, 42, -1}, {43, 1, 1, 43, HYPER_THREADING_PROC, 43, -1},+ {44, 1, 1, 44, HYPER_THREADING_PROC, 44, -1}, {45, 1, 1, 45, HYPER_THREADING_PROC, 45, -1},+ {46, 1, 1, 46, HYPER_THREADING_PROC, 46, -1}, {47, 1, 1, 47, HYPER_THREADING_PROC, 47, -1},+ {48, 1, 1, 48, HYPER_THREADING_PROC, 48, -1}, {49, 1, 1, 49, HYPER_THREADING_PROC, 49, -1},+ {50, 1, 1, 50, HYPER_THREADING_PROC, 50, -1}, {51, 1, 1, 51, HYPER_THREADING_PROC, 51, -1},+ {52, 1, 1, 52, HYPER_THREADING_PROC, 52, -1}, {53, 1, 1, 53, HYPER_THREADING_PROC, 53, -1},+ {54, 1, 1, 54, HYPER_THREADING_PROC, 54, -1}, {55, 1, 1, 55, HYPER_THREADING_PROC, 55, -1},+ {56, 0, 0, 0, MAIN_CORE_PROC, 0, -1}, {57, 0, 0, 1, MAIN_CORE_PROC, 1, -1},+ {58, 0, 0, 2, MAIN_CORE_PROC, 2, -1}, {59, 0, 0, 3, MAIN_CORE_PROC, 3, -1},+ {60, 0, 0, 4, MAIN_CORE_PROC, 4, -1}, {61, 0, 0, 5, MAIN_CORE_PROC, 5, -1},+ {62, 0, 0, 6, MAIN_CORE_PROC, 6, -1}, {63, 0, 0, 7, MAIN_CORE_PROC, 7, -1},+ {64, 0, 0, 8, MAIN_CORE_PROC, 8, -1}, {65, 0, 0, 9, MAIN_CORE_PROC, 9, -1},+ {66, 0, 0, 26, MAIN_CORE_PROC, 26, -1}, {67, 0, 0, 10, MAIN_CORE_PROC, 10, -1},+ {68, 0, 0, 11, MAIN_CORE_PROC, 11, -1}, {69, 0, 0, 12, MAIN_CORE_PROC, 12, -1},+ {70, 0, 0, 13, MAIN_CORE_PROC, 13, -1}, {71, 0, 0, 14, MAIN_CORE_PROC, 14, -1},+ {72, 0, 0, 15, MAIN_CORE_PROC, 15, -1}, {73, 0, 0, 16, MAIN_CORE_PROC, 16, -1},+ {74, 0, 0, 17, MAIN_CORE_PROC, 17, -1}, {75, 0, 0, 18, MAIN_CORE_PROC, 18, -1},+ {76, 0, 0, 27, MAIN_CORE_PROC, 27, -1}, {77, 0, 0, 19, MAIN_CORE_PROC, 19, -1},+ {78, 0, 0, 20, MAIN_CORE_PROC, 20, -1}, {79, 0, 0, 21, MAIN_CORE_PROC, 21, -1},+ {80, 0, 0, 22, MAIN_CORE_PROC, 22, -1}, {81, 0, 0, 23, MAIN_CORE_PROC, 23, -1},+ {82, 0, 0, 24, MAIN_CORE_PROC, 24, -1}, {83, 0, 0, 25, MAIN_CORE_PROC, 25, -1},+ {84, 1, 1, 28, MAIN_CORE_PROC, 28, -1}, {85, 1, 1, 29, MAIN_CORE_PROC, 29, -1},+ {86, 1, 1, 30, MAIN_CORE_PROC, 30, -1}, {87, 1, 1, 31, MAIN_CORE_PROC, 31, -1},+ {88, 1, 1, 32, MAIN_CORE_PROC, 32, -1}, {89, 1, 1, 33, MAIN_CORE_PROC, 33, -1},+ {90, 1, 1, 34, MAIN_CORE_PROC, 34, -1}, {91, 1, 1, 35, MAIN_CORE_PROC, 35, -1},+ {92, 1, 1, 36, MAIN_CORE_PROC, 36, -1}, {93, 1, 1, 37, MAIN_CORE_PROC, 37, -1},+ {94, 1, 1, 38, MAIN_CORE_PROC, 38, -1}, {95, 1, 1, 39, MAIN_CORE_PROC, 39, -1},+ {96, 1, 1, 40, MAIN_CORE_PROC, 40, -1}, {97, 1, 1, 41, MAIN_CORE_PROC, 41, -1},+ {98, 1, 1, 42, MAIN_CORE_PROC, 42, -1}, {99, 1, 1, 43, MAIN_CORE_PROC, 43, -1},+ {100, 1, 1, 44, MAIN_CORE_PROC, 44, -1}, {101, 1, 1, 45, MAIN_CORE_PROC, 45, -1},+ {102, 1, 1, 46, MAIN_CORE_PROC, 46, -1}, {103, 1, 1, 47, MAIN_CORE_PROC, 47, -1},+ {104, 1, 1, 48, MAIN_CORE_PROC, 48, -1}, {105, 1, 1, 49, MAIN_CORE_PROC, 49, -1},+ {106, 1, 1, 50, MAIN_CORE_PROC, 50, -1}, {107, 1, 1, 51, MAIN_CORE_PROC, 51, -1},+ {108, 1, 1, 52, MAIN_CORE_PROC, 52, -1}, {109, 1, 1, 53, MAIN_CORE_PROC, 53, -1},+ {110, 1, 1, 54, MAIN_CORE_PROC, 54, -1}, {111, 1, 1, 55, MAIN_CORE_PROC, 55, -1},+ },+ {+ {"0,56", "0,56", "0-9,11-19,21-27,56-83"},+ {"1,57", "1,57", "0-9,11-19,21-27,56-83"},+ {"2,58", "2,58", "0-9,11-19,21-27,56-83"},+ {"3,59", "3,59", "0-9,11-19,21-27,56-83"},+ {"4,60", "4,60", "0-9,11-19,21-27,56-83"},+ {"5,61", "5,61", "0-9,11-19,21-27,56-83"},+ {"6,62", "6,62", "0-9,11-19,21-27,56-83"},+ {"7,63", "7,63", "0-9,11-19,21-27,56-83"},+ {"8,64", "8,64", "0-9,11-19,21-27,56-83"},+ {"9,65", "9,65", "0-9,11-19,21-27,56-83"},+ {"", "", ""},+ {"11,67", "11,67", "0-9,11-19,21-27,56-83"},+ {"12,68", "12,68", "0-9,11-19,21-27,56-83"},+ {"13,69", "13,69", "0-9,11-19,21-27,56-83"},+ {"14,70", "14,70", "0-9,11-19,21-27,56-83"},+ {"15,71", "15,71", "0-9,11-19,21-27,56-83"},+ {"16,72", "16,72", "0-9,11-19,21-27,56-83"},+ {"17,73", "17,73", "0-9,11-19,21-27,56-83"},+ {"18,74", "18,74", "0-9,11-19,21-27,56-83"},+ {"19,75", "19,75", "0-9,11-19,21-27,56-83"},+ {"", "", ""},+ {"21,77", "21,77", "0-9,11-19,21-27,56-83"},+ {"22,78", "22,78", "0-9,11-19,21-27,56-83"},+ {"23,79", "23,79", "0-9,11-19,21-27,56-83"},+ {"24,80", "24,80", "0-9,11-19,21-27,56-83"},+ {"25,81", "25,81", "0-9,11-19,21-27,56-83"},+ {"26,82", "26,82", "0-9,11-19,21-27,56-83"},+ {"27,83", "27,83", "0-9,11-19,21-27,56-83"},+ {"28,84", "28,84", "28-55,84-111"},+ {"29,85", "29,85", "28-55,84-111"},+ {"30,86", "30,86", "28-55,84-111"},+ {"31,87", "31,87", "28-55,84-111"},+ {"32,88", "32,88", "28-55,84-111"},+ {"33,89", "33,89", "28-55,84-111"},+ {"34,90", "34,90", "28-55,84-111"},+ {"35,91", "35,91", "28-55,84-111"},+ {"36,92", "36,92", "28-55,84-111"},+ {"37,93", "37,93", "28-55,84-111"},+ {"38,94", "38,94", "28-55,84-111"},+ {"39,95", "39,95", "28-55,84-111"},+ {"40,96", "40,96", "28-55,84-111"},+ {"41,97", "41,97", "28-55,84-111"},+ {"42,98", "42,98", "28-55,84-111"},+ {"43,99", "43,99", "28-55,84-111"},+ {"44,100", "44,100", "28-55,84-111"},+ {"45,101", "45,101", "28-55,84-111"},+ {"46,102", "46,102", "28-55,84-111"},+ {"47,103", "47,103", "28-55,84-111"},+ {"48,104", "48,104", "28-55,84-111"},+ {"49,105", "49,105", "28-55,84-111"},+ {"50,106", "50,106", "28-55,84-111"},+ {"51,107", "51,107", "28-55,84-111"},+ {"52,108", "52,108", "28-55,84-111"},+ {"53,109", "53,109", "28-55,84-111"},+ {"54,110", "54,110", "28-55,84-111"},+ {"55,111", "55,111", "28-55,84-111"},+ {"0,56", "0,56", "0-9,11-19,21-27,56-83"},+ {"1,57", "1,57", "0-9,11-19,21-27,56-83"},+ {"2,58", "2,58", "0-9,11-19,21-27,56-83"},+ {"3,59", "3,59", "0-9,11-19,21-27,56-83"},+ {"4,60", "4,60", "0-9,11-19,21-27,56-83"},+ {"5,61", "5,61", "0-9,11-19,21-27,56-83"},+ {"6,62", "6,62", "0-9,11-19,21-27,56-83"},+ {"7,63", "7,63", "0-9,11-19,21-27,56-83"},+ {"8,64", "8,64", "0-9,11-19,21-27,56-83"},+ {"9,65", "9,65", "0-9,11-19,21-27,56-83"},+ {"66", "66", "0-9,11-19,21-27,56-83"},+ {"11,67", "11,67", "0-9,11-19,21-27,56-83"},+ {"12,68", "12,68", "0-9,11-19,21-27,56-83"},+ {"13,69", "13,69", "0-9,11-19,21-27,56-83"},+ {"14,70", "14,70", "0-9,11-19,21-27,56-83"},+ {"15,71", "15,71", "0-9,11-19,21-27,56-83"},+ {"16,72", "16,72", "0-9,11-19,21-27,56-83"},+ {"17,73", "17,73", "0-9,11-19,21-27,56-83"},+ {"18,74", "18,74", "0-9,11-19,21-27,56-83"},+ {"19,75", "19,75", "0-9,11-19,21-27,56-83"},+ {"76", "76", "0-9,11-19,21-27,56-83"},+ {"21,77", "21,77", "0-9,11-19,21-27,56-83"},+ {"22,78", "22,78", "0-9,11-19,21-27,56-83"},+ {"23,79", "23,79", "0-9,11-19,21-27,56-83"},+ {"24,80", "24,80", "0-9,11-19,21-27,56-83"},+ {"25,81", "25,81", "0-9,11-19,21-27,56-83"},+ {"26,82", "26,82", "0-9,11-19,21-27,56-83"},+ {"27,83", "27,83", "0-9,11-19,21-27,56-83"},+ {"28,84", "28,84", "28-55,84-111"},+ {"29,85", "29,85", "28-55,84-111"},+ {"30,86", "30,86", "28-55,84-111"},+ {"31,87", "31,87", "28-55,84-111"},+ {"32,88", "32,88", "28-55,84-111"},+ {"33,89", "33,89", "28-55,84-111"},+ {"34,90", "34,90", "28-55,84-111"},+ {"35,91", "35,91", "28-55,84-111"},+ {"36,92", "36,92", "28-55,84-111"},+ {"37,93", "37,93", "28-55,84-111"},+ {"38,94", "38,94", "28-55,84-111"},+ {"39,95", "39,95", "28-55,84-111"},+ {"40,96", "40,96", "28-55,84-111"},+ {"41,97", "41,97", "28-55,84-111"},+ {"42,98", "42,98", "28-55,84-111"},+ {"43,99", "43,99", "28-55,84-111"},+ {"44,100", "44,100", "28-55,84-111"},+ {"45,101", "45,101", "28-55,84-111"},+ {"46,102", "46,102", "28-55,84-111"},+ {"47,103", "47,103", "28-55,84-111"},+ {"48,104", "48,104", "28-55,84-111"},+ {"49,105", "49,105", "28-55,84-111"},+ {"50,106", "50,106", "28-55,84-111"},+ {"51,107", "51,107", "28-55,84-111"},+ {"52,108", "52,108", "28-55,84-111"},+ {"53,109", "53,109", "28-55,84-111"},+ {"54,110", "54,110", "28-55,84-111"},+ {"55,111", "55,111", "28-55,84-111"},+ },+ {+ {"0-9,11-19,21-27,56-83"},+ {"28-55,84-111"},+ },+};LinuxCpuMapTestCase cache_2sockets_48cores_hyperthreading = {96,2,@@ -1005,6 +1187,36 @@ LinuxCpuMapTestCase cache_2sockets_20cores_hyperthreading_1 = {},{},};+LinuxCpuMapTestCase cache_1sockets_16cores_hyperthreading = {+ 20,+ 1,+ 1,+ 14,+ {{20, 6, 8, 6, 0, 0}},+ {+ {0, 0, 0, 0, HYPER_THREADING_PROC, 0, -1}, {1, 0, 0, 1, HYPER_THREADING_PROC, 1, -1},+ {2, 0, 0, 1, MAIN_CORE_PROC, 1, -1}, {3, 0, 0, 2, HYPER_THREADING_PROC, 2, -1},+ {4, 0, 0, 2, MAIN_CORE_PROC, 2, -1}, {5, 0, 0, 0, MAIN_CORE_PROC, 0, -1},+ {6, 0, 0, 3, HYPER_THREADING_PROC, 3, -1}, {7, 0, 0, 3, MAIN_CORE_PROC, 3, -1},+ {8, 0, 0, 4, HYPER_THREADING_PROC, 4, -1}, {9, 0, 0, 4, MAIN_CORE_PROC, 4, -1},+ {10, 0, 0, 5, HYPER_THREADING_PROC, 5, -1}, {11, 0, 0, 5, MAIN_CORE_PROC, 5, -1},+ {12, 0, 0, 6, EFFICIENT_CORE_PROC, 6, -1}, {13, 0, 0, 7, EFFICIENT_CORE_PROC, 6, -1},+ {14, 0, 0, 8, EFFICIENT_CORE_PROC, 6, -1}, {15, 0, 0, 9, EFFICIENT_CORE_PROC, 6, -1},+ {16, 0, 0, 10, EFFICIENT_CORE_PROC, 7, -1}, {17, 0, 0, 11, EFFICIENT_CORE_PROC, 7, -1},+ {18, 0, 0, 12, EFFICIENT_CORE_PROC, 7, -1}, {19, 0, 0, 13, EFFICIENT_CORE_PROC, 7, -1},+ },+ {+ {"0,5", "0,5", "0-19"}, {"1-2", "1-2", "0-19"}, {"1-2", "1-2", "0-19"}, {"3-4", "3-4", "0-19"},+ {"3-4", "3-4", "0-19"}, {"0,5", "0,5", "0-19"}, {"6-7", "6-7", "0-19"}, {"6-7", "6-7", "0-19"},+ {"8-9", "8-9", "0-19"}, {"8-9", "8-9", "0-19"}, {"10-11", "10-11", "0-19"}, {"10-11", "10-11", "0-19"},+ {"12", "12-15", "0-19"}, {"13", "12-15", "0-19"}, {"14", "12-15", "0-19"}, {"15", "12-15", "0-19"},+ {"16", "16-19", "0-19"}, {"17", "16-19", "0-19"}, {"18", "16-19", "0-19"}, {"19", "16-19", "0-19"},+ {"20", "20-21", ""}, {"21", "20-21", ""},+ },+ {+ {"0-21"},+ },+};LinuxCpuMapTestCase cache_1sockets_14cores_hyperthreading = {20,1,@@ -1135,6 +1347,36 @@ LinuxCpuMapTestCase cache_1sockets_8cores_hyperthreading = {},{{"0-11"}},};+LinuxCpuMapTestCase cache_1sockets_8cores_hyperthreading_1 = {+ 8,+ 1,+ 1,+ 8,+ {{8, 4, 4, 0, 0, 0}},+ {+ {0, 0, 0, 0, MAIN_CORE_PROC, 0, -1},+ {1, 0, 0, 1, MAIN_CORE_PROC, 1, -1},+ {2, 0, 0, 2, MAIN_CORE_PROC, 2, -1},+ {3, 0, 0, 3, MAIN_CORE_PROC, 3, -1},+ {4, 0, 0, 4, EFFICIENT_CORE_PROC, 4, -1},+ {5, 0, 0, 5, EFFICIENT_CORE_PROC, 4, -1},+ {6, 0, 0, 6, EFFICIENT_CORE_PROC, 4, -1},+ {7, 0, 0, 7, EFFICIENT_CORE_PROC, 4, -1},+ },+ {+ {"0", "0", "0-3"},+ {"1", "1", "0-3"},+ {"2", "2", "0-3"},+ {"3", "3", "0-3"},+ {"4", "4-7", ""},+ {"5", "4-7", ""},+ {"6", "4-7", ""},+ {"7", "4-7", ""},+ },+ {+ {"0-7"},+ },+};LinuxCpuMapTestCase cache_1sockets_6cores_hyperthreading = {12,1,@@ -1220,6 +1462,7 @@ INSTANTIATE_TEST_SUITE_P(CPUMap,LinuxCpuMapCacheParserTests,testing::Values(cache_2sockets_104cores_hyperthreading,cache_1sockets_96cores,+ cache_2sockets_56cores_hyperthreading,cache_2sockets_48cores_hyperthreading,cache_2sockets_48cores_hyperthreading_1,cache_2sockets_24cores_hyperthreading,@@ -1229,10 +1472,12 @@ INSTANTIATE_TEST_SUITE_P(CPUMap,cache_2sockets_48cores_2,cache_2sockets_20cores_hyperthreading,cache_2sockets_20cores_hyperthreading_1,+ cache_1sockets_16cores_hyperthreading,cache_1sockets_14cores_hyperthreading,cache_1sockets_14cores_hyperthreading_1,cache_1sockets_10cores_hyperthreading,cache_1sockets_8cores_hyperthreading,+ cache_1sockets_8cores_hyperthreading_1,cache_1sockets_6cores_hyperthreading,cache_1sockets_4cores,cache_VM_cache_0));diff --git a/src/inference/tests/unit/cpu_map_parser/freq_parser_linux.cpp b/src/inference/tests/unit/cpu_map_parser/freq_parser_linux.cppindex 04ab617961b..8ccdfad011d 100644--- a/src/inference/tests/unit/cpu_map_parser/freq_parser_linux.cpp+++ b/src/inference/tests/unit/cpu_map_parser/freq_parser_linux.cpp@@ -258,6 +258,188 @@ LinuxCpuMapTestCase freq_2sockets_112cores_hyperthreading = {}, // param[in]: The CPU frequency information table of this simulated platform{{"0-55,112-167"}, {"56-111,168-223"}}, // param[in]: The numa node information table of this simulated platform};+LinuxCpuMapTestCase freq_2sockets_56cores_hyperthreading = {+ 110,+ 2,+ 2,+ 56,+ {{110, 56, 0, 54, -1, -1}, {54, 28, 0, 26, 0, 0}, {56, 28, 0, 28, 1, 1}},+ {+ {0, 0, 0, 0, HYPER_THREADING_PROC, 0, -1}, {1, 0, 0, 1, HYPER_THREADING_PROC, 1, -1},+ {2, 0, 0, 2, HYPER_THREADING_PROC, 2, -1}, {3, 0, 0, 3, HYPER_THREADING_PROC, 3, -1},+ {4, 0, 0, 4, HYPER_THREADING_PROC, 4, -1}, {5, 0, 0, 5, HYPER_THREADING_PROC, 5, -1},+ {6, 0, 0, 6, HYPER_THREADING_PROC, 6, -1}, {7, 0, 0, 7, HYPER_THREADING_PROC, 7, -1},+ {8, 0, 0, 8, HYPER_THREADING_PROC, 8, -1}, {9, 0, 0, 9, HYPER_THREADING_PROC, 9, -1},+ {11, 0, 0, 10, HYPER_THREADING_PROC, 10, -1}, {12, 0, 0, 11, HYPER_THREADING_PROC, 11, -1},+ {13, 0, 0, 12, HYPER_THREADING_PROC, 12, -1}, {14, 0, 0, 13, HYPER_THREADING_PROC, 13, -1},+ {15, 0, 0, 14, HYPER_THREADING_PROC, 14, -1}, {16, 0, 0, 15, HYPER_THREADING_PROC, 15, -1},+ {17, 0, 0, 16, HYPER_THREADING_PROC, 16, -1}, {18, 0, 0, 17, HYPER_THREADING_PROC, 17, -1},+ {19, 0, 0, 18, HYPER_THREADING_PROC, 18, -1}, {21, 0, 0, 19, HYPER_THREADING_PROC, 19, -1},+ {22, 0, 0, 20, HYPER_THREADING_PROC, 20, -1}, {23, 0, 0, 21, HYPER_THREADING_PROC, 21, -1},+ {24, 0, 0, 22, HYPER_THREADING_PROC, 22, -1}, {25, 0, 0, 23, HYPER_THREADING_PROC, 23, -1},+ {26, 0, 0, 24, HYPER_THREADING_PROC, 24, -1}, {27, 0, 0, 25, HYPER_THREADING_PROC, 25, -1},+ {28, 1, 1, 26, HYPER_THREADING_PROC, 26, -1}, {29, 1, 1, 27, HYPER_THREADING_PROC, 27, -1},+ {30, 1, 1, 28, HYPER_THREADING_PROC, 28, -1}, {31, 1, 1, 29, HYPER_THREADING_PROC, 29, -1},+ {32, 1, 1, 30, HYPER_THREADING_PROC, 30, -1}, {33, 1, 1, 31, HYPER_THREADING_PROC, 31, -1},+ {34, 1, 1, 32, HYPER_THREADING_PROC, 32, -1}, {35, 1, 1, 33, HYPER_THREADING_PROC, 33, -1},+ {36, 1, 1, 34, HYPER_THREADING_PROC, 34, -1}, {37, 1, 1, 35, HYPER_THREADING_PROC, 35, -1},+ {38, 1, 1, 36, HYPER_THREADING_PROC, 36, -1}, {39, 1, 1, 37, HYPER_THREADING_PROC, 37, -1},+ {40, 1, 1, 38, HYPER_THREADING_PROC, 38, -1}, {41, 1, 1, 39, HYPER_THREADING_PROC, 39, -1},+ {42, 1, 1, 40, HYPER_THREADING_PROC, 40, -1}, {43, 1, 1, 41, HYPER_THREADING_PROC, 41, -1},+ {44, 1, 1, 42, HYPER_THREADING_PROC, 42, -1}, {45, 1, 1, 43, HYPER_THREADING_PROC, 43, -1},+ {46, 1, 1, 44, HYPER_THREADING_PROC, 44, -1}, {47, 1, 1, 45, HYPER_THREADING_PROC, 45, -1},+ {48, 1, 1, 46, HYPER_THREADING_PROC, 46, -1}, {49, 1, 1, 47, HYPER_THREADING_PROC, 47, -1},+ {50, 1, 1, 48, HYPER_THREADING_PROC, 48, -1}, {51, 1, 1, 49, HYPER_THREADING_PROC, 49, -1},+ {52, 1, 1, 50, HYPER_THREADING_PROC, 50, -1}, {53, 1, 1, 51, HYPER_THREADING_PROC, 51, -1},+ {54, 1, 1, 52, HYPER_THREADING_PROC, 52, -1}, {55, 1, 1, 53, HYPER_THREADING_PROC, 53, -1},+ {56, 0, 0, 0, MAIN_CORE_PROC, 0, -1}, {57, 0, 0, 1, MAIN_CORE_PROC, 1, -1},+ {58, 0, 0, 2, MAIN_CORE_PROC, 2, -1}, {59, 0, 0, 3, MAIN_CORE_PROC, 3, -1},+ {60, 0, 0, 4, MAIN_CORE_PROC, 4, -1}, {61, 0, 0, 5, MAIN_CORE_PROC, 5, -1},+ {62, 0, 0, 6, MAIN_CORE_PROC, 6, -1}, {63, 0, 0, 7, MAIN_CORE_PROC, 7, -1},+ {64, 0, 0, 8, MAIN_CORE_PROC, 8, -1}, {65, 0, 0, 9, MAIN_CORE_PROC, 9, -1},+ {66, 0, 0, 54, MAIN_CORE_PROC, 54, -1}, {67, 0, 0, 10, MAIN_CORE_PROC, 10, -1},+ {68, 0, 0, 11, MAIN_CORE_PROC, 11, -1}, {69, 0, 0, 12, MAIN_CORE_PROC, 12, -1},+ {70, 0, 0, 13, MAIN_CORE_PROC, 13, -1}, {71, 0, 0, 14, MAIN_CORE_PROC, 14, -1},+ {72, 0, 0, 15, MAIN_CORE_PROC, 15, -1}, {73, 0, 0, 16, MAIN_CORE_PROC, 16, -1},+ {74, 0, 0, 17, MAIN_CORE_PROC, 17, -1}, {75, 0, 0, 18, MAIN_CORE_PROC, 18, -1},+ {76, 0, 0, 55, MAIN_CORE_PROC, 55, -1}, {77, 0, 0, 19, MAIN_CORE_PROC, 19, -1},+ {78, 0, 0, 20, MAIN_CORE_PROC, 20, -1}, {79, 0, 0, 21, MAIN_CORE_PROC, 21, -1},+ {80, 0, 0, 22, MAIN_CORE_PROC, 22, -1}, {81, 0, 0, 23, MAIN_CORE_PROC, 23, -1},+ {82, 0, 0, 24, MAIN_CORE_PROC, 24, -1}, {83, 0, 0, 25, MAIN_CORE_PROC, 25, -1},+ {84, 1, 1, 26, MAIN_CORE_PROC, 26, -1}, {85, 1, 1, 27, MAIN_CORE_PROC, 27, -1},+ {86, 1, 1, 28, MAIN_CORE_PROC, 28, -1}, {87, 1, 1, 29, MAIN_CORE_PROC, 29, -1},+ {88, 1, 1, 30, MAIN_CORE_PROC, 30, -1}, {89, 1, 1, 31, MAIN_CORE_PROC, 31, -1},+ {90, 1, 1, 32, MAIN_CORE_PROC, 32, -1}, {91, 1, 1, 33, MAIN_CORE_PROC, 33, -1},+ {92, 1, 1, 34, MAIN_CORE_PROC, 34, -1}, {93, 1, 1, 35, MAIN_CORE_PROC, 35, -1},+ {94, 1, 1, 36, MAIN_CORE_PROC, 36, -1}, {95, 1, 1, 37, MAIN_CORE_PROC, 37, -1},+ {96, 1, 1, 38, MAIN_CORE_PROC, 38, -1}, {97, 1, 1, 39, MAIN_CORE_PROC, 39, -1},+ {98, 1, 1, 40, MAIN_CORE_PROC, 40, -1}, {99, 1, 1, 41, MAIN_CORE_PROC, 41, -1},+ {100, 1, 1, 42, MAIN_CORE_PROC, 42, -1}, {101, 1, 1, 43, MAIN_CORE_PROC, 43, -1},+ {102, 1, 1, 44, MAIN_CORE_PROC, 44, -1}, {103, 1, 1, 45, MAIN_CORE_PROC, 45, -1},+ {104, 1, 1, 46, MAIN_CORE_PROC, 46, -1}, {105, 1, 1, 47, MAIN_CORE_PROC, 47, -1},+ {106, 1, 1, 48, MAIN_CORE_PROC, 48, -1}, {107, 1, 1, 49, MAIN_CORE_PROC, 49, -1},+ {108, 1, 1, 50, MAIN_CORE_PROC, 50, -1}, {109, 1, 1, 51, MAIN_CORE_PROC, 51, -1},+ {110, 1, 1, 52, MAIN_CORE_PROC, 52, -1}, {111, 1, 1, 53, MAIN_CORE_PROC, 53, -1},+ },+ {+ {"0,56", "0", "3500000"},+ {"1,57", "0", "3500000"},+ {"2,58", "0", "3500000"},+ {"3,59", "0", "3500000"},+ {"4,60", "0", "3500000"},+ {"5,61", "0", "3500000"},+ {"6,62", "0", "3500000"},+ {"7,63", "0", "3500000"},+ {"8,64", "0", "3500000"},+ {"9,65", "0", "3500000"},+ {"", "", ""},+ {"11,67", "0", "3500000"},+ {"12,68", "0", "3500000"},+ {"13,69", "0", "3500000"},+ {"14,70", "0", "3500000"},+ {"15,71", "0", "3500000"},+ {"16,72", "0", "3500000"},+ {"17,73", "0", "3500000"},+ {"18,74", "0", "3500000"},+ {"19,75", "0", "3500000"},+ {"", "", ""},+ {"21,77", "0", "3500000"},+ {"22,78", "0", "3500000"},+ {"23,79", "0", "3500000"},+ {"24,80", "0", "3500000"},+ {"25,81", "0", "3500000"},+ {"26,82", "0", "3500000"},+ {"27,83", "0", "3500000"},+ {"28,84", "1", "3500000"},+ {"29,85", "1", "3500000"},+ {"30,86", "1", "3500000"},+ {"31,87", "1", "3500000"},+ {"32,88", "1", "3500000"},+ {"33,89", "1", "3500000"},+ {"34,90", "1", "3500000"},+ {"35,91", "1", "3500000"},+ {"36,92", "1", "3500000"},+ {"37,93", "1", "3500000"},+ {"38,94", "1", "3500000"},+ {"39,95", "1", "3500000"},+ {"40,96", "1", "3500000"},+ {"41,97", "1", "3500000"},+ {"42,98", "1", "3500000"},+ {"43,99", "1", "3500000"},+ {"44,100", "1", "3500000"},+ {"45,101", "1", "3500000"},+ {"46,102", "1", "3500000"},+ {"47,103", "1", "3500000"},+ {"48,104", "1", "3500000"},+ {"49,105", "1", "3500000"},+ {"50,106", "1", "3500000"},+ {"51,107", "1", "3500000"},+ {"52,108", "1", "3500000"},+ {"53,109", "1", "3500000"},+ {"54,110", "1", "3500000"},+ {"55,111", "1", "3500000"},+ {"0,56", "0", "3500000"},+ {"1,57", "0", "3500000"},+ {"2,58", "0", "3500000"},+ {"3,59", "0", "3500000"},+ {"4,60", "0", "3500000"},+ {"5,61", "0", "3500000"},+ {"6,62", "0", "3500000"},+ {"7,63", "0", "3500000"},+ {"8,64", "0", "3500000"},+ {"9,65", "0", "3500000"},+ {"66", "0", "3500000"},+ {"11,67", "0", "3500000"},+ {"12,68", "0", "3500000"},+ {"13,69", "0", "3500000"},+ {"14,70", "0", "3500000"},+ {"15,71", "0", "3500000"},+ {"16,72", "0", "3500000"},+ {"17,73", "0", "3500000"},+ {"18,74", "0", "3500000"},+ {"19,75", "0", "3500000"},+ {"76", "0", "3500000"},+ {"21,77", "0", "3500000"},+ {"22,78", "0", "3500000"},+ {"23,79", "0", "3500000"},+ {"24,80", "0", "3500000"},+ {"25,81", "0", "3500000"},+ {"26,82", "0", "3500000"},+ {"27,83", "0", "3500000"},+ {"28,84", "1", "3500000"},+ {"29,85", "1", "3500000"},+ {"30,86", "1", "3500000"},+ {"31,87", "1", "3500000"},+ {"32,88", "1", "3500000"},+ {"33,89", "1", "3500000"},+ {"34,90", "1", "3500000"},+ {"35,91", "1", "3500000"},+ {"36,92", "1", "3500000"},+ {"37,93", "1", "3500000"},+ {"38,94", "1", "3500000"},+ {"39,95", "1", "3500000"},+ {"40,96", "1", "3500000"},+ {"41,97", "1", "3500000"},+ {"42,98", "1", "3500000"},+ {"43,99", "1", "3500000"},+ {"44,100", "1", "3500000"},+ {"45,101", "1", "3500000"},+ {"46,102", "1", "3500000"},+ {"47,103", "1", "3500000"},+ {"48,104", "1", "3500000"},+ {"49,105", "1", "3500000"},+ {"50,106", "1", "3500000"},+ {"51,107", "1", "3500000"},+ {"52,108", "1", "3500000"},+ {"53,109", "1", "3500000"},+ {"54,110", "1", "3500000"},+ {"55,111", "1", "3500000"},+ },+ {+ {"0-9,11-19,21-27,56-83"},+ {"28-55,84-111"},+ },+};LinuxCpuMapTestCase freq_2sockets_48cores_hyperthreading = {96,2,@@ -987,6 +1169,7 @@ TEST_P(LinuxCpuMapFreqParserTests, LinuxFreq) {}INSTANTIATE_TEST_SUITE_P(CPUMap,LinuxCpuMapFreqParserTests,testing::Values(freq_2sockets_112cores_hyperthreading,+ freq_2sockets_56cores_hyperthreading,freq_2sockets_48cores_hyperthreading,freq_2sockets_48cores_hyperthreading_1,freq_2sockets_24cores_hyperthreading,