2012-03-29 11:01:39 +01:00
|
|
|
/*
|
2016-08-22 20:52:34 +01:00
|
|
|
* This file is part of MXE. See LICENSE.md for licensing information.
|
2012-03-29 11:01:39 +01:00
|
|
|
*/
|
2010-05-09 22:16:22 +01:00
|
|
|
|
|
|
|
#include <omp.h>
|
|
|
|
#include <stdio.h>
|
|
|
|
|
2010-05-09 22:21:01 +01:00
|
|
|
int main(int argc, char *argv[])
|
2010-05-09 22:16:22 +01:00
|
|
|
{
|
|
|
|
(void)argc;
|
|
|
|
(void)argv;
|
|
|
|
|
2010-05-19 22:50:39 +01:00
|
|
|
omp_set_num_threads(4);
|
|
|
|
|
2010-05-09 22:16:22 +01:00
|
|
|
#pragma omp parallel
|
2010-05-19 22:50:39 +01:00
|
|
|
fprintf(stderr, "Hello from thread %d, nthreads %d\n",
|
|
|
|
omp_get_thread_num(), omp_get_num_threads());
|
2010-05-09 22:16:22 +01:00
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|