aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDjordje Senicic2019-11-27 17:26:27 -0600
committerDjordje Senicic2019-11-27 17:27:06 -0600
commitad5191ee43a97e50898256d09315c63699da5f84 (patch)
tree327400dbbe6939956663224e9a3b1f5fb12446e3
parent1daab14f5b63e6017612f66b5d027d8cfe46df57 (diff)
downloadtidl-api-ad5191ee43a97e50898256d09315c63699da5f84.tar.gz
tidl-api-ad5191ee43a97e50898256d09315c63699da5f84.tar.xz
tidl-api-ad5191ee43a97e50898256d09315c63699da5f84.zip
examples:classification: Detect number of EVEs, DSPs and CMEM size on SoC
Signed-off-by: Djordje Senicic <x0157990@ti.com>
-rwxr-xr-xexamples/classification/detect_eves_dsps.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/examples/classification/detect_eves_dsps.sh b/examples/classification/detect_eves_dsps.sh
new file mode 100755
index 0000000..aafd904
--- /dev/null
+++ b/examples/classification/detect_eves_dsps.sh
@@ -0,0 +1,7 @@
1# Script to detect number of available EVEs, DSPs, and CMEM memory
2export numeve=$(/usr/share/ti/examples/opencl/platforms/platforms | grep "Embedded Vision Engine" | wc -l)
3export numdsp=$(find /proc/device-tree/ocp/ -name "dsp_system*" | wc -l)
4export cmemsize=$(cat /proc/cmem | grep "Block 0: Pool 0:" | cut -d ' ' -f8)
5echo "Number of EVEs:${numeve}"
6echo "Number of DSPs:${numdsp}"
7echo "CMEM size:${cmemsize}"