How do I choose the number of threads to be used at runtime?

How can I set the number of threads to be used at runtime?

Set the OMP_NUM_THREADS environment variable to the desired number of threads.

1 Like