Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
24 lines (16 sloc) 375 Bytes
#include <iostream>
#include <omp.h>
int main ()
{
#pragma omp parallel
{
std::cout << "Thread = " << omp_get_thread_num()
<< std::endl;
if (0 == omp_get_thread_num())
{
std::cout << "Number of threads = "<< omp_get_num_threads()
<< std::endl;
}
}
return 0;
}
You can’t perform that action at this time.