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