mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2024-11-24 11:09:06 +08:00
provide info about compiled openmp version
This commit is contained in:
parent
cc997b53c7
commit
8885fe2ccb
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user