Run a program on a specific CPU

27 views
Skip to first unread message

Tao Liu

unread,
Jul 1, 2024, 2:55:41 PMJul 1
to RISC-V SW Dev
hi, group,

I purchased a SoC and find it has 4 CPU's from the cat /proc/cpuinfo. Do you know to run my app on specific (e.g. 2nd CPU)? I am trying to run my small app's in parallel on those CPU's.

thanks. 

Tommy Murphy

unread,
Jul 1, 2024, 3:04:39 PMJul 1
to Tao Liu, RISC-V SW Dev
You don't give much context, but I presume that the mention of /proc/cpuinfo implies that you're running some Linux distro? As such, what about the taskset command?

Tao Liu

unread,
Jul 3, 2024, 5:30:45 PMJul 3
to RISC-V SW Dev, tommy_...@hotmail.com, Tao Liu
yes, that's what i am looking for. I am from Windoows background. New chip and Linux is still a green field for me. 
Reply all
Reply to author
Forward
0 new messages