Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
SORACE
Ncnn
提交
ad37c34d
N
Ncnn
项目概览
SORACE
/
Ncnn
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
N
Ncnn
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
ad37c34d
编写于
5月 17, 2021
作者:
N
nihui
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
disable NCNN_ARM82DOT whenever NCNN_ARM82 disabled
上级
322812de
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
14 addition
and
12 deletion
+14
-12
.github/workflows/linux-aarch64-cpu-gcc.yml
.github/workflows/linux-aarch64-cpu-gcc.yml
+4
-4
CMakeLists.txt
CMakeLists.txt
+4
-2
src/net.cpp
src/net.cpp
+6
-6
未找到文件。
.github/workflows/linux-aarch64-cpu-gcc.yml
浏览文件 @
ad37c34d
...
...
@@ -46,7 +46,7 @@ jobs:
-
name
:
build
run
:
|
mkdir build && cd build
cmake -DCMAKE_TOOLCHAIN_FILE=../toolchains/aarch64-linux-gnu.toolchain.cmake -DNCNN_ARM82=OFF -DNCNN_BUILD_TOOLS=OFF -DNCNN_BUILD_EXAMPLES=OFF -DNCNN_BUILD_TESTS=ON ..
cmake -DCMAKE_TOOLCHAIN_FILE=../toolchains/aarch64-linux-gnu.toolchain.cmake -DNCNN_ARM82=OFF -DNCNN_
ARM82DOT=OFF -DNCNN_
BUILD_TOOLS=OFF -DNCNN_BUILD_EXAMPLES=OFF -DNCNN_BUILD_TESTS=ON ..
cmake --build . -j 2
-
name
:
test
run
:
|
...
...
@@ -57,7 +57,7 @@ jobs:
-
name
:
build-noint8
run
:
|
mkdir build-noint8 && cd build-noint8
cmake -DCMAKE_TOOLCHAIN_FILE=../toolchains/aarch64-linux-gnu.toolchain.cmake -DNCNN_ARM82=OFF -DNCNN_BUILD_TOOLS=OFF -DNCNN_BUILD_EXAMPLES=OFF -DNCNN_BUILD_TESTS=ON ..
cmake -DCMAKE_TOOLCHAIN_FILE=../toolchains/aarch64-linux-gnu.toolchain.cmake -DNCNN_ARM82=OFF -DNCNN_
ARM82DOT=OFF -DNCNN_
BUILD_TOOLS=OFF -DNCNN_BUILD_EXAMPLES=OFF -DNCNN_BUILD_TESTS=ON ..
cmake --build . -j 2
-
name
:
test-noint8
run
:
|
...
...
@@ -104,7 +104,7 @@ jobs:
-
name
:
build
run
:
|
mkdir build && cd build
cmake -DCMAKE_TOOLCHAIN_FILE=../toolchains/aarch64-linux-gnu.toolchain.cmake -DNCNN_ARM82=ON -DNCNN_BUILD_TOOLS=OFF -DNCNN_BUILD_EXAMPLES=OFF -DNCNN_BUILD_TESTS=ON ..
cmake -DCMAKE_TOOLCHAIN_FILE=../toolchains/aarch64-linux-gnu.toolchain.cmake -DNCNN_ARM82=ON -DNCNN_
ARM82DOT=ON -DNCNN_
BUILD_TOOLS=OFF -DNCNN_BUILD_EXAMPLES=OFF -DNCNN_BUILD_TESTS=ON ..
cmake --build . -j 2
-
name
:
test
run
:
|
...
...
@@ -115,7 +115,7 @@ jobs:
-
name
:
build-noint8
run
:
|
mkdir build-noint8 && cd build-noint8
cmake -DCMAKE_TOOLCHAIN_FILE=../toolchains/aarch64-linux-gnu.toolchain.cmake -DNCNN_ARM82=ON -DNCNN_BUILD_TOOLS=OFF -DNCNN_BUILD_EXAMPLES=OFF -DNCNN_BUILD_TESTS=ON -DNCNN_INT8=OFF ..
cmake -DCMAKE_TOOLCHAIN_FILE=../toolchains/aarch64-linux-gnu.toolchain.cmake -DNCNN_ARM82=ON -DNCNN_
ARM82DOT=ON -DNCNN_
BUILD_TOOLS=OFF -DNCNN_BUILD_EXAMPLES=OFF -DNCNN_BUILD_TESTS=ON -DNCNN_INT8=OFF ..
cmake --build . -j 2
-
name
:
test-noint8
run
:
|
...
...
CMakeLists.txt
浏览文件 @
ad37c34d
...
...
@@ -132,9 +132,11 @@ if((IOS AND CMAKE_OSX_ARCHITECTURES MATCHES "arm")
if
(
NCNN_COMPILER_SUPPORT_ARM82_FP16
)
option
(
NCNN_ARM82
"optimize aarch64 platform with armv8.2"
ON
)
if
(
NCNN_COMPILER_SUPPORT_ARM82_FP16_DOTPROD
)
option
(
NCNN_ARM82DOT
"optimize aarch64 platform with armv8.2 dotprod."
ON
)
if
(
NCNN_ARM82
)
option
(
NCNN_ARM82DOT
"optimize aarch64 platform with armv8.2 dotprod."
ON
)
endif
()
else
()
message
(
WARNING
"The compiler does not support armv8.2 dotprod.
Upgrading your toolchain is strongly recommended
."
)
message
(
WARNING
"The compiler does not support armv8.2 dotprod.
NCNN_ARM82DOT will be OFF
."
)
endif
()
else
()
message
(
WARNING
"The compiler does not support armv8.2. NCNN_ARM82 will be OFF."
)
...
...
src/net.cpp
浏览文件 @
ad37c34d
...
...
@@ -2396,7 +2396,7 @@ int Extractor::input(const char* blob_name, const Mat& in)
const
std
::
vector
<
const
char
*>&
input_names
=
d
->
net
->
input_names
();
for
(
size_t
i
=
0
;
i
<
input_names
.
size
();
i
++
)
{
NCNN_LOGE
(
" ex.input(
\"
%s
\"
, in%d);"
,
input_names
[
i
],
i
);
NCNN_LOGE
(
" ex.input(
\"
%s
\"
, in%d);"
,
input_names
[
i
],
(
int
)
i
);
}
return
-
1
;
...
...
@@ -2414,7 +2414,7 @@ int Extractor::extract(const char* blob_name, Mat& feat, int type)
const
std
::
vector
<
const
char
*>&
output_names
=
d
->
net
->
output_names
();
for
(
size_t
i
=
0
;
i
<
output_names
.
size
();
i
++
)
{
NCNN_LOGE
(
" ex.extract(
\"
%s
\"
, out%d);"
,
output_names
[
i
],
i
);
NCNN_LOGE
(
" ex.extract(
\"
%s
\"
, out%d);"
,
output_names
[
i
],
(
int
)
i
);
}
return
-
1
;
...
...
@@ -2605,7 +2605,7 @@ int Extractor::input(const char* blob_name, const VkMat& in)
const
std
::
vector
<
const
char
*>&
input_names
=
d
->
net
->
input_names
();
for
(
size_t
i
=
0
;
i
<
input_names
.
size
();
i
++
)
{
NCNN_LOGE
(
" ex.input(
\"
%s
\"
, in%d);"
,
input_names
[
i
],
i
);
NCNN_LOGE
(
" ex.input(
\"
%s
\"
, in%d);"
,
input_names
[
i
],
(
int
)
i
);
}
return
-
1
;
...
...
@@ -2623,7 +2623,7 @@ int Extractor::extract(const char* blob_name, VkMat& feat, VkCompute& cmd)
const
std
::
vector
<
const
char
*>&
output_names
=
d
->
net
->
output_names
();
for
(
size_t
i
=
0
;
i
<
output_names
.
size
();
i
++
)
{
NCNN_LOGE
(
" ex.extract(
\"
%s
\"
, out%d);"
,
output_names
[
i
],
i
);
NCNN_LOGE
(
" ex.extract(
\"
%s
\"
, out%d);"
,
output_names
[
i
],
(
int
)
i
);
}
return
-
1
;
...
...
@@ -2641,7 +2641,7 @@ int Extractor::input(const char* blob_name, const VkImageMat& in)
const
std
::
vector
<
const
char
*>&
input_names
=
d
->
net
->
input_names
();
for
(
size_t
i
=
0
;
i
<
input_names
.
size
();
i
++
)
{
NCNN_LOGE
(
" ex.input(
\"
%s
\"
, in%d);"
,
input_names
[
i
],
i
);
NCNN_LOGE
(
" ex.input(
\"
%s
\"
, in%d);"
,
input_names
[
i
],
(
int
)
i
);
}
return
-
1
;
...
...
@@ -2659,7 +2659,7 @@ int Extractor::extract(const char* blob_name, VkImageMat& feat, VkCompute& cmd)
const
std
::
vector
<
const
char
*>&
output_names
=
d
->
net
->
output_names
();
for
(
size_t
i
=
0
;
i
<
output_names
.
size
();
i
++
)
{
NCNN_LOGE
(
" ex.extract(
\"
%s
\"
, out%d);"
,
output_names
[
i
],
i
);
NCNN_LOGE
(
" ex.extract(
\"
%s
\"
, out%d);"
,
output_names
[
i
],
(
int
)
i
);
}
return
-
1
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录