Set the number of OpenMP threads for parallel computation.
num_threads (int) – Number of threads to use.