我正在RV1126上做视频/图像处理,目前单张图片处理时间太长,处理视频帧率达不到。有大佬了解这块板子上如何进行处理速度提升吗?
用 rga 加速处理
799959745 发表于 2022-4-26 08:53
用 rga 加速处理
cmake编译rga的时候出现以下问题
我已经按照linux-rga里的README修改了buildroot.cmake里的以下配置
- 指定TOOLCHAIN_HOME为交叉编译工具的路径
- 指定CMAKE_C_COMPILER为gcc编译命令的路径
- 指定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。 停止。
FLLFFL 发表于 2022-4-29 16:15
cmake编译rga的时候出现以下问题
我已经按照linux-rga里的README修改了buildroot.cmake里的以下配置
- …
在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)
FLLFFL 发表于 2022-4-29 16:34
在CMakeLists.txt里面,不知道为什么这里的两个变量没有定义
我将它改成了 lib 和 bin,
编译好像通过 …
不是使用cmake直接编译的,是在buildroot系统里面添加rga配置编译。直接编译会找不到库文件
799959745 发表于 2022-5-5 10:59
不是使用cmake直接编译的,是在buildroot系统里面添加rga配置编译。直接编译会找不到库文件
具体怎么添加配置呢,是修改aio-rv1126-jd4.mk这个文件吗
799959745 发表于 2022-5-5 10:59
不是使用cmake直接编译的,是在buildroot系统里面添加rga配置编译。直接编译会找不到库文件
还是说用这个命令?
decatur@ubuntu:~/rv1126_rv1109_linux_release_20211022$ ./build.sh external/linux-rga
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]#

