summaryrefslogtreecommitdiff
path: root/tests/projects/openmp/loop/src/main.cpp
blob: 273a8538ed91b2fb8f52d4fd37d86a7248d5cefc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#include <stdio.h>
#include <omp.h>

int main(int argc, char** argv)
{
    #pragma omp parallel for
    for (int i = 0; i < 10; ++i)
    {
        printf("hello(%d): i = %d\n", omp_get_thread_num(), i);
    }
    return 0;
}