I am writing a code that cosists of many different functions using OpenMP. I wonder if there is a good way to set number of used threads once.
Can O do this using omp_set_num_threads()? Or I need to call it in every function that uses OpenMP?
Thanks in advance,