未验证 提交 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) { ...@@ -176,6 +176,9 @@ void get_cpu_arch(std::vector<ARMArch>* archs, const int cpu_num) {
case 0xd0a: case 0xd0a:
arch_type = kA75; arch_type = kA75;
break; break;
case 0xd0d:
arch_type = kA77;
break;
case 0xd40: case 0xd40:
arch_type = kA76; arch_type = kA76;
break; break;
...@@ -637,6 +640,20 @@ void DeviceInfo::SetArchInfo(int argc, ...) { ...@@ -637,6 +640,20 @@ void DeviceInfo::SetArchInfo(int argc, ...) {
bool DeviceInfo::SetCPUInfoByName() { bool DeviceInfo::SetCPUInfoByName() {
/* Snapdragon */ /* 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 if (dev_name_.find("SM8150") != std::string::npos) { // 855
core_num_ = 8; core_num_ = 8;
core_ids_ = {0, 1, 2, 3, 4, 5, 6, 7}; core_ids_ = {0, 1, 2, 3, 4, 5, 6, 7};
......
...@@ -40,6 +40,8 @@ typedef enum { ...@@ -40,6 +40,8 @@ typedef enum {
kA73 = 73, kA73 = 73,
kA75 = 75, kA75 = 75,
kA76 = 76, kA76 = 76,
kA77 = 77,
kA78 = 78,
kARMArch_UNKOWN = -1 kARMArch_UNKOWN = -1
} ARMArch; } ARMArch;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册