Firefly开源社区

打印 上一主题 下一主题

[技术讨论] RV1126的硬件加速有哪些方法?

79

积分

0

威望

0

贡献

技术小白

积分
79
QQ

RV1126的硬件加速有哪些方法?

发表于 2022-4-25 20:10:09      浏览:3389 | 回复:7        打印      只看该作者   [复制链接] 楼主
我正在RV1126上做视频/图像处理,目前单张图片处理时间太长,处理视频帧率达不到。有大佬了解这块板子上如何进行处理速度提升吗?

回复

使用道具 举报

1万

积分

7

威望

0

贡献

技术大神

Rank: 8Rank: 8

积分
11377

突出贡献

发表于 2022-4-26 08:53:05        只看该作者  沙发
用 rga 加速处理
回复

使用道具 举报

79

积分

0

威望

0

贡献

技术小白

积分
79
QQ
发表于 2022-4-29 16:15:19        只看该作者  板凳

cmake编译rga的时候出现以下问题
我已经按照linux-rga里的README修改了buildroot.cmake里的以下配置
1. 指定TOOLCHAIN_HOME为交叉编译工具的路径
2. 指定CMAKE_C_COMPILER为gcc编译命令的路径
3. 指定CMAKE_CXX_COMPILER为g++编译命令的路径



请问这个问题有什么解决方法吗?

decatur@ubuntu:~/rv1126_rv1109_linux_release_20211022/external/linux-rga/build$ ../cmake-linux.sh
default to Release build for GCC builds
RGA is compiling with cmake
Generated version.h
set buildroot toolchain
-- The C compiler identification is GNU 6.3.1
-- The CXX compiler identification is GNU 6.3.1
-- Check for working C compiler: /home/decatur/rv1126_rv1109_linux_release_20211022/prebuilts/gcc/linux-x86/arm/gcc-linaro-6.3.1-2017.05-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-gcc
-- Check for working C compiler: /home/decatur/rv1126_rv1109_linux_release_20211022/prebuilts/gcc/linux-x86/arm/gcc-linaro-6.3.1-2017.05-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /home/decatur/rv1126_rv1109_linux_release_20211022/prebuilts/gcc/linux-x86/arm/gcc-linaro-6.3.1-2017.05-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-g++
-- Check for working CXX compiler: /home/decatur/rv1126_rv1109_linux_release_20211022/prebuilts/gcc/linux-x86/arm/gcc-linaro-6.3.1-2017.05-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-g++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Error at CMakeLists.txt:83 (install):
  install TARGETS given no LIBRARY DESTINATION for shared library target
  "rga".




-- Configuring incomplete, errors occurred!
See also "/home/decatur/rv1126_rv1109_linux_release_20211022/external/linux-rga/build/CMakeFiles/CMakeOutput.log".
make: *** 没有指明目标并且找不到 makefile。 停止。


回复

使用道具 举报

79

积分

0

威望

0

贡献

技术小白

积分
79
QQ
发表于 2022-4-29 16:34:16        只看该作者  地板
FLLFFL 发表于 2022-4-29 16:15
cmake编译rga的时候出现以下问题
我已经按照linux-rga里的README修改了buildroot.cmake里的以下配置
1. ...

在CMakeLists.txt里面,不知道为什么这里的两个变量没有定义
我将它改成了 lib 和 bin,
编译好像通过了


#install(TARGETS rga rgaImDemo
#        LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
#        RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
install(TARGETS rga rgaImDemo
        LIBRARY DESTINATION lib
        RUNTIME DESTINATION bin)





回复

使用道具 举报

1万

积分

7

威望

0

贡献

技术大神

Rank: 8Rank: 8

积分
11377

突出贡献

发表于 2022-5-5 10:59:09        只看该作者  5#
FLLFFL 发表于 2022-4-29 16:34
在CMakeLists.txt里面,不知道为什么这里的两个变量没有定义
我将它改成了 lib 和 bin,
编译好像通过 ...

不是使用cmake直接编译的,是在buildroot系统里面添加rga配置编译。直接编译会找不到库文件
回复

使用道具 举报

79

积分

0

威望

0

贡献

技术小白

积分
79
QQ
发表于 2022-5-13 10:25:44        只看该作者  6#
799959745 发表于 2022-5-5 10:59
不是使用cmake直接编译的,是在buildroot系统里面添加rga配置编译。直接编译会找不到库文件

具体怎么添加配置呢,是修改aio-rv1126-jd4.mk这个文件吗
回复

使用道具 举报

79

积分

0

威望

0

贡献

技术小白

积分
79
QQ
发表于 2022-5-13 11:06:04        只看该作者  7#
799959745 发表于 2022-5-5 10:59
不是使用cmake直接编译的,是在buildroot系统里面添加rga配置编译。直接编译会找不到库文件

还是说用这个命令?
decatur@ubuntu:~/rv1126_rv1109_linux_release_20211022$ ./build.sh external/linux-rga
回复

使用道具 举报

79

积分

0

威望

0

贡献

技术小白

积分
79
QQ
发表于 2022-5-13 11:19:58        只看该作者  8#
799959745 发表于 2022-5-5 10:59
不是使用cmake直接编译的,是在buildroot系统里面添加rga配置编译。直接编译会找不到库文件

您说的找不到库文件是指这个libstdc++.so.6么

[root@RV1126_RV1109:/code/test-rga]# ./rgaImDemo --copy
./rgaImDemo: /lib/libstdc++.so.6: no version information available (required by librga.so)
./rgaImDemo: /lib/libstdc++.so.6: no version information available (required by librga.so)
./rgaImDemo: /lib/libstdc++.so.6: no version information available (required by librga.so)
./rgaImDemo: /lib/libstdc++.so.6: no version information available (required by librga.so)
./rgaImDemo: /lib/libstdc++.so.6: no version information available (required by librga.so)
./rgaImDemo: /lib/libstdc++.so.6: no version information available (required by librga.so)
Start selecting mode 0
im2d copy ..
MODE = 1
open file
rga_api version 1.3.0_[11] (b40e4b6 build: 2022-04-29 16:30:11 base: )
copying .... cost time 6710 us, Run successfully
Expected read data      : 3686400 bit
Expected write data     : 3686400 bit
Expected time           : 1536 us
open /usr/data/out0w1280-h720-rgba8888.bin and write ok
[root@RV1126_RV1109:/code/test-rga]#
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

友情链接 : 爱板网 电子发烧友论坛 云汉电子社区 粤ICP备14022046号-2
快速回复 返回顶部 返回列表