I started using OpenMP 3 days ago. I want to know how to use #pragmaso that each core runs one thread. In details: -
int ncores = omp_get_num_procs();
for(i = 0; i < ncores;i++){
....
}
I want this for the loop to be distributed in the kernels that I have, what #pragmashould I use?
another, what do those mean #pragmas?
#pragma omp parallel
#pragma omp for
#pragma omp parallel for
I'm a little confused with those #pragmas
Many thanks.:)
source
share