-
Notifications
You must be signed in to change notification settings - Fork 34
/
CMakeLists.txt
1161 lines (1096 loc) · 40.7 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
CMAKE_MINIMUM_REQUIRED( VERSION 3.2 )
FILE( STRINGS parasail.h MAJOR REGEX "^#define +PARASAIL_VERSION_MAJOR +[0-9]+$" )
FILE( STRINGS parasail.h MINOR REGEX "^#define +PARASAIL_VERSION_MINOR +[0-9]+$" )
FILE( STRINGS parasail.h PATCH REGEX "^#define +PARASAIL_VERSION_PATCH +[0-9]+$" )
STRING( REPLACE "#define PARASAIL_VERSION_MAJOR " "" MAJOR ${MAJOR} )
STRING( REPLACE "#define PARASAIL_VERSION_MINOR " "" MINOR ${MINOR} )
STRING( REPLACE "#define PARASAIL_VERSION_PATCH " "" PATCH ${PATCH} )
PROJECT( parasail VERSION ${MAJOR}.${MINOR}.${PATCH} )
SET( CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/cmake" ${CMAKE_MODULE_PATH} )
OPTION( BUILD_SHARED_LIBS "Build Shared Libraries" ON )
SET( LIB_TYPE STATIC )
IF( BUILD_SHARED_LIBS )
SET( LIB_TYPE SHARED )
# All OBJECT libraries below are later consumed by a shared library so
# the following is OK. Saves on setting it as a per target property.
SET( CMAKE_POSITION_INDEPENDENT_CODE ON )
ENDIF( )
INCLUDE( CheckFunctionExists )
INCLUDE( CheckIncludeFile )
INCLUDE( CheckLibraryExists )
INCLUDE( CheckSymbolExists )
INCLUDE( CheckTypeSize )
INCLUDE( CheckCSourceCompiles )
INCLUDE( FindSSE2 )
INCLUDE( FindSSE41 )
INCLUDE( FindAVX2 )
INCLUDE( Findxgetbv )
INCLUDE( FindAltiVec )
INCLUDE( FindNEON )
INCLUDE( FindZLIB )
INCLUDE( TestBigEndian )
OPTION( WITH_OPENMP "Enable OpenMP (if supported by the compiler)" ON )
IF( WITH_OPENMP )
INCLUDE( FindOpenMP )
ENDIF()
CHECK_TYPE_SIZE( "int" SIZEOF_INT )
CHECK_TYPE_SIZE( "int8_t" SIZEOF_INT8_T )
CHECK_TYPE_SIZE( "int16_t" SIZEOF_INT16_T )
CHECK_TYPE_SIZE( "int32_t" SIZEOF_INT32_T )
CHECK_TYPE_SIZE( "int64_t" SIZEOF_INT64_T )
CHECK_TYPE_SIZE( "uint8_t" SIZEOF_UINT8_T )
CHECK_TYPE_SIZE( "uint16_t" SIZEOF_UINT16_T )
CHECK_TYPE_SIZE( "uint32_t" SIZEOF_UINT32_T )
CHECK_TYPE_SIZE( "uint64_t" SIZEOF_UINT64_T )
TEST_BIG_ENDIAN( WORDS_BIGENDIAN )
# Check for __builtin_cpu_init
CHECK_C_SOURCE_COMPILES("int main () { __builtin_cpu_init(); return 0; } "
HAVE___BUILTIN_CPU_INIT )
# Check for __builtin_cpu_supports
CHECK_C_SOURCE_COMPILES("int main () { __builtin_cpu_supports(\"sse\"); return 0; } "
HAVE___BUILTIN_CPU_SUPPORTS )
# Check for restrict keyword
FOREACH( ac_kw __restrict __restrict__ _Restrict restrict )
CHECK_C_SOURCE_COMPILES(
"
#define restrict ${ac_kw}
typedef int * int_ptr;
int foo (int_ptr restrict ip) {
return ip[0];
}
int main() {
int s[1];
int * restrict t = s;
t[0] = 0;
return foo(t);
}
"
HAVE_RESTRICT )
IF( HAVE_RESTRICT )
SET( ac_cv_c_restrict ${ac_kw} )
BREAK( )
ELSE( )
UNSET( HAVE_RESTRICT CACHE )
ENDIF( )
ENDFOREACH( )
IF( HAVE_RESTRICT )
SET( restrict ${ac_cv_c_restrict} )
SET( parasail_safe_restrict_cxx ${ac_cv_c_restrict} )
ELSE( )
SET( restrict " " )
SET( parasail_safe_restrict_cxx " ")
ENDIF( )
# Check for inline keyword
CHECK_C_SOURCE_COMPILES(
"
typedef int foo_t;
static inline foo_t static_foo(){return 0;}
foo_t foo(){return 0;}
int main(int argc, char *argv[]){return 0;}
"
HAVE_INLINE_NATIVE )
IF( HAVE_INLINE_NATIVE )
ELSE ( )
FOREACH( ac_kw __inline__ __inline )
CHECK_C_SOURCE_COMPILES(
"
typedef int foo_t;
static ${ac_kw} foo_t static_foo(){return 0;}
foo_t foo(){return 0;}
int main(int argc, char *argv[]){return 0;}
"
HAVE_INLINE )
IF( HAVE_INLINE )
SET( ac_cv_c_inline ${ac_kw} )
BREAK( )
ELSE( )
UNSET( HAVE_INLINE CACHE )
ENDIF( )
ENDFOREACH( )
IF( HAVE_INLINE )
SET( inline ${ac_cv_c_inline} )
ELSE( )
SET( inline " " )
ENDIF( )
ENDIF( )
SET( CMAKE_REQUIRED_INCLUDES stdint.h )
INCLUDE_DIRECTORIES( ${CMAKE_CURRENT_LIST_DIR} )
INCLUDE_DIRECTORIES( ${CMAKE_CURRENT_LIST_DIR}/contrib )
INCLUDE_DIRECTORIES( ${CMAKE_CURRENT_LIST_DIR}/contrib/sais-lite-lcp )
INCLUDE_DIRECTORIES( ${CMAKE_CURRENT_LIST_DIR}/contrib/ssw )
INCLUDE_DIRECTORIES( ${CMAKE_CURRENT_LIST_DIR}/src )
INCLUDE_DIRECTORIES( ${CMAKE_BINARY_DIR} )
IF( NEON_FOUND )
INCLUDE_DIRECTORIES( ${CMAKE_CURRENT_LIST_DIR}/contrib/simde/simde )
ENDIF( )
CHECK_INCLUDE_FILE( sys/mman.h HAVE_SYS_MMAN_H )
CHECK_INCLUDE_FILE( unistd.h HAVE_UNISTD_H )
CHECK_INCLUDE_FILE( windows.h HAVE_WINDOWS_H )
#CHECK_FUNCTION_EXISTS( _aligned_malloc HAVE__ALIGNED_MALLOC )
#CHECK_FUNCTION_EXISTS( posix_memalign HAVE_POSIX_MEMALIGN )
#CHECK_FUNCTION_EXISTS( aligned_alloc HAVE_ALIGNED_ALLOC )
#CHECK_FUNCTION_EXISTS( memalign HAVE_MEMALIGN )
CHECK_SYMBOL_EXISTS( _aligned_malloc malloc.h HAVE__ALIGNED_MALLOC )
CHECK_SYMBOL_EXISTS( posix_memalign stdlib.h HAVE_POSIX_MEMALIGN )
CHECK_SYMBOL_EXISTS( aligned_alloc stdlib.h HAVE_ALIGNED_ALLOC )
CHECK_SYMBOL_EXISTS( memalign malloc.h HAVE_MEMALIGN )
CHECK_FUNCTION_EXISTS( getopt HAVE_GETOPT )
CHECK_FUNCTION_EXISTS( poll HAVE_POLL )
#CHECK_FUNCTION_EXISTS( __builtin_cpu_supports HAVE___BUILTIN_CPU_SUPPORTS )
#CHECK_FUNCTION_EXISTS( filelength HAVE_FILELENGTH )
#CHECK_FUNCTION_EXISTS( GetSystemTimeAsFileTime HAVE_GETSYSTEMTIMEASFILETIME )
#CHECK_FUNCTION_EXISTS( SetUnhandledExceptionFilter HAVE_SETUNHANDLEDEXCEPTIONFILTER )
CHECK_SYMBOL_EXISTS( filelength io.h HAVE_FILELENGTH )
CHECK_SYMBOL_EXISTS( GetSystemTimeAsFileTime windows.h HAVE_GETSYSTEMTIMEASFILETIME )
CHECK_SYMBOL_EXISTS( SetUnhandledExceptionFilter windows.h HAVE_SETUNHANDLEDEXCEPTIONFILTER )
CHECK_FUNCTION_EXISTS( clock_get_time HAVE_CLOCK_GET_TIME_NATIVE )
CHECK_FUNCTION_EXISTS( clock_gettime HAVE_CLOCK_GETTIME_NATIVE )
CHECK_LIBRARY_EXISTS( rt clock_gettime "" HAVE_CLOCK_GETTIME_RT )
CHECK_LIBRARY_EXISTS( pthread clock_gettime "" HAVE_CLOCK_GETTIME_PTHREAD )
CHECK_FUNCTION_EXISTS( sqrt HAVE_SQRT_NATIVE )
CHECK_LIBRARY_EXISTS( m sqrt "" HAVE_SQRT_M )
CONFIGURE_FILE( ${CMAKE_CURRENT_LIST_DIR}/cmake/config.h.in ${CMAKE_BINARY_DIR}/config.h )
SET( SRC_CORE
src/cigar.c
src/cpuid.c
src/function_lookup.c
src/io.c
src/isastubs.c
src/matrix_lookup.c
src/memory.c
src/parser.c
src/pssw.c
src/time.c
src/nw_dispatch.c
src/sg_dispatch.c
src/sw_dispatch.c
src/sg_qb_dispatch.c
src/sg_qe_dispatch.c
src/sg_qx_dispatch.c
src/sg_db_dispatch.c
src/sg_de_dispatch.c
src/sg_dx_dispatch.c
src/sg_qb_de_dispatch.c
src/sg_qe_db_dispatch.c
src/sg_qb_db_dispatch.c
src/sg_qe_de_dispatch.c
src/dispatch_profile.c
src/satcheck.c
src/striped_unwind.c
src/traceback.c
)
SET( SRC_NOVEC
src/nw.c
src/sg.c
src/sw.c
src/nw_banded.c
src/nw_scan.c
src/sg_scan.c
src/sw_scan.c
src/nw_stats.c
src/sg_stats.c
src/sw_stats.c
src/nw_stats_scan.c
src/sg_stats_scan.c
src/sw_stats_scan.c
)
SET( SRC_TRACE_NOVEC
src/nw_trace.c
src/sg_trace.c
src/sw_trace.c
src/nw_trace_scan.c
src/sg_trace_scan.c
src/sw_trace_scan.c
)
SET( SRC_SSE2
src/nw_scan_sse2_128_64.c
src/sg_scan_sse2_128_64.c
src/sw_scan_sse2_128_64.c
src/nw_scan_sse2_128_32.c
src/sg_scan_sse2_128_32.c
src/sw_scan_sse2_128_32.c
src/nw_scan_sse2_128_16.c
src/sg_scan_sse2_128_16.c
src/sw_scan_sse2_128_16.c
src/nw_scan_sse2_128_8.c
src/sg_scan_sse2_128_8.c
src/sw_scan_sse2_128_8.c
src/nw_diag_sse2_128_64.c
src/sg_diag_sse2_128_64.c
src/sw_diag_sse2_128_64.c
src/nw_diag_sse2_128_32.c
src/sg_diag_sse2_128_32.c
src/sw_diag_sse2_128_32.c
src/nw_diag_sse2_128_16.c
src/sg_diag_sse2_128_16.c
src/sw_diag_sse2_128_16.c
src/nw_diag_sse2_128_8.c
src/sg_diag_sse2_128_8.c
src/sw_diag_sse2_128_8.c
src/nw_striped_sse2_128_64.c
src/sg_striped_sse2_128_64.c
src/sw_striped_sse2_128_64.c
src/nw_striped_sse2_128_32.c
src/sg_striped_sse2_128_32.c
src/sw_striped_sse2_128_32.c
src/nw_striped_sse2_128_16.c
src/sg_striped_sse2_128_16.c
src/sw_striped_sse2_128_16.c
src/nw_striped_sse2_128_8.c
src/sg_striped_sse2_128_8.c
src/sw_striped_sse2_128_8.c
src/nw_stats_scan_sse2_128_64.c
src/sg_stats_scan_sse2_128_64.c
src/sw_stats_scan_sse2_128_64.c
src/nw_stats_scan_sse2_128_32.c
src/sg_stats_scan_sse2_128_32.c
src/sw_stats_scan_sse2_128_32.c
src/nw_stats_scan_sse2_128_16.c
src/sg_stats_scan_sse2_128_16.c
src/sw_stats_scan_sse2_128_16.c
src/nw_stats_scan_sse2_128_8.c
src/sg_stats_scan_sse2_128_8.c
src/sw_stats_scan_sse2_128_8.c
src/nw_stats_diag_sse2_128_64.c
src/sg_stats_diag_sse2_128_64.c
src/sw_stats_diag_sse2_128_64.c
src/nw_stats_diag_sse2_128_32.c
src/sg_stats_diag_sse2_128_32.c
src/sw_stats_diag_sse2_128_32.c
src/nw_stats_diag_sse2_128_16.c
src/sg_stats_diag_sse2_128_16.c
src/sw_stats_diag_sse2_128_16.c
src/nw_stats_diag_sse2_128_8.c
src/sg_stats_diag_sse2_128_8.c
src/sw_stats_diag_sse2_128_8.c
src/nw_stats_striped_sse2_128_64.c
src/sg_stats_striped_sse2_128_64.c
src/sw_stats_striped_sse2_128_64.c
src/nw_stats_striped_sse2_128_32.c
src/sg_stats_striped_sse2_128_32.c
src/sw_stats_striped_sse2_128_32.c
src/nw_stats_striped_sse2_128_16.c
src/sg_stats_striped_sse2_128_16.c
src/sw_stats_striped_sse2_128_16.c
src/nw_stats_striped_sse2_128_8.c
src/sg_stats_striped_sse2_128_8.c
src/sw_stats_striped_sse2_128_8.c
)
SET( SRC_TRACE_SSE2
src/nw_trace_scan_sse2_128_64.c
src/sg_trace_scan_sse2_128_64.c
src/sw_trace_scan_sse2_128_64.c
src/nw_trace_scan_sse2_128_32.c
src/sg_trace_scan_sse2_128_32.c
src/sw_trace_scan_sse2_128_32.c
src/nw_trace_scan_sse2_128_16.c
src/sg_trace_scan_sse2_128_16.c
src/sw_trace_scan_sse2_128_16.c
src/nw_trace_scan_sse2_128_8.c
src/sg_trace_scan_sse2_128_8.c
src/sw_trace_scan_sse2_128_8.c
src/nw_trace_diag_sse2_128_64.c
src/sg_trace_diag_sse2_128_64.c
src/sw_trace_diag_sse2_128_64.c
src/nw_trace_diag_sse2_128_32.c
src/sg_trace_diag_sse2_128_32.c
src/sw_trace_diag_sse2_128_32.c
src/nw_trace_diag_sse2_128_16.c
src/sg_trace_diag_sse2_128_16.c
src/sw_trace_diag_sse2_128_16.c
src/nw_trace_diag_sse2_128_8.c
src/sg_trace_diag_sse2_128_8.c
src/sw_trace_diag_sse2_128_8.c
src/nw_trace_striped_sse2_128_64.c
src/sg_trace_striped_sse2_128_64.c
src/sw_trace_striped_sse2_128_64.c
src/nw_trace_striped_sse2_128_32.c
src/sg_trace_striped_sse2_128_32.c
src/sw_trace_striped_sse2_128_32.c
src/nw_trace_striped_sse2_128_16.c
src/sg_trace_striped_sse2_128_16.c
src/sw_trace_striped_sse2_128_16.c
src/nw_trace_striped_sse2_128_8.c
src/sg_trace_striped_sse2_128_8.c
src/sw_trace_striped_sse2_128_8.c
)
SET( SRC_SSE41
src/nw_scan_sse41_128_64.c
src/sg_scan_sse41_128_64.c
src/sw_scan_sse41_128_64.c
src/nw_scan_sse41_128_32.c
src/sg_scan_sse41_128_32.c
src/sw_scan_sse41_128_32.c
src/nw_scan_sse41_128_16.c
src/sg_scan_sse41_128_16.c
src/sw_scan_sse41_128_16.c
src/nw_scan_sse41_128_8.c
src/sg_scan_sse41_128_8.c
src/sw_scan_sse41_128_8.c
src/nw_diag_sse41_128_64.c
src/sg_diag_sse41_128_64.c
src/sw_diag_sse41_128_64.c
src/nw_diag_sse41_128_32.c
src/sg_diag_sse41_128_32.c
src/sw_diag_sse41_128_32.c
src/nw_diag_sse41_128_16.c
src/sg_diag_sse41_128_16.c
src/sw_diag_sse41_128_16.c
src/nw_diag_sse41_128_8.c
src/sg_diag_sse41_128_8.c
src/sw_diag_sse41_128_8.c
src/nw_striped_sse41_128_64.c
src/sg_striped_sse41_128_64.c
src/sw_striped_sse41_128_64.c
src/nw_striped_sse41_128_32.c
src/sg_striped_sse41_128_32.c
src/sw_striped_sse41_128_32.c
src/nw_striped_sse41_128_16.c
src/sg_striped_sse41_128_16.c
src/sw_striped_sse41_128_16.c
src/nw_striped_sse41_128_8.c
src/sg_striped_sse41_128_8.c
src/sw_striped_sse41_128_8.c
src/sw_blocked_sse41_128_32.c
src/sw_blocked_sse41_128_16.c
src/nw_stats_scan_sse41_128_64.c
src/sg_stats_scan_sse41_128_64.c
src/sw_stats_scan_sse41_128_64.c
src/nw_stats_scan_sse41_128_32.c
src/sg_stats_scan_sse41_128_32.c
src/sw_stats_scan_sse41_128_32.c
src/nw_stats_scan_sse41_128_16.c
src/sg_stats_scan_sse41_128_16.c
src/sw_stats_scan_sse41_128_16.c
src/nw_stats_scan_sse41_128_8.c
src/sg_stats_scan_sse41_128_8.c
src/sw_stats_scan_sse41_128_8.c
src/nw_stats_diag_sse41_128_64.c
src/sg_stats_diag_sse41_128_64.c
src/sw_stats_diag_sse41_128_64.c
src/nw_stats_diag_sse41_128_32.c
src/sg_stats_diag_sse41_128_32.c
src/sw_stats_diag_sse41_128_32.c
src/nw_stats_diag_sse41_128_16.c
src/sg_stats_diag_sse41_128_16.c
src/sw_stats_diag_sse41_128_16.c
src/nw_stats_diag_sse41_128_8.c
src/sg_stats_diag_sse41_128_8.c
src/sw_stats_diag_sse41_128_8.c
src/nw_stats_striped_sse41_128_64.c
src/sg_stats_striped_sse41_128_64.c
src/sw_stats_striped_sse41_128_64.c
src/nw_stats_striped_sse41_128_32.c
src/sg_stats_striped_sse41_128_32.c
src/sw_stats_striped_sse41_128_32.c
src/nw_stats_striped_sse41_128_16.c
src/sg_stats_striped_sse41_128_16.c
src/sw_stats_striped_sse41_128_16.c
src/nw_stats_striped_sse41_128_8.c
src/sg_stats_striped_sse41_128_8.c
src/sw_stats_striped_sse41_128_8.c
)
SET( SRC_TRACE_SSE41
src/nw_trace_scan_sse41_128_64.c
src/sg_trace_scan_sse41_128_64.c
src/sw_trace_scan_sse41_128_64.c
src/nw_trace_scan_sse41_128_32.c
src/sg_trace_scan_sse41_128_32.c
src/sw_trace_scan_sse41_128_32.c
src/nw_trace_scan_sse41_128_16.c
src/sg_trace_scan_sse41_128_16.c
src/sw_trace_scan_sse41_128_16.c
src/nw_trace_scan_sse41_128_8.c
src/sg_trace_scan_sse41_128_8.c
src/sw_trace_scan_sse41_128_8.c
src/nw_trace_diag_sse41_128_64.c
src/sg_trace_diag_sse41_128_64.c
src/sw_trace_diag_sse41_128_64.c
src/nw_trace_diag_sse41_128_32.c
src/sg_trace_diag_sse41_128_32.c
src/sw_trace_diag_sse41_128_32.c
src/nw_trace_diag_sse41_128_16.c
src/sg_trace_diag_sse41_128_16.c
src/sw_trace_diag_sse41_128_16.c
src/nw_trace_diag_sse41_128_8.c
src/sg_trace_diag_sse41_128_8.c
src/sw_trace_diag_sse41_128_8.c
src/nw_trace_striped_sse41_128_64.c
src/sg_trace_striped_sse41_128_64.c
src/sw_trace_striped_sse41_128_64.c
src/nw_trace_striped_sse41_128_32.c
src/sg_trace_striped_sse41_128_32.c
src/sw_trace_striped_sse41_128_32.c
src/nw_trace_striped_sse41_128_16.c
src/sg_trace_striped_sse41_128_16.c
src/sw_trace_striped_sse41_128_16.c
src/nw_trace_striped_sse41_128_8.c
src/sg_trace_striped_sse41_128_8.c
src/sw_trace_striped_sse41_128_8.c
)
SET( SRC_AVX2
src/nw_scan_avx2_256_64.c
src/sg_scan_avx2_256_64.c
src/sw_scan_avx2_256_64.c
src/nw_scan_avx2_256_32.c
src/sg_scan_avx2_256_32.c
src/sw_scan_avx2_256_32.c
src/nw_scan_avx2_256_16.c
src/sg_scan_avx2_256_16.c
src/sw_scan_avx2_256_16.c
src/nw_scan_avx2_256_8.c
src/sg_scan_avx2_256_8.c
src/sw_scan_avx2_256_8.c
src/nw_diag_avx2_256_64.c
src/sg_diag_avx2_256_64.c
src/sw_diag_avx2_256_64.c
src/nw_diag_avx2_256_32.c
src/sg_diag_avx2_256_32.c
src/sw_diag_avx2_256_32.c
src/nw_diag_avx2_256_16.c
src/sg_diag_avx2_256_16.c
src/sw_diag_avx2_256_16.c
src/nw_diag_avx2_256_8.c
src/sg_diag_avx2_256_8.c
src/sw_diag_avx2_256_8.c
src/nw_striped_avx2_256_64.c
src/sg_striped_avx2_256_64.c
src/sw_striped_avx2_256_64.c
src/nw_striped_avx2_256_32.c
src/sg_striped_avx2_256_32.c
src/sw_striped_avx2_256_32.c
src/nw_striped_avx2_256_16.c
src/sg_striped_avx2_256_16.c
src/sw_striped_avx2_256_16.c
src/nw_striped_avx2_256_8.c
src/sg_striped_avx2_256_8.c
src/sw_striped_avx2_256_8.c
src/nw_stats_scan_avx2_256_64.c
src/sg_stats_scan_avx2_256_64.c
src/sw_stats_scan_avx2_256_64.c
src/nw_stats_scan_avx2_256_32.c
src/sg_stats_scan_avx2_256_32.c
src/sw_stats_scan_avx2_256_32.c
src/nw_stats_scan_avx2_256_16.c
src/sg_stats_scan_avx2_256_16.c
src/sw_stats_scan_avx2_256_16.c
src/nw_stats_scan_avx2_256_8.c
src/sg_stats_scan_avx2_256_8.c
src/sw_stats_scan_avx2_256_8.c
src/nw_stats_diag_avx2_256_64.c
src/sg_stats_diag_avx2_256_64.c
src/sw_stats_diag_avx2_256_64.c
src/nw_stats_diag_avx2_256_32.c
src/sg_stats_diag_avx2_256_32.c
src/sw_stats_diag_avx2_256_32.c
src/nw_stats_diag_avx2_256_16.c
src/sg_stats_diag_avx2_256_16.c
src/sw_stats_diag_avx2_256_16.c
src/nw_stats_diag_avx2_256_8.c
src/sg_stats_diag_avx2_256_8.c
src/sw_stats_diag_avx2_256_8.c
src/nw_stats_striped_avx2_256_64.c
src/sg_stats_striped_avx2_256_64.c
src/sw_stats_striped_avx2_256_64.c
src/nw_stats_striped_avx2_256_32.c
src/sg_stats_striped_avx2_256_32.c
src/sw_stats_striped_avx2_256_32.c
src/nw_stats_striped_avx2_256_16.c
src/sg_stats_striped_avx2_256_16.c
src/sw_stats_striped_avx2_256_16.c
src/nw_stats_striped_avx2_256_8.c
src/sg_stats_striped_avx2_256_8.c
src/sw_stats_striped_avx2_256_8.c
)
SET( SRC_TRACE_AVX2
src/nw_trace_scan_avx2_256_64.c
src/sg_trace_scan_avx2_256_64.c
src/sw_trace_scan_avx2_256_64.c
src/nw_trace_scan_avx2_256_32.c
src/sg_trace_scan_avx2_256_32.c
src/sw_trace_scan_avx2_256_32.c
src/nw_trace_scan_avx2_256_16.c
src/sg_trace_scan_avx2_256_16.c
src/sw_trace_scan_avx2_256_16.c
src/nw_trace_scan_avx2_256_8.c
src/sg_trace_scan_avx2_256_8.c
src/sw_trace_scan_avx2_256_8.c
src/nw_trace_diag_avx2_256_64.c
src/sg_trace_diag_avx2_256_64.c
src/sw_trace_diag_avx2_256_64.c
src/nw_trace_diag_avx2_256_32.c
src/sg_trace_diag_avx2_256_32.c
src/sw_trace_diag_avx2_256_32.c
src/nw_trace_diag_avx2_256_16.c
src/sg_trace_diag_avx2_256_16.c
src/sw_trace_diag_avx2_256_16.c
src/nw_trace_diag_avx2_256_8.c
src/sg_trace_diag_avx2_256_8.c
src/sw_trace_diag_avx2_256_8.c
src/nw_trace_striped_avx2_256_64.c
src/sg_trace_striped_avx2_256_64.c
src/sw_trace_striped_avx2_256_64.c
src/nw_trace_striped_avx2_256_32.c
src/sg_trace_striped_avx2_256_32.c
src/sw_trace_striped_avx2_256_32.c
src/nw_trace_striped_avx2_256_16.c
src/sg_trace_striped_avx2_256_16.c
src/sw_trace_striped_avx2_256_16.c
src/nw_trace_striped_avx2_256_8.c
src/sg_trace_striped_avx2_256_8.c
src/sw_trace_striped_avx2_256_8.c
)
SET( SRC_ALTIVEC
src/nw_scan_altivec_128_64.c
src/sg_scan_altivec_128_64.c
src/sw_scan_altivec_128_64.c
src/nw_scan_altivec_128_32.c
src/sg_scan_altivec_128_32.c
src/sw_scan_altivec_128_32.c
src/nw_scan_altivec_128_16.c
src/sg_scan_altivec_128_16.c
src/sw_scan_altivec_128_16.c
src/nw_scan_altivec_128_8.c
src/sg_scan_altivec_128_8.c
src/sw_scan_altivec_128_8.c
src/nw_diag_altivec_128_64.c
src/sg_diag_altivec_128_64.c
src/sw_diag_altivec_128_64.c
src/nw_diag_altivec_128_32.c
src/sg_diag_altivec_128_32.c
src/sw_diag_altivec_128_32.c
src/nw_diag_altivec_128_16.c
src/sg_diag_altivec_128_16.c
src/sw_diag_altivec_128_16.c
src/nw_diag_altivec_128_8.c
src/sg_diag_altivec_128_8.c
src/sw_diag_altivec_128_8.c
src/nw_striped_altivec_128_64.c
src/sg_striped_altivec_128_64.c
src/sw_striped_altivec_128_64.c
src/nw_striped_altivec_128_32.c
src/sg_striped_altivec_128_32.c
src/sw_striped_altivec_128_32.c
src/nw_striped_altivec_128_16.c
src/sg_striped_altivec_128_16.c
src/sw_striped_altivec_128_16.c
src/nw_striped_altivec_128_8.c
src/sg_striped_altivec_128_8.c
src/sw_striped_altivec_128_8.c
src/nw_stats_scan_altivec_128_64.c
src/sg_stats_scan_altivec_128_64.c
src/sw_stats_scan_altivec_128_64.c
src/nw_stats_scan_altivec_128_32.c
src/sg_stats_scan_altivec_128_32.c
src/sw_stats_scan_altivec_128_32.c
src/nw_stats_scan_altivec_128_16.c
src/sg_stats_scan_altivec_128_16.c
src/sw_stats_scan_altivec_128_16.c
src/nw_stats_scan_altivec_128_8.c
src/sg_stats_scan_altivec_128_8.c
src/sw_stats_scan_altivec_128_8.c
src/nw_stats_diag_altivec_128_64.c
src/sg_stats_diag_altivec_128_64.c
src/sw_stats_diag_altivec_128_64.c
src/nw_stats_diag_altivec_128_32.c
src/sg_stats_diag_altivec_128_32.c
src/sw_stats_diag_altivec_128_32.c
src/nw_stats_diag_altivec_128_16.c
src/sg_stats_diag_altivec_128_16.c
src/sw_stats_diag_altivec_128_16.c
src/nw_stats_diag_altivec_128_8.c
src/sg_stats_diag_altivec_128_8.c
src/sw_stats_diag_altivec_128_8.c
src/nw_stats_striped_altivec_128_64.c
src/sg_stats_striped_altivec_128_64.c
src/sw_stats_striped_altivec_128_64.c
src/nw_stats_striped_altivec_128_32.c
src/sg_stats_striped_altivec_128_32.c
src/sw_stats_striped_altivec_128_32.c
src/nw_stats_striped_altivec_128_16.c
src/sg_stats_striped_altivec_128_16.c
src/sw_stats_striped_altivec_128_16.c
src/nw_stats_striped_altivec_128_8.c
src/sg_stats_striped_altivec_128_8.c
src/sw_stats_striped_altivec_128_8.c
)
SET( SRC_TRACE_ALTIVEC
src/nw_trace_scan_altivec_128_64.c
src/sg_trace_scan_altivec_128_64.c
src/sw_trace_scan_altivec_128_64.c
src/nw_trace_scan_altivec_128_32.c
src/sg_trace_scan_altivec_128_32.c
src/sw_trace_scan_altivec_128_32.c
src/nw_trace_scan_altivec_128_16.c
src/sg_trace_scan_altivec_128_16.c
src/sw_trace_scan_altivec_128_16.c
src/nw_trace_scan_altivec_128_8.c
src/sg_trace_scan_altivec_128_8.c
src/sw_trace_scan_altivec_128_8.c
src/nw_trace_diag_altivec_128_64.c
src/sg_trace_diag_altivec_128_64.c
src/sw_trace_diag_altivec_128_64.c
src/nw_trace_diag_altivec_128_32.c
src/sg_trace_diag_altivec_128_32.c
src/sw_trace_diag_altivec_128_32.c
src/nw_trace_diag_altivec_128_16.c
src/sg_trace_diag_altivec_128_16.c
src/sw_trace_diag_altivec_128_16.c
src/nw_trace_diag_altivec_128_8.c
src/sg_trace_diag_altivec_128_8.c
src/sw_trace_diag_altivec_128_8.c
src/nw_trace_striped_altivec_128_64.c
src/sg_trace_striped_altivec_128_64.c
src/sw_trace_striped_altivec_128_64.c
src/nw_trace_striped_altivec_128_32.c
src/sg_trace_striped_altivec_128_32.c
src/sw_trace_striped_altivec_128_32.c
src/nw_trace_striped_altivec_128_16.c
src/sg_trace_striped_altivec_128_16.c
src/sw_trace_striped_altivec_128_16.c
src/nw_trace_striped_altivec_128_8.c
src/sg_trace_striped_altivec_128_8.c
src/sw_trace_striped_altivec_128_8.c
)
SET( SRC_NEON
src/nw_scan_neon_128_64.c
src/sg_scan_neon_128_64.c
src/sw_scan_neon_128_64.c
src/nw_scan_neon_128_32.c
src/sg_scan_neon_128_32.c
src/sw_scan_neon_128_32.c
src/nw_scan_neon_128_16.c
src/sg_scan_neon_128_16.c
src/sw_scan_neon_128_16.c
src/nw_scan_neon_128_8.c
src/sg_scan_neon_128_8.c
src/sw_scan_neon_128_8.c
src/nw_diag_neon_128_64.c
src/sg_diag_neon_128_64.c
src/sw_diag_neon_128_64.c
src/nw_diag_neon_128_32.c
src/sg_diag_neon_128_32.c
src/sw_diag_neon_128_32.c
src/nw_diag_neon_128_16.c
src/sg_diag_neon_128_16.c
src/sw_diag_neon_128_16.c
src/nw_diag_neon_128_8.c
src/sg_diag_neon_128_8.c
src/sw_diag_neon_128_8.c
src/nw_striped_neon_128_64.c
src/sg_striped_neon_128_64.c
src/sw_striped_neon_128_64.c
src/nw_striped_neon_128_32.c
src/sg_striped_neon_128_32.c
src/sw_striped_neon_128_32.c
src/nw_striped_neon_128_16.c
src/sg_striped_neon_128_16.c
src/sw_striped_neon_128_16.c
src/nw_striped_neon_128_8.c
src/sg_striped_neon_128_8.c
src/sw_striped_neon_128_8.c
src/nw_stats_scan_neon_128_64.c
src/sg_stats_scan_neon_128_64.c
src/sw_stats_scan_neon_128_64.c
src/nw_stats_scan_neon_128_32.c
src/sg_stats_scan_neon_128_32.c
src/sw_stats_scan_neon_128_32.c
src/nw_stats_scan_neon_128_16.c
src/sg_stats_scan_neon_128_16.c
src/sw_stats_scan_neon_128_16.c
src/nw_stats_scan_neon_128_8.c
src/sg_stats_scan_neon_128_8.c
src/sw_stats_scan_neon_128_8.c
src/nw_stats_diag_neon_128_64.c
src/sg_stats_diag_neon_128_64.c
src/sw_stats_diag_neon_128_64.c
src/nw_stats_diag_neon_128_32.c
src/sg_stats_diag_neon_128_32.c
src/sw_stats_diag_neon_128_32.c
src/nw_stats_diag_neon_128_16.c
src/sg_stats_diag_neon_128_16.c
src/sw_stats_diag_neon_128_16.c
src/nw_stats_diag_neon_128_8.c
src/sg_stats_diag_neon_128_8.c
src/sw_stats_diag_neon_128_8.c
src/nw_stats_striped_neon_128_64.c
src/sg_stats_striped_neon_128_64.c
src/sw_stats_striped_neon_128_64.c
src/nw_stats_striped_neon_128_32.c
src/sg_stats_striped_neon_128_32.c
src/sw_stats_striped_neon_128_32.c
src/nw_stats_striped_neon_128_16.c
src/sg_stats_striped_neon_128_16.c
src/sw_stats_striped_neon_128_16.c
src/nw_stats_striped_neon_128_8.c
src/sg_stats_striped_neon_128_8.c
src/sw_stats_striped_neon_128_8.c
)
SET( SRC_TRACE_NEON
src/nw_trace_scan_neon_128_64.c
src/sg_trace_scan_neon_128_64.c
src/sw_trace_scan_neon_128_64.c
src/nw_trace_scan_neon_128_32.c
src/sg_trace_scan_neon_128_32.c
src/sw_trace_scan_neon_128_32.c
src/nw_trace_scan_neon_128_16.c
src/sg_trace_scan_neon_128_16.c
src/sw_trace_scan_neon_128_16.c
src/nw_trace_scan_neon_128_8.c
src/sg_trace_scan_neon_128_8.c
src/sw_trace_scan_neon_128_8.c
src/nw_trace_diag_neon_128_64.c
src/sg_trace_diag_neon_128_64.c
src/sw_trace_diag_neon_128_64.c
src/nw_trace_diag_neon_128_32.c
src/sg_trace_diag_neon_128_32.c
src/sw_trace_diag_neon_128_32.c
src/nw_trace_diag_neon_128_16.c
src/sg_trace_diag_neon_128_16.c
src/sw_trace_diag_neon_128_16.c
src/nw_trace_diag_neon_128_8.c
src/sg_trace_diag_neon_128_8.c
src/sw_trace_diag_neon_128_8.c
src/nw_trace_striped_neon_128_64.c
src/sg_trace_striped_neon_128_64.c
src/sw_trace_striped_neon_128_64.c
src/nw_trace_striped_neon_128_32.c
src/sg_trace_striped_neon_128_32.c
src/sw_trace_striped_neon_128_32.c
src/nw_trace_striped_neon_128_16.c
src/sg_trace_striped_neon_128_16.c
src/sw_trace_striped_neon_128_16.c
src/nw_trace_striped_neon_128_8.c
src/sg_trace_striped_neon_128_8.c
src/sw_trace_striped_neon_128_8.c
)
ADD_LIBRARY( parasail_core OBJECT ${SRC_CORE} )
ADD_LIBRARY( parasail_novec OBJECT ${SRC_NOVEC} )
ADD_LIBRARY( parasail_novec_table OBJECT ${SRC_NOVEC} )
ADD_LIBRARY( parasail_novec_rowcol OBJECT ${SRC_NOVEC} )
ADD_LIBRARY( parasail_novec_trace OBJECT ${SRC_TRACE_NOVEC} )
SET_TARGET_PROPERTIES( parasail_novec_table PROPERTIES COMPILE_DEFINITIONS PARASAIL_TABLE )
SET_TARGET_PROPERTIES( parasail_novec_rowcol PROPERTIES COMPILE_DEFINITIONS PARASAIL_ROWCOL )
IF( SSE2_FOUND )
ADD_LIBRARY( parasail_sse2 OBJECT ${SRC_SSE2} src/memory_sse.c )
ADD_LIBRARY( parasail_sse2_table OBJECT ${SRC_SSE2} )
ADD_LIBRARY( parasail_sse2_rowcol OBJECT ${SRC_SSE2} )
ADD_LIBRARY( parasail_sse2_trace OBJECT ${SRC_TRACE_SSE2} )
SET_TARGET_PROPERTIES( parasail_sse2 PROPERTIES COMPILE_FLAGS ${SSE2_C_FLAGS} )
SET_TARGET_PROPERTIES( parasail_sse2_table PROPERTIES COMPILE_FLAGS ${SSE2_C_FLAGS} )
SET_TARGET_PROPERTIES( parasail_sse2_rowcol PROPERTIES COMPILE_FLAGS ${SSE2_C_FLAGS} )
SET_TARGET_PROPERTIES( parasail_sse2_trace PROPERTIES COMPILE_FLAGS ${SSE2_C_FLAGS} )
ELSE( )
ADD_LIBRARY( parasail_sse2 OBJECT cmake/sse2_dummy.c )
ADD_LIBRARY( parasail_sse2_table OBJECT cmake/sse2_dummy.c )
ADD_LIBRARY( parasail_sse2_rowcol OBJECT cmake/sse2_dummy.c )
ADD_LIBRARY( parasail_sse2_trace OBJECT cmake/sse2_dummy.c )
ENDIF( )
SET_TARGET_PROPERTIES( parasail_sse2_table PROPERTIES COMPILE_DEFINITIONS PARASAIL_TABLE )
SET_TARGET_PROPERTIES( parasail_sse2_rowcol PROPERTIES COMPILE_DEFINITIONS PARASAIL_ROWCOL )
SET_TARGET_PROPERTIES( parasail_sse2_trace PROPERTIES COMPILE_DEFINITIONS PARASAIL_TRACE )
IF( SSE41_FOUND )
ADD_LIBRARY( parasail_sse41 OBJECT ${SRC_SSE41} )
ADD_LIBRARY( parasail_sse41_table OBJECT ${SRC_SSE41} )
ADD_LIBRARY( parasail_sse41_rowcol OBJECT ${SRC_SSE41} )
ADD_LIBRARY( parasail_sse41_trace OBJECT ${SRC_TRACE_SSE41} )
SET_TARGET_PROPERTIES( parasail_sse41 PROPERTIES COMPILE_FLAGS ${SSE41_C_FLAGS} )
SET_TARGET_PROPERTIES( parasail_sse41_table PROPERTIES COMPILE_FLAGS ${SSE41_C_FLAGS} )
SET_TARGET_PROPERTIES( parasail_sse41_rowcol PROPERTIES COMPILE_FLAGS ${SSE41_C_FLAGS} )
SET_TARGET_PROPERTIES( parasail_sse41_trace PROPERTIES COMPILE_FLAGS ${SSE41_C_FLAGS} )
ELSE( )
ADD_LIBRARY( parasail_sse41 OBJECT cmake/sse41_dummy.c )
ADD_LIBRARY( parasail_sse41_table OBJECT cmake/sse41_dummy.c )
ADD_LIBRARY( parasail_sse41_rowcol OBJECT cmake/sse41_dummy.c )
ADD_LIBRARY( parasail_sse41_trace OBJECT cmake/sse41_dummy.c )
ENDIF( )
SET_TARGET_PROPERTIES( parasail_sse41_table PROPERTIES COMPILE_DEFINITIONS PARASAIL_TABLE )
SET_TARGET_PROPERTIES( parasail_sse41_rowcol PROPERTIES COMPILE_DEFINITIONS PARASAIL_ROWCOL )
SET_TARGET_PROPERTIES( parasail_sse41_trace PROPERTIES COMPILE_DEFINITIONS PARASAIL_TRACE )
IF( AVX2_FOUND )
ADD_LIBRARY( parasail_avx2 OBJECT ${SRC_AVX2} src/memory_avx2.c )
ADD_LIBRARY( parasail_avx2_table OBJECT ${SRC_AVX2} )
ADD_LIBRARY( parasail_avx2_rowcol OBJECT ${SRC_AVX2} )
ADD_LIBRARY( parasail_avx2_trace OBJECT ${SRC_TRACE_AVX2} )
SET_TARGET_PROPERTIES( parasail_avx2 PROPERTIES COMPILE_FLAGS ${AVX2_C_FLAGS} )
SET_TARGET_PROPERTIES( parasail_avx2_table PROPERTIES COMPILE_FLAGS ${AVX2_C_FLAGS} )
SET_TARGET_PROPERTIES( parasail_avx2_rowcol PROPERTIES COMPILE_FLAGS ${AVX2_C_FLAGS} )
SET_TARGET_PROPERTIES( parasail_avx2_trace PROPERTIES COMPILE_FLAGS ${AVX2_C_FLAGS} )
ELSE( )
ADD_LIBRARY( parasail_avx2 OBJECT cmake/avx2_dummy.c )
ADD_LIBRARY( parasail_avx2_table OBJECT cmake/avx2_dummy.c )
ADD_LIBRARY( parasail_avx2_rowcol OBJECT cmake/avx2_dummy.c )
ADD_LIBRARY( parasail_avx2_trace OBJECT cmake/avx2_dummy.c )
ENDIF( )
SET_TARGET_PROPERTIES( parasail_avx2_table PROPERTIES COMPILE_DEFINITIONS PARASAIL_TABLE )
SET_TARGET_PROPERTIES( parasail_avx2_rowcol PROPERTIES COMPILE_DEFINITIONS PARASAIL_ROWCOL )
SET_TARGET_PROPERTIES( parasail_avx2_trace PROPERTIES COMPILE_DEFINITIONS PARASAIL_TRACE )
IF( ALTIVEC_FOUND )
ADD_LIBRARY( parasail_altivec OBJECT ${SRC_ALTIVEC} src/memory_altivec.c )
ADD_LIBRARY( parasail_altivec_table OBJECT ${SRC_ALTIVEC} )
ADD_LIBRARY( parasail_altivec_rowcol OBJECT ${SRC_ALTIVEC} )
ADD_LIBRARY( parasail_altivec_trace OBJECT ${SRC_TRACE_ALTIVEC} )
SET_TARGET_PROPERTIES( parasail_altivec PROPERTIES COMPILE_FLAGS ${ALTIVEC_C_FLAGS} )
SET_TARGET_PROPERTIES( parasail_altivec_table PROPERTIES COMPILE_FLAGS ${ALTIVEC_C_FLAGS} )
SET_TARGET_PROPERTIES( parasail_altivec_rowcol PROPERTIES COMPILE_FLAGS ${ALTIVEC_C_FLAGS} )
SET_TARGET_PROPERTIES( parasail_altivec_trace PROPERTIES COMPILE_FLAGS ${ALTIVEC_C_FLAGS} )
ELSE( )
ADD_LIBRARY( parasail_altivec OBJECT cmake/altivec_dummy.c )
ADD_LIBRARY( parasail_altivec_table OBJECT cmake/altivec_dummy.c )
ADD_LIBRARY( parasail_altivec_rowcol OBJECT cmake/altivec_dummy.c )
ADD_LIBRARY( parasail_altivec_trace OBJECT cmake/altivec_dummy.c )
ENDIF( )
SET_TARGET_PROPERTIES( parasail_altivec_table PROPERTIES COMPILE_DEFINITIONS PARASAIL_TABLE )
SET_TARGET_PROPERTIES( parasail_altivec_rowcol PROPERTIES COMPILE_DEFINITIONS PARASAIL_ROWCOL )
SET_TARGET_PROPERTIES( parasail_altivec_trace PROPERTIES COMPILE_DEFINITIONS PARASAIL_TRACE )
IF( NEON_FOUND )
ADD_LIBRARY( parasail_neon OBJECT ${SRC_NEON} src/memory_neon.c )
ADD_LIBRARY( parasail_neon_table OBJECT ${SRC_NEON} )
ADD_LIBRARY( parasail_neon_rowcol OBJECT ${SRC_NEON} )
ADD_LIBRARY( parasail_neon_trace OBJECT ${SRC_TRACE_NEON} )
SET_TARGET_PROPERTIES( parasail_neon PROPERTIES COMPILE_FLAGS ${NEON_C_FLAGS} )
SET_TARGET_PROPERTIES( parasail_neon_table PROPERTIES COMPILE_FLAGS ${NEON_C_FLAGS} )
SET_TARGET_PROPERTIES( parasail_neon_rowcol PROPERTIES COMPILE_FLAGS ${NEON_C_FLAGS} )
SET_TARGET_PROPERTIES( parasail_neon_trace PROPERTIES COMPILE_FLAGS ${NEON_C_FLAGS} )
ELSE( )
ADD_LIBRARY( parasail_neon OBJECT cmake/neon_dummy.c )
ADD_LIBRARY( parasail_neon_table OBJECT cmake/neon_dummy.c )
ADD_LIBRARY( parasail_neon_rowcol OBJECT cmake/neon_dummy.c )
ADD_LIBRARY( parasail_neon_trace OBJECT cmake/neon_dummy.c )
ENDIF( )
SET_TARGET_PROPERTIES( parasail_neon_table PROPERTIES COMPILE_DEFINITIONS PARASAIL_TABLE )
SET_TARGET_PROPERTIES( parasail_neon_rowcol PROPERTIES COMPILE_DEFINITIONS PARASAIL_ROWCOL )
SET_TARGET_PROPERTIES( parasail_neon_trace PROPERTIES COMPILE_DEFINITIONS PARASAIL_TRACE )
ADD_LIBRARY( sais OBJECT contrib/sais-lite-lcp/sais.c )
IF( SSE2_FOUND )
ADD_LIBRARY( ssw OBJECT contrib/ssw/ssw.c )
SET_TARGET_PROPERTIES( ssw PROPERTIES COMPILE_FLAGS ${SSE2_C_FLAGS} )
ELSE( )
ADD_LIBRARY( ssw OBJECT cmake/ssw_dummy.c )
ENDIF( )
SET( maybe_def )
IF( WIN32 )
IF( BUILD_SHARED_LIBS )
LIST( APPEND maybe_def cmake/parasail.def )
ENDIF( )
# Disable C4244 (implicit integer truncation) warning on MSVC builds
# because there are too many caused by the 64-bit wide integer
# versions of the alignment functions.
SET( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /wd4244")
ENDIF( )
ADD_LIBRARY( parasail ${LIB_TYPE}
$<TARGET_OBJECTS:parasail_core>
$<TARGET_OBJECTS:parasail_novec>
$<TARGET_OBJECTS:parasail_novec_table>
$<TARGET_OBJECTS:parasail_novec_rowcol>
$<TARGET_OBJECTS:parasail_novec_trace>
$<TARGET_OBJECTS:parasail_sse2>
$<TARGET_OBJECTS:parasail_sse2_table>
$<TARGET_OBJECTS:parasail_sse2_rowcol>
$<TARGET_OBJECTS:parasail_sse2_trace>
$<TARGET_OBJECTS:parasail_sse41>
$<TARGET_OBJECTS:parasail_sse41_table>
$<TARGET_OBJECTS:parasail_sse41_rowcol>
$<TARGET_OBJECTS:parasail_sse41_trace>
$<TARGET_OBJECTS:parasail_avx2>
$<TARGET_OBJECTS:parasail_avx2_table>
$<TARGET_OBJECTS:parasail_avx2_rowcol>
$<TARGET_OBJECTS:parasail_avx2_trace>
$<TARGET_OBJECTS:parasail_altivec>
$<TARGET_OBJECTS:parasail_altivec_table>
$<TARGET_OBJECTS:parasail_altivec_rowcol>
$<TARGET_OBJECTS:parasail_altivec_trace>
$<TARGET_OBJECTS:parasail_neon>
$<TARGET_OBJECTS:parasail_neon_table>
$<TARGET_OBJECTS:parasail_neon_rowcol>
$<TARGET_OBJECTS:parasail_neon_trace>
${maybe_def}
)
TARGET_INCLUDE_DIRECTORIES(parasail PUBLIC ${CMAKE_CURRENT_LIST_DIR})
IF( ZLIB_FOUND )
TARGET_LINK_LIBRARIES( parasail ${ZLIB_LIBRARIES} )
TARGET_INCLUDE_DIRECTORIES( parasail PUBLIC ${ZLIB_INCLUDE_DIR} )
SET( HAVE_ZLIB TRUE CACHE INTERNAL "" )
ELSE( )
SET( HAVE_ZLIB FALSE CACHE INTERNAL "" )
ENDIF( )
CHECK_C_SOURCE_COMPILES(
"
int main(void) {
long long val = 116444736000000000i64;
return 0;
}
"
INT64_LITERAL_SUFFIX_I64 )
CHECK_C_SOURCE_COMPILES(
"
int main(void) {
long long val = 116444736000000000LL;
return 0;
}
"
INT64_LITERAL_SUFFIX_LL )
IF( HAVE_CLOCK_GETTIME_NATIVE )
ELSEIF( HAVE_CLOCK_GETTIME_RT )
TARGET_LINK_LIBRARIES( parasail rt )
ELSEIF( HAVE_CLOCK_GETTIME_PTHREAD )
TARGET_LINK_LIBRARIES( parasail pthread )
ENDIF( )
# check for monotonic
CHECK_C_SOURCE_COMPILES(
"
#define _POSIX_C_SOURCE 199309L
#include <time.h>
double parasail_time(void) {
struct timespec ts;
/* Works on FreeBSD */
long retval = clock_gettime(CLOCK_MONOTONIC, &ts);
return (double)(ts.tv_sec) + (double)(ts.tv_nsec)/1000000000.0;
}
int main(void) {
double t = parasail_time();
return 0;
}
"
HAVE_CLOCK_GETTIME_MONOTONIC )