title: CPU/Threads usage on M1 Pro (Apple Silicon) using openMP
body: <p>hope someone knows the answer to this...</p>
  <p>I have a code that compiles perfectly well with openMP (it uses <a href="https://gitlab.mpcdf.mpg.de/mtr/libsharp" rel="nofollow noreferrer">libsharp</a>). However, I am finding it impossible to make the M1 Pro chip use all the 8 or 10 cores I have.</p>
  <p>I am setting the threads variable correctly as <code>export OMP_NUM_THREADS=10</code> such that the code correctly identifies it's supposed to be running with 10 threads (see image below showing a print-screen from my activity monitor):</p>
  <p><a href="https://i.stack.imgur.com/xpa5L.png" rel="nofollow noreferrer">Activity Monitor Print Screen</a></p>
  <p>Print screen is showing that the code is compiled for Apple Silicon, uses 10 threads but not much of the CPU available.</p>
  <p>Does anyone know how to properly compile/set the number of threads such that all the cores will be used?</p>
  <p>This is trivial in x86 architectures.</p>