未验证 提交 fade99a2 编写于 作者: myq406450149's avatar myq406450149 提交者: GitHub

Dot (#4355)



* add device info for 865. test=develop
上级 0348583f
文件模式从 100644 更改为 100755
......@@ -176,6 +176,9 @@ void get_cpu_arch(std::vector<ARMArch>* archs, const int cpu_num) {
case 0xd0a:
arch_type = kA75;
break;
case 0xd0d:
arch_type = kA77;
break;
case 0xd40:
arch_type = kA76;
break;
......@@ -637,6 +640,20 @@ void DeviceInfo::SetArchInfo(int argc, ...) {
bool DeviceInfo::SetCPUInfoByName() {
/* Snapdragon */
if (dev_name_.find("KONA") != std::string::npos) { // 865
core_num_ = 8;
core_ids_ = {0, 1, 2, 3, 4, 5, 6, 7};
big_core_ids_ = {4, 5, 6, 7};
little_core_ids_ = {0, 1, 2, 3};
cluster_ids_ = {1, 1, 1, 1, 0, 0, 0, 0};
SetArchInfo(2, kA77, kA55);
SetCacheInfo(0, 2, 192 * 1024, 256 * 1024);
SetCacheInfo(1, 2, 768 * 1024, 512 * 1024);
SetCacheInfo(2, 1, 4 * 1024 * 1024);
SetFP16Info(1, 1);
SetDotInfo(2, 1, 1);
return true;
}
if (dev_name_.find("SM8150") != std::string::npos) { // 855
core_num_ = 8;
core_ids_ = {0, 1, 2, 3, 4, 5, 6, 7};
......
......@@ -40,6 +40,8 @@ typedef enum {
kA73 = 73,
kA75 = 75,
kA76 = 76,
kA77 = 77,
kA78 = 78,
kARMArch_UNKOWN = -1
} ARMArch;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册