mxe/src/libgomp-test.c

20 lines
394 B
C
Raw Normal View History

2012-03-28 14:46:58 +01:00
/* This file is part of MXE. */
/* See doc/index.html for further information. */
#include <omp.h>
#include <stdio.h>
2010-05-09 22:21:01 +01:00
int main(int argc, char *argv[])
{
(void)argc;
(void)argv;
omp_set_num_threads(4);
#pragma omp parallel
fprintf(stderr, "Hello from thread %d, nthreads %d\n",
omp_get_thread_num(), omp_get_num_threads());
return 0;
}