Skip to content

Commit b49a0f8

Browse files
author
Raghuveer Devulapalli
committed
Update tests to use x86simdsort library
1 parent 1fd5b1b commit b49a0f8

16 files changed

+373
-1095
lines changed

benchmarks/bench-argsort.hpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ static void scalarargsort(benchmark::State &state, Args &&...args)
2222
std::string arrtype = std::get<1>(args_tuple);
2323
// set up array
2424
std::vector<T> arr = get_array<T>(arrtype, arrsize);
25-
std::vector<T> arr_bkp = arr;
2625
std::vector<int64_t> inx;
2726
// benchmark
2827
for (auto _ : state) {
@@ -39,7 +38,6 @@ static void simdargsort(benchmark::State &state, Args &&...args)
3938
std::string arrtype = std::get<1>(args_tuple);
4039
// set up array
4140
std::vector<T> arr = get_array<T>(arrtype, arrsize);
42-
std::vector<T> arr_bkp = arr;
4341
std::vector<int64_t> inx;
4442
// benchmark
4543
for (auto _ : state) {

meson.build

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,10 @@ libsimdsort = shared_library('x86simdsort',
3232
)
3333

3434
testexe = executable('testexe',
35-
include_directories : [src, utils],
35+
include_directories : [lib, utils],
3636
dependencies : gtest_dep,
37-
link_whole : [libtests]
37+
link_whole : [libtests],
38+
link_with : libsimdsort,
3839
)
3940

4041
benchexe = executable('benchexe',

tests/meson.build

Lines changed: 14 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,17 @@
11
libtests = []
22

3-
if cpp.has_argument('-march=skylake-avx512')
4-
libtests += static_library('tests_kv',
5-
files(
6-
'test-keyvalue.cpp',
7-
'test-argsort.cpp',
8-
),
9-
dependencies: gtest_dep,
10-
include_directories : [src, utils],
11-
cpp_args : ['-O3', '-march=skylake-avx512'],
12-
)
13-
endif
3+
libtests += static_library('tests_qsort',
4+
files('test-qsort.cpp', ),
5+
dependencies: gtest_dep,
6+
include_directories : [lib, utils],
7+
cpp_args : ['-O3'],
8+
)
149

15-
if cpp.has_argument('-march=icelake-client')
16-
libtests += static_library('tests_qsort',
17-
files('test-qsort.cpp', ),
18-
dependencies: gtest_dep,
19-
include_directories : [src, utils],
20-
cpp_args : ['-O3', '-march=icelake-client'],
21-
)
22-
endif
23-
24-
if cancompilefp16
25-
libtests += static_library('tests_qsortfp16',
26-
files('test-qsortfp16.cpp', ),
27-
dependencies: gtest_dep,
28-
include_directories : [src, utils],
29-
cpp_args : ['-O3', '-march=sapphirerapids'],
30-
)
31-
endif
10+
#if cancompilefp16
11+
# libtests += static_library('tests_qsortfp16',
12+
# files('test-qsortfp16.cpp', ),
13+
# dependencies: gtest_dep,
14+
# include_directories : [src, utils],
15+
# cpp_args : ['-O3', '-march=sapphirerapids'],
16+
# )
17+
#endif

tests/test-argselect.hpp

Lines changed: 0 additions & 49 deletions
This file was deleted.

tests/test-argsort-common.h

Lines changed: 0 additions & 81 deletions
This file was deleted.

tests/test-argsort.cpp

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)