@@ -204,21 +204,33 @@ set(tesseract_src ${tesseract_src}
204
204
)
205
205
206
206
if (WIN32 )
207
- set_source_files_properties (
208
- ${CMAKE_CURRENT_SOURCE_DIR} /arch/dotproductsse.cpp
209
- PROPERTIES COMPILE_DEFINITIONS __SSE4_1__)
210
207
if (MSVC )
208
+ set_source_files_properties (
209
+ ${CMAKE_CURRENT_SOURCE_DIR} /arch/dotproductsse.cpp
210
+ PROPERTIES COMPILE_DEFINITIONS __SSE4_1__)
211
+ set_source_files_properties (
212
+ ${CMAKE_CURRENT_SOURCE_DIR} /arch/intsimdmatrixsse.cpp
213
+ PROPERTIES COMPILE_DEFINITIONS __SSE4_1__)
211
214
set_source_files_properties (
212
215
${CMAKE_CURRENT_SOURCE_DIR} /arch/dotproductavx.cpp
213
216
PROPERTIES COMPILE_FLAGS "/arch:AVX" )
217
+ set_source_files_properties (
218
+ ${CMAKE_CURRENT_SOURCE_DIR} /arch/intsimdmatrixavx2.cpp
219
+ PROPERTIES COMPILE_FLAGS "/arch:AVX2" )
214
220
endif ()
215
221
else ()
216
222
set_source_files_properties (
217
223
${CMAKE_CURRENT_SOURCE_DIR} /arch/dotproductsse.cpp
218
224
PROPERTIES COMPILE_FLAGS "-msse4.1" )
225
+ set_source_files_properties (
226
+ ${CMAKE_CURRENT_SOURCE_DIR} /arch/intsimdmatrixsse.cpp
227
+ PROPERTIES COMPILE_FLAGS "-msse4.1" )
219
228
set_source_files_properties (
220
229
${CMAKE_CURRENT_SOURCE_DIR} /arch/dotproductavx.cpp
221
230
PROPERTIES COMPILE_FLAGS "-mavx" )
231
+ set_source_files_properties (
232
+ ${CMAKE_CURRENT_SOURCE_DIR} /arch/intsimdmatrixavx2.cpp
233
+ PROPERTIES COMPILE_FLAGS "-mavx2" )
222
234
endif ()
223
235
224
236
add_library (libtesseract ${LIBRARY_TYPE} ${tesseract_src} ${tesseract_hdr} )
@@ -288,69 +300,69 @@ install(FILES
288
300
install (FILES
289
301
# from api/makefile.am
290
302
api/apitypes.h
291
- api/baseapi.h
292
- api/capi.h
303
+ api/baseapi.h
304
+ api/capi.h
293
305
api/renderer.h
294
306
295
307
#from arch/makefile.am
296
308
arch/dotproductavx.h
297
- arch/dotproductsse.h
309
+ arch/dotproductsse.h
298
310
arch/simddetect.h
299
311
300
312
#from ccmain/makefile.am
301
313
ccmain/thresholder.h
302
- ccmain/ltrresultiterator.h
303
- ccmain/pageiterator.h
304
- ccmain/resultiterator.h
314
+ ccmain/ltrresultiterator.h
315
+ ccmain/pageiterator.h
316
+ ccmain/resultiterator.h
305
317
ccmain/osdetect.h
306
318
307
319
#from ccstruct/makefile.am
308
- ccstruct/publictypes.h
320
+ ccstruct/publictypes.h
309
321
310
322
#from ccutil/makefile.am
311
- ccutil/basedir.h
312
- ccutil/errcode.h
313
- ccutil/fileerr.h
314
- ccutil/genericvector.h
315
- ccutil/helpers.h
316
- ccutil/host.h
317
- ccutil/memry.h
323
+ ccutil/basedir.h
324
+ ccutil/errcode.h
325
+ ccutil/fileerr.h
326
+ ccutil/genericvector.h
327
+ ccutil/helpers.h
328
+ ccutil/host.h
329
+ ccutil/memry.h
318
330
ccutil/ndminx.h
319
331
ccutil/params.h
320
- ccutil/ocrclass.h
321
- ccutil/platform.h
322
- ccutil/serialis.h
323
- ccutil/strngs.h
332
+ ccutil/ocrclass.h
333
+ ccutil/platform.h
334
+ ccutil/serialis.h
335
+ ccutil/strngs.h
324
336
ccutil/tesscallback.h
325
- ccutil/unichar.h
326
- ccutil/unicharcompress.h
327
- ccutil/unicharmap.h
337
+ ccutil/unichar.h
338
+ ccutil/unicharcompress.h
339
+ ccutil/unicharmap.h
328
340
ccutil/unicharset.h
329
341
ccutil/version .h
330
342
331
343
#from lstm/makefile.am
332
344
lstm/convolve.h
333
- lstm/ctc.h
334
- lstm/fullyconnected.h
335
- lstm/functions.h
345
+ lstm/ctc.h
346
+ lstm/fullyconnected.h
347
+ lstm/functions.h
336
348
lstm/input .h
337
- lstm/lstm.h
338
- lstm/lstmrecognizer.h
339
- lstm/lstmtrainer.h
349
+ lstm/lstm.h
350
+ lstm/lstmrecognizer.h
351
+ lstm/lstmtrainer.h
340
352
lstm/maxpool.h
341
- lstm/networkbuilder.h
342
- lstm/network.h
343
- lstm/networkio.h
353
+ lstm/networkbuilder.h
354
+ lstm/network.h
355
+ lstm/networkio.h
344
356
lstm/networkscratch.h
345
- lstm/parallel.h
346
- lstm/plumbing.h
347
- lstm/recodebeam.h
348
- lstm/reconfig.h
357
+ lstm/parallel.h
358
+ lstm/plumbing.h
359
+ lstm/recodebeam.h
360
+ lstm/reconfig.h
349
361
lstm/reversed.h
350
- lstm/series.h
351
- lstm/static_shape.h
352
- lstm/stridemap.h
353
- lstm/tfnetwork.h
362
+ lstm/series.h
363
+ lstm/static_shape.h
364
+ lstm/stridemap.h
365
+ lstm/tfnetwork.h
354
366
lstm/weightmatrix.h
355
367
356
368
#${CMAKE_BINARY_DIR}/src/endianness.h
0 commit comments