Skip to content

Commit

Permalink
provide info about compiled openmp version
Browse files Browse the repository at this point in the history
  • Loading branch information
zdenop committed Dec 29, 2018
1 parent cc997b5 commit 8885fe2
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/api/tesseractmain.cpp
Expand Up @@ -35,6 +35,10 @@
#include "strngs.h"
#include "tprintf.h" // for tprintf

#ifdef _OPENMP
#include <omp.h>
#endif

#if defined(_WIN32)
#include <fcntl.h>
#include <io.h>
Expand Down Expand Up @@ -114,6 +118,10 @@ static void PrintVersionInfo() {
if (tesseract::SIMDDetect::IsAVX2Available()) printf(" Found AVX2\n");
if (tesseract::SIMDDetect::IsAVXAvailable()) printf(" Found AVX\n");
if (tesseract::SIMDDetect::IsSSEAvailable()) printf(" Found SSE\n");
#ifdef _OPENMP
printf(" Found OpenMP %d\n", _OPENMP);
#endif

}

static void PrintHelpForPSM() {
Expand Down

0 comments on commit 8885fe2

Please sign in to comment.