Number of threads of Intel MKL functions inside OMP parallel regions
问题 I have a multithreaded code in C, using OpenMP and Intel MKL functions. I have the following code: omp_set_num_threads(nth); #pragma omp parallel for private(l,s) schedule(static) for(l=0;l<lines;l++) { for(s=0;s<samples;s++) { out[l*samples+s]=mkl_ddot(&bands, &hi[s*bands+l], &inc_one, &hi_[s*bands+l], &inc_one); } }//fin for l I want to use all the cores of the multicore processor (the value of nth) in this pramga. But I want that each core computes a single mkl_ddot function independently