# cdsp_hu **Repository Path**: torrescguo/cdsp_hu ## Basic Information - **Project Name**: cdsp_hu - **Description**: 该项目是Hexagon DSP 的开发项目,主要分享在Hexagon DSP上进行算法测试,包括签名、Android 可执行程序、算法测试等。 - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-01-23 - **Last Updated**: 2024-01-23 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Hexagon DSP Algo Demo #### How to start a signature and demo test! * Run next command step by step! * step1 ``` sh run1_getserial.sh ``` 得到 ``` adbd is already running as root [libfs_mgr]dt_fstab: Skip disabled entry for partition vendor [libfs_mgr]dt_fstab: Skip disabled entry for partition vendor [libfs_mgr]dt_fstab: Skip disabled entry for partition vendor [libfs_mgr]dt_fstab: Skip disabled entry for partition vendor remount succeeded ./bin/getserial: 1 file pushed. 0.8 MB/s (7456 bytes in 0.008s) ####################Serial number (see below)########################### Serial Num : 0xd08a9210 ####################Serial number (see above)########################### ``` * step2 ``` sh run2_signature.sh 0xd08a9210 ``` 得到 ``` Reading package lists... Done Building dependency tree Reading state information... Done python2.7 is already the newest version (2.7.17-1~18.04ubuntu1.11). 0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded. Logging to /home/hubery/hubery/gitcode/cdsp_hu/output/Elfsigner_log.txt Attention: Use of this tool is conditioned upon your compliance with Qualcomm Technologies'(and its affiliates') license terms and conditions; including, without limitations, such terms and conditions addressing the use of such tools with open source software. Agree? [y/n]: y Signing a file may take up to 3 minutes due to network connectivity. Please wait patiently. ------------------------------------------------------------ Signing complete! Output saved at /home/hubery/hubery/gitcode/cdsp_hu/output/testsig-0xd08a9210.so adbd is already running as root [libfs_mgr]dt_fstab: Skip disabled entry for partition vendor [libfs_mgr]dt_fstab: Skip disabled entry for partition vendor [libfs_mgr]dt_fstab: Skip disabled entry for partition vendor [libfs_mgr]dt_fstab: Skip disabled entry for partition vendor remount succeeded output/testsig-0xd08a9210.so: 1 file pushed. 1.1 MB/s (24784 bytes in 0.021s) ``` * step3 ``` sh run3_setfreq.sh 998 ``` 得到 ``` adbd is already running as root [libfs_mgr]dt_fstab: Skip disabled entry for partition vendor [libfs_mgr]dt_fstab: Skip disabled entry for partition vendor [libfs_mgr]__mount(source=/dev/block/dm-3,target=/mnt/scratch,type=f2fs)=0: Success Using overlayfs for /system [libfs_mgr]dt_fstab: Skip disabled entry for partition vendor [libfs_mgr]dt_fstab: Skip disabled entry for partition vendor remount succeeded ./bin/sysMonApp: 1 file pushed. 1.8 MB/s (91636 bytes in 0.049s) Domain Configured Compute DSP Calling cdsp set clocks function with following parameters: Core clock : 998 MHz Q6 AXI clock : 100 MHz Successfully set the required clock configurations, Call the remove API once done... Example: sysMonApp clocks remove Running getstate command to query current clocks/votes: Domain Configured Compute DSP DSP Core clock :998.40MHz SNOC Vote:0.00MHz MEMNOC Vote:400.00MHz GuestOS : Total Heap:1536.00KB Available Heap:804.20KB Max.Free Bin:762.64KB Measured SNOC (/clk/snoc) :120.00MHz Measured BIMC (/clk/bimc) :451.26MHz ``` * step4 ``` sh run4_gaussian7x7.sh ``` 得到 ``` exagon_SDK/3.5.4/tools/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64" /home/hubery/Qualcomm/Hexagon_SDK/3.5.4/build/make.d.ext/android/defines_android_Release_aarch64.min:41: "Using default platform location: ANDROID_PLATFORM_DIR=/home/hubery/Qualcomm/Hexagon_SDK/3.5.4/tools/android-ndk-r19c/platforms/android-26/arch-arm64" ************ LIB=libcdsprpc ************ making /home/hubery/Qualcomm/Hexagon_SDK/3.5.4/tools/qaic making /home/hubery/Qualcomm/Hexagon_SDK/3.5.4/libs/common/rpcmem making /home/hubery/Qualcomm/Hexagon_SDK/3.5.4/libs/common/atomic making /home/hubery/Qualcomm/Hexagon_SDK/3.5.4/test/common/test_util making /home/hubery/Qualcomm/Hexagon_SDK/3.5.4/libs/fastcv/dspCV making . cat: android_Release_aarch64/gaussian7x7_link.txt: No such file or directory /home/hubery/Qualcomm/Hexagon_SDK/3.5.4/build/make.d/rules.min:820: target 'hexagon_Release_dynamic_toolv83_v66/gaussian7x7_q.so' given more than once in the same rule /home/hubery/Qualcomm/Hexagon_SDK/3.5.4/build/make.d/rules.min:1351: warning: overriding recipe for target '/home/hubery/hubery/gitcode/cdsp_hu/gaussian7x7/hexagon_Release_dynamic_toolv83_v66/ship/gaussian7x7_q.so' /home/hubery/Qualcomm/Hexagon_SDK/3.5.4/build/make.d/rules.min:1351: warning: ignoring old recipe for target '/home/hubery/hubery/gitcode/cdsp_hu/gaussian7x7/hexagon_Release_dynamic_toolv83_v66/ship/gaussian7x7_q.so' making /home/hubery/Qualcomm/Hexagon_SDK/3.5.4/tools/qaic make[1]: Entering directory '/home/hubery/Qualcomm/Hexagon_SDK/3.5.4/tools/qaic' make[1]: 'bin/qaic' is up to date. make[1]: Leaving directory '/home/hubery/Qualcomm/Hexagon_SDK/3.5.4/tools/qaic' making /home/hubery/Qualcomm/Hexagon_SDK/3.5.4/libs/common/rpcmem make[1]: Entering directory '/home/hubery/Qualcomm/Hexagon_SDK/3.5.4/libs/common/rpcmem' making /home/hubery/Qualcomm/Hexagon_SDK/3.5.4/tools/qaic make[2]: Entering directory '/home/hubery/Qualcomm/Hexagon_SDK/3.5.4/tools/qaic' make[2]: 'bin/qaic' is up to date. make[2]: Leaving directory '/home/hubery/Qualcomm/Hexagon_SDK/3.5.4/tools/qaic' making . make[2]: Entering directory '/home/hubery/Qualcomm/Hexagon_SDK/3.5.4/libs/common/rpcmem' make[2]: Nothing to be done for 'all'. make[2]: Leaving directory '/home/hubery/Qualcomm/Hexagon_SDK/3.5.4/libs/common/rpcmem' make[1]: Leaving directory '/home/hubery/Qualcomm/Hexagon_SDK/3.5.4/libs/common/rpcmem' making /home/hubery/Qualcomm/Hexagon_SDK/3.5.4/libs/common/atomic make[1]: Entering directory '/home/hubery/Qualcomm/Hexagon_SDK/3.5.4/libs/common/atomic' making /home/hubery/Qualcomm/Hexagon_SDK/3.5.4/tools/qaic make[2]: Entering directory '/home/hubery/Qualcomm/Hexagon_SDK/3.5.4/tools/qaic' make[2]: 'bin/qaic' is up to date. make[2]: Leaving directory '/home/hubery/Qualcomm/Hexagon_SDK/3.5.4/tools/qaic' making . make[2]: Entering directory '/home/hubery/Qualcomm/Hexagon_SDK/3.5.4/libs/common/atomic' make[2]: Nothing to be done for 'all'. make[2]: Leaving directory '/home/hubery/Qualcomm/Hexagon_SDK/3.5.4/libs/common/atomic' make[1]: Leaving directory '/home/hubery/Qualcomm/Hexagon_SDK/3.5.4/libs/common/atomic' making /home/hubery/Qualcomm/Hexagon_SDK/3.5.4/test/common/test_util make[1]: Entering directory '/home/hubery/Qualcomm/Hexagon_SDK/3.5.4/test/common/test_util' making /home/hubery/Qualcomm/Hexagon_SDK/3.5.4/tools/qaic make[2]: Entering directory '/home/hubery/Qualcomm/Hexagon_SDK/3.5.4/tools/qaic' make[2]: 'bin/qaic' is up to date. make[2]: Leaving directory '/home/hubery/Qualcomm/Hexagon_SDK/3.5.4/tools/qaic' making . make[2]: Entering directory '/home/hubery/Qualcomm/Hexagon_SDK/3.5.4/test/common/test_util' make[2]: Nothing to be done for 'all'. make[2]: Leaving directory '/home/hubery/Qualcomm/Hexagon_SDK/3.5.4/test/common/test_util' make[1]: Leaving directory '/home/hubery/Qualcomm/Hexagon_SDK/3.5.4/test/common/test_util' making /home/hubery/Qualcomm/Hexagon_SDK/3.5.4/libs/fastcv/dspCV make[1]: Entering directory '/home/hubery/Qualcomm/Hexagon_SDK/3.5.4/libs/fastcv/dspCV' making /home/hubery/Qualcomm/Hexagon_SDK/3.5.4/tools/qaic make[2]: Entering directory '/home/hubery/Qualcomm/Hexagon_SDK/3.5.4/tools/qaic' make[2]: 'bin/qaic' is up to date. make[2]: Leaving directory '/home/hubery/Qualcomm/Hexagon_SDK/3.5.4/tools/qaic' making . make[2]: Entering directory '/home/hubery/Qualcomm/Hexagon_SDK/3.5.4/libs/fastcv/dspCV' make[2]: Nothing to be done for 'all'. make[2]: Leaving directory '/home/hubery/Qualcomm/Hexagon_SDK/3.5.4/libs/fastcv/dspCV' make[1]: Leaving directory '/home/hubery/Qualcomm/Hexagon_SDK/3.5.4/libs/fastcv/dspCV' making . make[1]: Entering directory '/home/hubery/hubery/gitcode/cdsp_hu/gaussian7x7' /home/hubery/Qualcomm/Hexagon_SDK/3.5.4/build/make.d/rules.min:820: target 'hexagon_Release_dynamic_toolv83_v66/gaussian7x7_q.so' given more than once in the same rule /home/hubery/Qualcomm/Hexagon_SDK/3.5.4/build/make.d/rules.min:1351: warning: overriding recipe for target '/home/hubery/hubery/gitcode/cdsp_hu/gaussian7x7/hexagon_Release_dynamic_toolv83_v66/ship/gaussian7x7_q.so' /home/hubery/Qualcomm/Hexagon_SDK/3.5.4/build/make.d/rules.min:1351: warning: ignoring old recipe for target '/home/hubery/hubery/gitcode/cdsp_hu/gaussian7x7/hexagon_Release_dynamic_toolv83_v66/ship/gaussian7x7_q.so' "mkdir" -p hexagon_Release_dynamic_toolv83_v66 "mkdir" -p hexagon_Release_dynamic_toolv83_v66 /home/hubery/Qualcomm/Hexagon_SDK/3.5.4/tools/qaic/bin/qaic -mdll -o hexagon_Release_dynamic_toolv83_v66 -I/home/hubery/Qualcomm/Hexagon_SDK/3.5.4/libs/common/qurt//computev66/include -I/home/hubery/Qualcomm/Hexagon_SDK/3.5.4/libs/common/qurt//computev66/include/qurt -I/home/hubery/Qualcomm/Hexagon_SDK/3.5.4/libs/common/qurt//computev66/include/posix -I= -I/home/hubery/Qualcomm/Hexagon_SDK/3.5.4/incs -I/home/hubery/Qualcomm/Hexagon_SDK/3.5.4/incs/stddef -I/home/hubery/Qualcomm/Hexagon_SDK/3.5.4/incs/qnx -I/home/hubery/Qualcomm/Hexagon_SDK/3.5.4/libs/common/remote/ship/hexagon_Release_dynamic_toolv83_v66 -I/home/hubery/Qualcomm/Hexagon_SDK/3.5.4/libs/common/qnx/ship/hexagon_Release_dynamic_toolv83_v66 -I/home/hubery/Qualcomm/Hexagon_SDK/3.5.4/libs/common/rtld/ship/hexagon_Release_dynamic_toolv83_v66 -I/home/hubery/Qualcomm/Hexagon_SDK/3.5.4/libs/common/apps_mem_heap/ship/hexagon_Release_dynamic_toolv83_v66 -I/home/hubery/Qualcomm/Hexagon_SDK/3.5.4/libs/common/rpcmem/hexagon_Release_dynamic_toolv83_v66/ship -I/home/hubery/Qualcomm/Hexagon_SDK/3.5.4/libs/common/atomic/hexagon_Release_dynamic_toolv83_v66/ship -I/home/hubery/Qualcomm/Hexagon_SDK/3.5.4/test/common/test_util/hexagon_Release_dynamic_toolv83_v66/ship -I/home/hubery/Qualcomm/Hexagon_SDK/3.5.4/libs/fastcv/dspCV/hexagon_Release_dynamic_toolv83_v66/ship -Ihexagon_Release_dynamic_toolv83_v66 inc/gaussian7x7.idl /home/hubery/Qualcomm/Hexagon_SDK/3.5.4/tools/HEXAGON_Tools/8.3.07/Tools/bin/hexagon-clang -mv66 -c -G0 -O2 -Wall -Werror -Wno-cast-align -Wpointer-arith -Wno-missing-braces -Wno-strict-aliasing -fno-exceptions -fno-strict-aliasing -fno-zero-initialized-in-bss -fdata-sections -fpic -D__V_DYNAMIC__ -Wstrict-prototypes -Wnested-externs -mhvx -mhvx-length=128B -D__FILENAME__=\"gaussian7x7_skel.c\" -I/home/hubery/Qualcomm/Hexagon_SDK/3.5.4/libs/common/qurt//computev66/include -I/home/hubery/Qualcomm/Hexagon_SDK/3.5.4/libs/common/qurt//computev66/include/qurt -I/home/hubery/Qualcomm/Hexagon_SDK/3.5.4/libs/common/qurt//computev66/include/posix -I= -I/home/hubery/Qualcomm/Hexagon_SDK/3.5.4/incs -I/home/hubery/Qualcomm/Hexagon_SDK/3.5.4/incs/stddef -I/home/hubery/Qualcomm/Hexagon_SDK/3.5.4/incs/qnx -I/home/hubery/Qualcomm/Hexagon_SDK/3.5.4/libs/common/remote/ship/hexagon_Release_dynamic_toolv83_v66 -I/home/hubery/Qualcomm/Hexagon_SDK/3.5.4/libs/common/qnx/ship/hexagon_Release_dynamic_toolv83_v66 -I/home/hubery/Qualcomm/Hexagon_SDK/3.5.4/libs/common/rtld/ship/hexagon_Release_dynamic_toolv83_v66 -I/home/hubery/Qualcomm/Hexagon_SDK/3.5.4/libs/common/apps_mem_heap/ship/hexagon_Release_dynamic_toolv83_v66 -I/home/hubery/Qualcomm/Hexagon_SDK/3.5.4/libs/common/rpcmem/hexagon_Release_dynamic_toolv83_v66/ship -I/home/hubery/Qualcomm/Hexagon_SDK/3.5.4/libs/common/atomic/hexagon_Release_dynamic_toolv83_v66/ship -I/home/hubery/Qualcomm/Hexagon_SDK/3.5.4/test/common/test_util/hexagon_Release_dynamic_toolv83_v66/ship -I/home/hubery/Qualcomm/Hexagon_SDK/3.5.4/libs/fastcv/dspCV/hexagon_Release_dynamic_toolv83_v66/ship -Ihexagon_Release_dynamic_toolv83_v66 -o hexagon_Release_dynamic_toolv83_v66/gaussian7x7_skel.o hexagon_Release_dynamic_toolv83_v66/gaussian7x7_skel.c /home/hubery/Qualcomm/Hexagon_SDK/3.5.4/tools/HEXAGON_Tools/8.3.07/Tools/bin/hexagon-clang -mv66 -c -G0 -O2 -Wall -Werror -Wno-cast-align -Wpointer-arith -Wno-missing-braces -Wno-strict-aliasing -fno-exceptions -fno-strict-aliasing -fno-zero-initialized-in-bss -fdata-sections -fpic -D__V_DYNAMIC__ -Wstrict-prototypes -Wnested-externs -mhvx -mhvx-length=128B -D__FILENAME__=\"gaussian7x7_imp.c\" -I/home/hubery/Qualcomm/Hexagon_SDK/3.5.4/libs/common/qurt//computev66/include -I/home/hubery/Qualcomm/Hexagon_SDK/3.5.4/libs/common/qurt//computev66/include/qurt -I/home/hubery/Qualcomm/Hexagon_SDK/3.5.4/libs/common/qurt//computev66/include/posix -I= -I/home/hubery/Qualcomm/Hexagon_SDK/3.5.4/incs -I/home/hubery/Qualcomm/Hexagon_SDK/3.5.4/incs/stddef -I/home/hubery/Qualcomm/Hexagon_SDK/3.5.4/incs/qnx -I/home/hubery/Qualcomm/Hexagon_SDK/3.5.4/libs/common/remote/ship/hexagon_Release_dynamic_toolv83_v66 -I/home/hubery/Qualcomm/Hexagon_SDK/3.5.4/libs/common/qnx/ship/hexagon_Release_dynamic_toolv83_v66 -I/home/hubery/Qualcomm/Hexagon_SDK/3.5.4/libs/common/rtld/ship/hexagon_Release_dynamic_toolv83_v66 -I/home/hubery/Qualcomm/Hexagon_SDK/3.5.4/libs/common/apps_mem_heap/ship/hexagon_Release_dynamic_toolv83_v66 -I/home/hubery/Qualcomm/Hexagon_SDK/3.5.4/libs/common/rpcmem/hexagon_Release_dynamic_toolv83_v66/ship -I/home/hubery/Qualcomm/Hexagon_SDK/3.5.4/libs/common/atomic/hexagon_Release_dynamic_toolv83_v66/ship -I/home/hubery/Qualcomm/Hexagon_SDK/3.5.4/test/common/test_util/hexagon_Release_dynamic_toolv83_v66/ship -I/home/hubery/Qualcomm/Hexagon_SDK/3.5.4/libs/fastcv/dspCV/hexagon_Release_dynamic_toolv83_v66/ship -Ihexagon_Release_dynamic_toolv83_v66 -o hexagon_Release_dynamic_toolv83_v66/gaussian7x7_imp.o src/gaussian7x7_imp.c /home/hubery/Qualcomm/Hexagon_SDK/3.5.4/tools/HEXAGON_Tools/8.3.07/Tools/bin/hexagon-clang++ -mv66 -c -G0 -O2 -Wall -Werror -Wno-cast-align -Wpointer-arith -Wno-missing-braces -Wno-strict-aliasing -fno-exceptions -fno-strict-aliasing -fno-zero-initialized-in-bss -fdata-sections -fpic -D__V_DYNAMIC__ -mhvx -mhvx-length=128B -D__FILENAME__=\"gaussian7x7_asm.S\" -I/home/hubery/Qualcomm/Hexagon_SDK/3.5.4/libs/common/qurt//computev66/include -I/home/hubery/Qualcomm/Hexagon_SDK/3.5.4/libs/common/qurt//computev66/include/qurt -I/home/hubery/Qualcomm/Hexagon_SDK/3.5.4/libs/common/qurt//computev66/include/posix -I= -I/home/hubery/Qualcomm/Hexagon_SDK/3.5.4/incs -I/home/hubery/Qualcomm/Hexagon_SDK/3.5.4/incs/stddef -I/home/hubery/Qualcomm/Hexagon_SDK/3.5.4/incs/qnx -I/home/hubery/Qualcomm/Hexagon_SDK/3.5.4/libs/common/remote/ship/hexagon_Release_dynamic_toolv83_v66 -I/home/hubery/Qualcomm/Hexagon_SDK/3.5.4/libs/common/qnx/ship/hexagon_Release_dynamic_toolv83_v66 -I/home/hubery/Qualcomm/Hexagon_SDK/3.5.4/libs/common/rtld/ship/hexagon_Release_dynamic_toolv83_v66 -I/home/hubery/Qualcomm/Hexagon_SDK/3.5.4/libs/common/apps_mem_heap/ship/hexagon_Release_dynamic_toolv83_v66 -I/home/hubery/Qualcomm/Hexagon_SDK/3.5.4/libs/common/rpcmem/hexagon_Release_dynamic_toolv83_v66/ship -I/home/hubery/Qualcomm/Hexagon_SDK/3.5.4/libs/common/atomic/hexagon_Release_dynamic_toolv83_v66/ship -I/home/hubery/Qualcomm/Hexagon_SDK/3.5.4/test/common/test_util/hexagon_Release_dynamic_toolv83_v66/ship -I/home/hubery/Qualcomm/Hexagon_SDK/3.5.4/libs/fastcv/dspCV/hexagon_Release_dynamic_toolv83_v66/ship -Ihexagon_Release_dynamic_toolv83_v66 -o hexagon_Release_dynamic_toolv83_v66/gaussian7x7_asm.o asm_src/gaussian7x7_asm.S cat: hexagon_Release_dynamic_toolv83_v66/libgaussian7x7_skel_so_link.txt: No such file or directory /home/hubery/Qualcomm/Hexagon_SDK/3.5.4/tools/HEXAGON_Tools/8.3.07/Tools/bin/hexagon-clang @hexagon_Release_dynamic_toolv83_v66/libgaussian7x7_skel_so_link.txt Target: hexagon Thread model: posix QuIC LLVM Hexagon Clang version 8.3.07 (based on LLVM 7.0.0) InstalledDir: /home/hubery/Qualcomm/Hexagon_SDK/3.5.4/tools/HEXAGON_Tools/8.3.07/Tools/bin "/home/hubery/Qualcomm/Hexagon_SDK/3.5.4/tools/HEXAGON_Tools/8.3.07/Tools/bin/hexagon-link" -z relro --hash-style=sysv -march=hexagon -mcpu=hexagonv66 -shared -call_shared -G0 -o hexagon_Release_dynamic_toolv83_v66/libgaussian7x7_skel.so /home/hubery/Qualcomm/Hexagon_SDK/3.5.4/tools/HEXAGON_Tools/8.3.07/Tools/bin/../target/hexagon/lib/v66/G0/pic/initS.o -L/home/hubery/Qualcomm/Hexagon_SDK/3.5.4/tools/HEXAGON_Tools/8.3.07/Tools/bin/../target/hexagon/lib/v66/G0/pic -L/home/hubery/Qualcomm/Hexagon_SDK/3.5.4/tools/HEXAGON_Tools/8.3.07/Tools/bin/../target/hexagon/lib/v66/G0 -L/home/hubery/Qualcomm/Hexagon_SDK/3.5.4/tools/HEXAGON_Tools/8.3.07/Tools/bin/../target/hexagon/lib/v66 -L/home/hubery/Qualcomm/Hexagon_SDK/3.5.4/tools/HEXAGON_Tools/8.3.07/Tools/bin/../target/hexagon/lib --no-threads -Bsymbolic --wrap=malloc --wrap=calloc --wrap=free --wrap=realloc --wrap=memalign --wrap=__stack_chk_fail -lc -Map=hexagon_Release_dynamic_toolv83_v66/libgaussian7x7_skel.so.map -soname=libgaussian7x7_skel.so --start-group hexagon_Release_dynamic_toolv83_v66/gaussian7x7_skel.o hexagon_Release_dynamic_toolv83_v66/gaussian7x7_imp.o hexagon_Release_dynamic_toolv83_v66/gaussian7x7_asm.o /home/hubery/Qualcomm/Hexagon_SDK/3.5.4/libs/fastcv/dspCV/hexagon_Release_dynamic_toolv83_v66/ship/libdspCV_skel.so --end-group --start-group -lgcc --end-group /home/hubery/Qualcomm/Hexagon_SDK/3.5.4/tools/HEXAGON_Tools/8.3.07/Tools/bin/../target/hexagon/lib/v66/G0/pic/finiS.o /home/hubery/Qualcomm/Hexagon_SDK/3.5.4/tools/HEXAGON_Tools/8.3.07/Tools/bin/hexagon-clang -mv66 -c -G0 -O2 -Wall -Werror -Wno-cast-align -Wpointer-arith -Wno-missing-braces -Wno-strict-aliasing -fno-exceptions -fno-strict-aliasing -fno-zero-initialized-in-bss -fdata-sections -fpic -D__V_DYNAMIC__ -Wstrict-prototypes -Wnested-externs -mhvx -mhvx-length=128B -D__FILENAME__=\"gaussian7x7.c\" -I/home/hubery/Qualcomm/Hexagon_SDK/3.5.4/libs/common/qurt//computev66/include -I/home/hubery/Qualcomm/Hexagon_SDK/3.5.4/libs/common/qurt//computev66/include/qurt -I/home/hubery/Qualcomm/Hexagon_SDK/3.5.4/libs/common/qurt//computev66/include/posix -I= -I/home/hubery/Qualcomm/Hexagon_SDK/3.5.4/incs -I/home/hubery/Qualcomm/Hexagon_SDK/3.5.4/incs/stddef -I/home/hubery/Qualcomm/Hexagon_SDK/3.5.4/incs/qnx -I/home/hubery/Qualcomm/Hexagon_SDK/3.5.4/libs/common/remote/ship/hexagon_Release_dynamic_toolv83_v66 -I/home/hubery/Qualcomm/Hexagon_SDK/3.5.4/libs/common/qnx/ship/hexagon_Release_dynamic_toolv83_v66 -I/home/hubery/Qualcomm/Hexagon_SDK/3.5.4/libs/common/rtld/ship/hexagon_Release_dynamic_toolv83_v66 -I/home/hubery/Qualcomm/Hexagon_SDK/3.5.4/libs/common/apps_mem_heap/ship/hexagon_Release_dynamic_toolv83_v66 -I/home/hubery/Qualcomm/Hexagon_SDK/3.5.4/libs/common/rpcmem/hexagon_Release_dynamic_toolv83_v66/ship -I/home/hubery/Qualcomm/Hexagon_SDK/3.5.4/libs/common/atomic/hexagon_Release_dynamic_toolv83_v66/ship -I/home/hubery/Qualcomm/Hexagon_SDK/3.5.4/test/common/test_util/hexagon_Release_dynamic_toolv83_v66/ship -I/home/hubery/Qualcomm/Hexagon_SDK/3.5.4/libs/fastcv/dspCV/hexagon_Release_dynamic_toolv83_v66/ship -Ihexagon_Release_dynamic_toolv83_v66 -o hexagon_Release_dynamic_toolv83_v66/gaussian7x7.o src/gaussian7x7.c cat: hexagon_Release_dynamic_toolv83_v66/gaussian7x7_q_so_link.txt: No such file or directory /home/hubery/Qualcomm/Hexagon_SDK/3.5.4/tools/HEXAGON_Tools/8.3.07/Tools/bin/hexagon-clang @hexagon_Release_dynamic_toolv83_v66/gaussian7x7_q_so_link.txt Target: hexagon Thread model: posix QuIC LLVM Hexagon Clang version 8.3.07 (based on LLVM 7.0.0) InstalledDir: /home/hubery/Qualcomm/Hexagon_SDK/3.5.4/tools/HEXAGON_Tools/8.3.07/Tools/bin "/home/hubery/Qualcomm/Hexagon_SDK/3.5.4/tools/HEXAGON_Tools/8.3.07/Tools/bin/hexagon-link" -z relro --hash-style=sysv -march=hexagon -mcpu=hexagonv66 -shared -call_shared -G0 -o hexagon_Release_dynamic_toolv83_v66/gaussian7x7_q.so /home/hubery/Qualcomm/Hexagon_SDK/3.5.4/tools/HEXAGON_Tools/8.3.07/Tools/bin/../target/hexagon/lib/v66/G0/pic/initS.o -L/home/hubery/Qualcomm/Hexagon_SDK/3.5.4/tools/HEXAGON_Tools/8.3.07/Tools/bin/../target/hexagon/lib/v66/G0/pic -L/home/hubery/Qualcomm/Hexagon_SDK/3.5.4/tools/HEXAGON_Tools/8.3.07/Tools/bin/../target/hexagon/lib/v66/G0 -L/home/hubery/Qualcomm/Hexagon_SDK/3.5.4/tools/HEXAGON_Tools/8.3.07/Tools/bin/../target/hexagon/lib/v66 -L/home/hubery/Qualcomm/Hexagon_SDK/3.5.4/tools/HEXAGON_Tools/8.3.07/Tools/bin/../target/hexagon/lib --no-threads -Bsymbolic --wrap=malloc --wrap=calloc --wrap=free --wrap=realloc --wrap=memalign --wrap=__stack_chk_fail -lc -Map=hexagon_Release_dynamic_toolv83_v66/gaussian7x7_q.so.map -soname=gaussian7x7_q.so --start-group hexagon_Release_dynamic_toolv83_v66/gaussian7x7_skel.o hexagon_Release_dynamic_toolv83_v66/gaussian7x7_imp.o hexagon_Release_dynamic_toolv83_v66/gaussian7x7.o hexagon_Release_dynamic_toolv83_v66/gaussian7x7_asm.o /home/hubery/Qualcomm/Hexagon_SDK/3.5.4/libs/common/rpcmem/hexagon_Release_dynamic_toolv83_v66/ship/rpcmem.so /home/hubery/Qualcomm/Hexagon_SDK/3.5.4/libs/fastcv/dspCV/hexagon_Release_dynamic_toolv83_v66/ship/libdspCV_skel.so --end-group --start-group -lgcc --end-group /home/hubery/Qualcomm/Hexagon_SDK/3.5.4/tools/HEXAGON_Tools/8.3.07/Tools/bin/../target/hexagon/lib/v66/G0/pic/finiS.o cp -Rf /home/hubery/Qualcomm/Hexagon_SDK/3.5.4/libs/fastcv/dspCV/hexagon_Release_dynamic_toolv83_v66/ship/libdspCV_skel.so hexagon_Release_dynamic_toolv83_v66/libdspCV_skel.so cp -Rf /home/hubery/Qualcomm/Hexagon_SDK/3.5.4/libs/common/rpcmem/hexagon_Release_dynamic_toolv83_v66/ship/rpcmem.so hexagon_Release_dynamic_toolv83_v66/rpcmem.so echo ok main hexagon_Release_dynamic_toolv83_v66/gaussian7x7_q.so ok main hexagon_Release_dynamic_toolv83_v66/gaussian7x7_q.so /home/hubery/Qualcomm/Hexagon_SDK/3.5.4/tools/HEXAGON_Tools/8.3.07/Tools/bin/hexagon-sim -mv66g_1024 --simulated_returnval --usefs hexagon_Release_dynamic_toolv83_v66 --pmu_statsfile hexagon_Release_dynamic_toolv83_v66/pmu_stats.txt --cosim_file hexagon_Release_dynamic_toolv83_v66/q6ss.cfg --l2tcm_base 0xd800 --rtos hexagon_Release_dynamic_toolv83_v66/osam.cfg /home/hubery/Qualcomm/Hexagon_SDK/3.5.4/libs/common/qurt//computev66/sdksim_bin/runelf.pbn -- /home/hubery/Qualcomm/Hexagon_SDK/3.5.4/libs/common/run_main_on_hexagon/ship/hexagon_Release_dynamic_toolv83_v66/run_main_on_hexagon_sim -- gaussian7x7_q.so hexagon-sim INFO: The rev_id used in the simulation is 0x00008466 (v66g_1024) Hexagon-sim INFO: Cosim /home/hubery/Qualcomm/Hexagon_SDK/3.5.4/tools/HEXAGON_Tools/8.3.07/Tools/lib/iss/qtimer.so is loaded Hexagon-sim INFO: Cosim /home/hubery/Qualcomm/Hexagon_SDK/3.5.4/tools/HEXAGON_Tools/8.3.07/Tools/lib/iss/l2vic.so is loaded hexagon-sim WARNING: DgetSymbolAddress in dril.cpp:9074: Could not read address for symbol ".QURTK_thread_switch_ME_TO_NEW": Need to provide symbol file hexagon-sim WARNING: DgetSymbolAddress in dril.cpp:9074: Could not read address for symbol ".QURTK_thread_switch_ME_TO_NULL": Need to provide symbol file hexagon-sim WARNING: DgetSymbolAddress in dril.cpp:9074: Could not read address for symbol ".QURTK_thread_switch_NULL_TO_NEW": Need to provide symbol file QURT kernel started QURT kernel init cache params QURT root task started QuRTOS heap init: start 1e0adc00 size 0x80000 Init memory pools... 0 name DEFAULT_PHYSPOOL pool 1e0b4050 0 start 50000000 size 50000000 1 name DRIVER_POOL pool 1e0b4130 0 start b0000000 size 40000000 1 start 28885000 size 1000 2 name TCM_PHYSPOOL pool 1e0b4210 0 start d8020000 size 20000 1 start d8200000 size 40000 3 name ANGEL_POOL pool 1e0b42f0 0 start 0000 size 1000 4 name 64BITS_PHYSPOOL pool 1e0b43d0 0 start 1a8020000 size 10000000 5 name 64BITS_PHYSPOOL_36BITS pool 1e0b44b0 0 start aa8020000 size 10000000 MEM_MAPPING_VIRTUAL_FIXED: cannot mmap physical memory for virt page 0x1e040 Warn: forget_pages pool=1e236140 first_page=1e040 last_page=1e07f alloc_count=40 MEM_MAPPING_VIRTUAL_FIXED: cannot mmap physical memory for virt page 0x1e080 Warn: forget_pages pool=1e236140 first_page=1e080 last_page=1e08f alloc_count=10 MEM_MAPPING_VIRTUAL_FIXED: cannot mmap physical memory for virt page 0x1e090 Warn: forget_pages pool=1e236140 first_page=1e090 last_page=1e09f alloc_count=10 MEM_MAPPING_VIRTUAL_FIXED: cannot mmap physical memory for virt page 0x1e0a0 Warn: forget_pages pool=1e236140 first_page=1e0a0 last_page=1e0a3 alloc_count=4 MEM_MAPPING_VIRTUAL_FIXED: cannot mmap physical memory for virt page 0x1e0a4 Warn: forget_pages pool=1e236140 first_page=1e0a4 last_page=1e0a7 alloc_count=4 MEM_MAPPING_VIRTUAL_FIXED: cannot mmap physical memory for virt page 0x1e0a8 Warn: forget_pages pool=1e236140 first_page=1e0a8 last_page=1e0ab alloc_count=4 MEM_MAPPING_VIRTUAL_FIXED: cannot mmap physical memory for virt page 0x1e0ac Warn: forget_pages pool=1e236140 first_page=1e0ac last_page=1e0af alloc_count=4 MEM_MAPPING_VIRTUAL_FIXED: cannot mmap physical memory for virt page 0x1e0b0 Warn: forget_pages pool=1e236140 first_page=1e0b0 last_page=1e0bf alloc_count=10 MEM_MAPPING_VIRTUAL_FIXED: cannot mmap physical memory for virt page 0x1e0c0 Warn: forget_pages pool=1e236140 first_page=1e0c0 last_page=1e0ff alloc_count=40 MEM_MAPPING_VIRTUAL_FIXED: cannot mmap physical memory for virt page 0x1e100 Warn: forget_pages pool=1e236140 first_page=1e100 last_page=1e1ff alloc_count=100 MEM_MAPPING_VIRTUAL_FIXED: cannot mmap physical memory for virt page 0x1e200 Warn: forget_pages pool=1e236140 first_page=1e200 last_page=1e2ff alloc_count=40 shem from static_mem init pgaddr d8020 shem from static_mem init pgaddr d8030 shem from static_mem init pgaddr 1a8180 shem from static_mem init pgaddr aa8180 finished static mem App Images Init QURT system-clock daemon started QURT Timer Driver client started QURT Timer service was initialized. client handle 3 does not support qdi callbacks Entering main() ... Debugging can be done using debug monitor/stub Make sure to provide the debugger cosim in the config file Start user reaper thread for process 8 client handle 30 does not support qdi callbacks Entering main() ... added path ".": HIGH:0x5B:122:paths.c Args from QuRT: /home/hubery/Qualcomm/Hexagon_SDK/3.5.4/libs/common/qurt//computev66/sdksim_bin/runelf.pbn /home/hubery/Qualcomm/Hexagon_SDK/3.5.4/libs/common/run_main_on_hexagon/ship/hexagon_Release_dynamic_toolv83_v66/run_main_on_hexagon_sim -- gaussian7x7_q.so : HIGH:0x5B:52:run_main_on_hexagon_sim.c malloc stack size 0x40000: HIGH:0x5B:169:run_main_on_hexagon_dsp.c try to load gaussian7x7_q.so from file: HIGH:0x59:121:search.c try ./gaussian7x7_q.so: HIGH:0x59:81:search.c read headers 0x0 -> d8041000 (0x1000 B): HIGH:0x59:468:map_object.c Verification skipped, no function specified!!: HIGH:0x59:502:map_object.c mapped [d80fc000 - d8100000] (16384 Bytes): HIGH:0x59:661:map_object.c load 0x0 -> d80fc000 (0x1CA4 B): HIGH:0x59:752:map_object.c load 0x2000 -> d80fe000 (0x11F4 B): HIGH:0x59:752:map_object.c libc.so builtin: HIGH:0x59:343:load.c try to load rpcmem.so from file: HIGH:0x59:121:search.c try ./rpcmem.so: HIGH:0x59:81:search.c read headers 0x0 -> d8041000 (0x1000 B): HIGH:0x59:468:map_object.c Verification skipped, no function specified!!: HIGH:0x59:502:map_object.c mapped [d8042000 - d8045000] (12288 Bytes): HIGH:0x59:661:map_object.c load 0x0 -> d8042000 (0x524 B): HIGH:0x59:752:map_object.c load 0x1000 -> d8043000 (0x10E8 B): HIGH:0x59:752:map_object.c try to load libdspCV_skel.so from file: HIGH:0x59:121:search.c try ./libdspCV_skel.so: HIGH:0x59:81:search.c read headers 0x0 -> d8041000 (0x1000 B): HIGH:0x59:468:map_object.c Verification skipped, no function specified!!: HIGH:0x59:502:map_object.c mapped [d80f6000 - d80fc000] (24576 Bytes): HIGH:0x59:661:map_object.c load 0x0 -> d80f6000 (0x3CA4 B): HIGH:0x59:752:map_object.c load 0x4000 -> d80fa000 (0x1301 B): HIGH:0x59:752:map_object.c libgcc.so builtin: HIGH:0x59:343:load.c libc.so builtin: HIGH:0x59:343:load.c libgcc.so builtin: HIGH:0x59:343:load.c libc.so builtin: HIGH:0x59:343:load.c libgcc.so builtin: HIGH:0x59:343:load.c protect [d80fc000 - d80fdfff] (0x2000 B) r.x: HIGH:0x59:125:reloc.c protect [d80fe000 - d80fffff] (0x2000 B) rw.: HIGH:0x59:125:reloc.c protect [d8042000 - d8042fff] (0x1000 B) r.x: HIGH:0x59:125:reloc.c protect [d8043000 - d8044fff] (0x2000 B) rw.: HIGH:0x59:125:reloc.c protect [d80f6000 - d80f9fff] (0x4000 B) r.x: HIGH:0x59:125:reloc.c protect [d80fa000 - d80fbfff] (0x2000 B) rw.: HIGH:0x59:125:reloc.c In dspCV_worker constructor: HIGH:0x59:199:dspCV_worker.cpp Reached dspCV_imp_constructor.: HIGH:0x59:153:dspCV_imp.c dlopen gaussian7x7_q.so return obj 640407a8: HIGH:0x59:796:rtld.c Arguments passed from AP: gaussian7x7_q.so : HIGH:0x59:34:run_main_on_hexagon_dsp.c args to main main(): HIGH:0x59:92:run_main_on_hexagon_dsp.c argv[0]: gaussian7x7_q.so: HIGH:0x59:94:run_main_on_hexagon_dsp.c Calling main() in module gaussian7x7_q.so: HIGH:0x59:105:run_main_on_hexagon_dsp.c Entering dspCV_initQ6()...: HIGH:0x59:187:dspCV_imp.c dspCV_initQ6 votes 1000 total MCPS, 500 MCPS per thread.: HIGH:0x59:433:dspCV_imp.c dspCV_initQ6 votes bus BW 12000 MB/sec, bus usage 100 percent, and max latency 100 uSec: HIGH:0x59:435:dspCV_imp.c return value from dspCV_initQ6() : 0 src - allocated 16384 dst - allocated 16384 ref - allocated 16384 (via malloc) calling gaussian7x7_Gaussian7x7u8 on a 256x64 image... gaussian7x7 profiling: 5715 PCycles, 1 microseconds. Observed clock rate 5715 MHz: HIGH:0x59:248:gaussian7x7_imp.c run time of gaussian7x7_Gaussian7x7u8: 28651 PCycles (from 2039630-2068281) for 1 iterations To apply timefilter to profiling results, add this to simulation cmd line: --dsp_clock 800 --timefilter_ns 2549537-2585351 return value from gaussian7x7_Gaussian7x7u8: 0 Checking for bit-exact errors... Number of bit-exact errors: 0 calling dspCV_deinitQ6()... Entering dspCV_deinitQ6()... : HIGH:0x59:471:dspCV_imp.c return value from dspCV_deinitQ6(): 0 - success main() returned 0: HIGH:0x59:107:run_main_on_hexagon_dsp.c Reached dspCV_imp_destructor.: HIGH:0x59:162:dspCV_imp.c In dspCV_worker destructor: HIGH:0x59:307:dspCV_worker.cpp unloading ./gaussian7x7_q.so: HIGH:0x59:306:rtld.c unloading ./rpcmem.so: HIGH:0x59:306:rtld.c unloading ./libdspCV_skel.so: HIGH:0x59:306:rtld.c Main() returned 0: HIGH:0x5B:186:run_main_on_hexagon_dsp.c Main() returned 0: HIGH:0x5B:81:run_main_on_hexagon_sim.c Done! T0: Insns=2210339 Packets=872312 T1: Insns=6079495 Packets=1905747 T2: Insns=475512 Packets=195811 T3: Insns=6336 Packets=2688 Total: Insns=8771682 Pcycles=5910461 touch hexagon_Release_dynamic_toolv83_v66/gaussian7x7_q.so.ok cp -Rf hexagon_Release_dynamic_toolv83_v66/libgaussian7x7_skel.so /home/hubery/hubery/gitcode/cdsp_hu/gaussian7x7/hexagon_Release_dynamic_toolv83_v66/ship/libgaussian7x7_skel.so cp -Rf hexagon_Release_dynamic_toolv83_v66/gaussian7x7_q.so /home/hubery/hubery/gitcode/cdsp_hu/gaussian7x7/hexagon_Release_dynamic_toolv83_v66/ship/gaussian7x7_q.so make[1]: Leaving directory '/home/hubery/hubery/gitcode/cdsp_hu/gaussian7x7' android_Release_aarch64/ship/gaussian7x7: 1 file pushed. 2.6 MB/s (32824 bytes in 0.012s) hexagon_Release_dynamic_toolv83_v66/ship/libgaussian7x7_skel.so: 1 file pushed. 0.6 MB/s (15952 bytes in 0.026s) return value from dspCV_initQ6() : 0 src - allocated 2073600 dst - allocated 2073600 ref - allocated 2073600 (via malloc) calling gaussian7x7_Gaussian7x7u8 on a 1920x1080 image... run time of gaussian7x7_Gaussian7x7u8: 4413030 microseconds for 1000 iterations return value from gaussian7x7_Gaussian7x7u8: 0 Checking for bit-exact errors... Number of bit-exact errors: 0 calling dspCV_deinitQ6()... return value from dspCV_deinitQ6(): 0 - success ``` #### 2024-1-23 * update Hexagon DSP signature method and use gaussian7x7 to test demo on Android