@Alex-Kushleyev Correct, I just used the last 4 more powerful cpus. That was enough of a performance boost to run my optimization at the frequency I was hoping for. I didn't try using all 8 threads, I can give it a shot if that's useful information for you
Latest posts made by Mrunal Sarvaiya
-
RE: Utilizing all CPUs on Voxl2
-
RE: Utilizing all CPUs on Voxl2
@Alex-Kushleyev Thanks a ton! I was able to explicitly specify the cpus to use and the optimization is 3-4x faster.
Posting the command needed here in case someone else stumbles upon this post. Export the following environment variables
export OMP_PROC_BIND=close
# this may not be necessary
export GOMP_CPU_AFFINITY="4 5 6 7"
# here 4 5 6 7 specifies the cpus to use -
RE: Utilizing all CPUs on Voxl2
@Darshit-Desai Yup, all these tests were run with the cpu mode set to performance mode
-
Utilizing all CPUs on Voxl2
Hi,
I had a question related to utilizing all the cores available on the voxl2. I’m using a cpp library that runs multi threaded optimization using openmp and allows me to specify the number of available threads. What I notice is that the performance increased as I increase the number of threads upto 4, but after that there’s no increase in performance. I would have expected an increase in performance up to 8 threads, since there’s 8 cpus on the voxl2. During my tests, upon running voxl-inspect-cpu, I see that cpu 0-3 have a high utilization while cpu 4-7 have very low utilization even when using 8 threads.
Could you shed some light on whether this is expected, and if so how I could go about better utilizing the last 4 cpus? (I’m pretty confident that the optimization is resource limited, the same optimization problem runs faster on a laptop with more cpus)
Thanks!