tesseract
4.00.00dev
/home/stefan/src/github/tesseract-ocr/tesseract/omptest.cpp
Go to the documentation of this file.
1
// omp_parallel.cpp
2
// compile with: /openmp
3
#include <stdio.h>
4
#include <omp.h>
5
6
static
int
n = 5;
7
8
int
main
(
int
argc) {
9
#pragma omp parallel num_threads(argc)
10
{
11
int
i = omp_get_thread_num();
12
printf(
"Hello from thread %d\n"
, i);
13
}
14
}
main
int main(int argc)
Definition:
omptest.cpp:8
omptest.cpp
Generated on Sat May 20 2017 21:21:27 for tesseract by
1.8.13