provide info about compiled openmp version

This commit is contained in:
zdenop 2018-12-29 10:18:27 +01:00
parent cc997b53c7
commit 8885fe2ccb

View File

@ -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>
@ -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() {