when using openmp set omp_num_threads