diff options
author | Volker Grabsch <vog@notjusthosting.com> | 2010-05-19 21:50:39 (GMT) |
---|---|---|
committer | Volker Grabsch <vog@notjusthosting.com> | 2010-05-19 21:50:39 (GMT) |
commit | 43ba8ad2f1897b03f1ceadec840029e7a24cdf6c (patch) | |
tree | 22449e64616cdc1439aab41fc510c6250abcd973 /src/libgomp-test.c | |
parent | bc2cfdc051a64fd4212344e17563844b509ce9d1 (diff) | |
download | mxe-43ba8ad2f1897b03f1ceadec840029e7a24cdf6c.zip mxe-43ba8ad2f1897b03f1ceadec840029e7a24cdf6c.tar.gz mxe-43ba8ad2f1897b03f1ceadec840029e7a24cdf6c.tar.bz2 |
improved test programs of packages libgomp and pthreads
Diffstat (limited to 'src/libgomp-test.c')
-rw-r--r-- | src/libgomp-test.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/libgomp-test.c b/src/libgomp-test.c index f1f5590..b0db0b0 100644 --- a/src/libgomp-test.c +++ b/src/libgomp-test.c @@ -9,9 +9,11 @@ int main(int argc, char *argv[]) (void)argc; (void)argv; + omp_set_num_threads(4); + #pragma omp parallel - printf("Hello from thread %d, nthreads %d\n", - omp_get_thread_num(), omp_get_num_threads()); + fprintf(stderr, "Hello from thread %d, nthreads %d\n", + omp_get_thread_num(), omp_get_num_threads()); return 0; } |