summaryrefslogtreecommitdiffstats
path: root/src/libgomp-test.c
blob: f1f5590a9a9f340477fc99d10e53fde3594ddcea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* This file is part of mingw-cross-env.       */
/* See doc/index.html for further information. */

#include <omp.h>
#include <stdio.h>

int main(int argc, char *argv[])
{
    (void)argc;
    (void)argv;

    #pragma omp parallel
    printf("Hello from thread %d, nthreads %d\n",
           omp_get_thread_num(), omp_get_num_threads());

    return 0;
}