@@ -10,33 +10,6 @@ bench = include_directories('benchmarks')
1010utils = include_directories (' utils' )
1111tests = include_directories (' tests' )
1212
13- # Add IPP sort to benchmarks:
14- benchipp = false
15- ipplink = []
16- if get_option (' build_ippbench' )
17- benchipp = true
18- ipplink = [' -lipps' , ' -lippcore' ]
19- endif
20-
21- # Essentially '-Werror' for the sanitizers; all problems become fatal with this set
22- if get_option (' fatal_sanitizers' )
23- add_project_arguments ([ ' -fno-sanitize-recover=all' ], language : ' cpp' )
24- endif
25-
26- # Add google vqsort to benchmarks:
27- benchvq = false
28- if get_option (' build_vqsortbench' )
29- benchvq = true
30- endif
31-
32- # openMP:
33- omp = []
34- omp_dep = []
35- if get_option (' use_openmp' )
36- omp = dependency (' openmp' , required : true )
37- omp_dep = declare_dependency (dependencies : omp, compile_args : [' -DXSS_USE_OPENMP' ])
38- endif
39-
4013fp16code = ''' #include<immintrin.h>
4114int main() {
4215 __m512h temp = _mm512_set1_ph(1.0f);
@@ -47,27 +20,13 @@ int main() {
4720cancompilefp16 = cpp.compiles(fp16code, args :' -march=sapphirerapids' )
4821
4922subdir (' lib' )
50- if get_option (' lib_type' ) == ' shared'
51- libsimdsort = shared_library (' x86simdsortcpp' ,
23+ libsimdsort = shared_library (' x86simdsortcpp' ,
5224 ' lib/x86simdsort.cpp' ,
5325 include_directories : [src, utils, lib],
5426 link_with : [libtargets],
55- dependencies : [omp_dep],
56- gnu_symbol_visibility : ' inlineshidden' ,
5727 install : true ,
5828 soversion : 1 ,
5929 )
60- else
61- libsimdsort = static_library (' x86simdsortcpp' ,
62- ' lib/x86simdsort.cpp' ,
63- include_directories : [src, utils, lib],
64- link_with : [libtargets],
65- dependencies : [omp_dep],
66- gnu_symbol_visibility : ' inlineshidden' ,
67- install : true ,
68- pic : true ,
69- )
70- endif
7130
7231pkg_mod = import (' pkgconfig' )
7332pkg_mod.generate(libraries : libsimdsort,
@@ -76,38 +35,6 @@ pkg_mod.generate(libraries : libsimdsort,
7635 filebase : ' x86simdsortcpp' ,
7736 description : ' C++ template library for high performance SIMD based sorting routines.' )
7837
79- # Create a new dependency variable making it easy to use this as a subproject:
80- x86simdsortcpp_dep = declare_dependency (
81- include_directories : include_directories (' lib' ),
82- link_with : libsimdsort,
83- )
84-
85- # Build test suite if option build_tests set to true
86- if get_option (' build_tests' )
87- gtest_dep = dependency (' gtest_main' , required : true , static : false )
88- subdir (' tests' )
89- testexe = executable (' testexe' ,
90- include_directories : [lib, utils],
91- dependencies : [gtest_dep, x86simdsortcpp_dep],
92- link_whole : [libtests],
93- )
94- test (' x86 simd sort tests' , testexe)
95- endif
96-
97- # Build benchmarking suite if option build_benchmarks is set to true
98-
99- if get_option (' build_benchmarks' )
100- gbench_dep = dependency (' benchmark' , required : true , static : false )
101- thread_dep = dependency (' threads' ) # libbenchmark could need pthread_create
102- subdir (' benchmarks' )
103- benchexe = executable (' benchexe' ,
104- include_directories : [src, lib, utils, bench],
105- dependencies : [gbench_dep, thread_dep, x86simdsortcpp_dep],
106- link_args : [' -lbenchmark_main' , ipplink],
107- link_whole : [libbench],
108- )
109- endif
110-
11138summary ({
11239 ' Can compile AVX-512 FP16 ISA' : cancompilefp16,
11340 ' Build test content' : get_option (' build_tests' ),
0 commit comments