@@ -10,33 +10,6 @@ bench = include_directories('benchmarks')
10
10
utils = include_directories (' utils' )
11
11
tests = include_directories (' tests' )
12
12
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
-
40
13
fp16code = ''' #include<immintrin.h>
41
14
int main() {
42
15
__m512h temp = _mm512_set1_ph(1.0f);
@@ -47,27 +20,13 @@ int main() {
47
20
cancompilefp16 = cpp.compiles(fp16code, args :' -march=sapphirerapids' )
48
21
49
22
subdir (' lib' )
50
- if get_option (' lib_type' ) == ' shared'
51
- libsimdsort = shared_library (' x86simdsortcpp' ,
23
+ libsimdsort = shared_library (' x86simdsortcpp' ,
52
24
' lib/x86simdsort.cpp' ,
53
25
include_directories : [src, utils, lib],
54
26
link_with : [libtargets],
55
- dependencies : [omp_dep],
56
- gnu_symbol_visibility : ' inlineshidden' ,
57
27
install : true ,
58
28
soversion : 1 ,
59
29
)
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
71
30
72
31
pkg_mod = import (' pkgconfig' )
73
32
pkg_mod.generate(libraries : libsimdsort,
@@ -76,38 +35,6 @@ pkg_mod.generate(libraries : libsimdsort,
76
35
filebase : ' x86simdsortcpp' ,
77
36
description : ' C++ template library for high performance SIMD based sorting routines.' )
78
37
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
-
111
38
summary ({
112
39
' Can compile AVX-512 FP16 ISA' : cancompilefp16,
113
40
' Build test content' : get_option (' build_tests' ),
0 commit comments