1#!/bin/bash 2 3DIR_NPU=`dirname $0` 4 5info_view() 6{ 7 echo "*****************************************************" 8 echo "*** ***" 9 echo "*** NPU TEST ***" 10 echo "*** ***" 11 echo "*****************************************************" 12} 13 14info_view 15echo "***********************************************************" 16echo "npu stress test: 1" 17echo "npu scale frequency test: 2" 18echo "rknn demo test: 3" 19echo "***********************************************************" 20 21read -t 30 NPU_CHOICE 22 23npu_stress_test() 24{ 25 bash ${DIR_NPU}/npu_stress_test.sh 26} 27 28npu_scale_frequency_test() 29{ 30 bash ${DIR_NPU}/npu_freq_scaling.sh 86400 2 31} 32 33rknn_demo_test() 34{ 35 bash ${DIR_NPU}/rknn_demo.sh 36} 37 38case ${NPU_CHOICE} in 39 1) 40 npu_stress_test 41 ;; 42 2) 43 npu_scale_frequency_test 44 ;; 45 3) 46 rknn_demo_test 47 ;; 48 *) 49 echo "not found your input." 50 ;; 51esac 52