hi , i am trying to run this small code with open mp but I dont see any
threads created . The code compiles with -fopenmp but does not create
threads to run parallel.For example,
main()
{
omp_set_num_threads(4);
#pragma omp parallel
printf(" hello world from %d\n" ,omp_get_thread_num());
return;
}
output: hello world from 0
what abt the other threads??
--
--
You received this message because you are subscribed to the Google Groups
"Algorithm Geeks" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/algogeeks?hl=en.