Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 6ade51b1 authored by thierry's avatar thierry
Browse files

Initial import

parent 283bd9d1
No related branches found
No related tags found
No related merge requests found
#include <iostream>
#include <omp.h>
int main()
{
#pragma omp parallel num_threads(3)
std::cout << "Parallel region 1: tid:" << omp_get_thread_num() << std::endl;
#pragma omp parallel num_threads(4)
std::cout << "Parallel region 2: tid:" << omp_get_thread_num() << std::endl;
#pragma omp parallel num_threads(2)
std::cout << "Parallel region 3: tid:" << omp_get_thread_num() << std::endl;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment