I am testing armnn+compute library on my RK3399. I want to measure the inference time using only the A53 cores. How can I exploit Compute Library functionalities to do so?
Hi fset89,
The Cortex-A53 are the first four cpus 0-3 on the RK3399 (the Cortex-A72 are cpu 4-5).
As Peter Harris pointed out, taskset can do the job. For example:
$ taskset 0xf ls
Not sure what OS you are running on top of, but there are generally two options.
From the command line you can use taskset:
* https://linux.die.net/man/1/taskset
From the software itself you can use sched_setaffinity() to do something similar programmatically.
* http://man7.org/linux/man-pages/man2/sched_setaffinity.2.html
You can set up cgroups for different core types too, if that helps.
HTH, Pete
View all questions in Cortex-A / A-Profile forum