|
1 | 1 | #include "vxsort_targets_enable_avx512.h"
|
2 | 2 |
|
3 |
| -#include <random> |
4 | 3 | #include <benchmark/benchmark.h>
|
| 4 | +#include <random> |
5 | 5 |
|
6 | 6 | #include <vxsort.avx512.h>
|
7 | 7 |
|
8 | 8 | #include "BM_fullsort.vxsort.h"
|
9 | 9 |
|
10 | 10 | namespace vxsort_bench {
|
11 | 11 | using namespace vxsort::types;
|
12 |
| -using benchmark::TimeUnit; |
13 | 12 | using vm = vxsort::vector_machine;
|
14 | 13 |
|
15 |
| -BENCHMARK_TEMPLATE(BM_vxsort, i16, vm::AVX512, 1)->RangeMultiplier(2)->Range(MIN_SORT, MAX_SORT)->Unit(kMillisecond)->ThreadRange(1, processor_count); |
16 |
| -BENCHMARK_TEMPLATE(BM_vxsort, i16, vm::AVX512, 2)->RangeMultiplier(2)->Range(MIN_SORT, MAX_SORT)->Unit(kMillisecond)->ThreadRange(1, processor_count); |
17 |
| -BENCHMARK_TEMPLATE(BM_vxsort, i16, vm::AVX512, 4)->RangeMultiplier(2)->Range(MIN_SORT, MAX_SORT)->Unit(kMillisecond)->ThreadRange(1, processor_count); |
18 |
| -BENCHMARK_TEMPLATE(BM_vxsort, i16, vm::AVX512, 8)->RangeMultiplier(2)->Range(MIN_SORT, MAX_SORT)->Unit(kMillisecond)->ThreadRange(1, processor_count); |
19 |
| - |
20 |
| -BENCHMARK_TEMPLATE(BM_vxsort, i32, vm::AVX512, 1)->RangeMultiplier(2)->Range(MIN_SORT, MAX_SORT)->Unit(kMillisecond)->ThreadRange(1, processor_count); |
21 |
| -BENCHMARK_TEMPLATE(BM_vxsort, i32, vm::AVX512, 2)->RangeMultiplier(2)->Range(MIN_SORT, MAX_SORT)->Unit(kMillisecond)->ThreadRange(1, processor_count); |
22 |
| -BENCHMARK_TEMPLATE(BM_vxsort, i32, vm::AVX512, 4)->RangeMultiplier(2)->Range(MIN_SORT, MAX_SORT)->Unit(kMillisecond)->ThreadRange(1, processor_count); |
23 |
| -BENCHMARK_TEMPLATE(BM_vxsort, i32, vm::AVX512, 8)->RangeMultiplier(2)->Range(MIN_SORT, MAX_SORT)->Unit(kMillisecond)->ThreadRange(1, processor_count); |
24 |
| - |
25 |
| -BENCHMARK_TEMPLATE(BM_vxsort, i64, vm::AVX512, 1)->RangeMultiplier(2)->Range(MIN_SORT, MAX_SORT)->Unit(kMillisecond)->ThreadRange(1, processor_count); |
26 |
| -BENCHMARK_TEMPLATE(BM_vxsort, i64, vm::AVX512, 2)->RangeMultiplier(2)->Range(MIN_SORT, MAX_SORT)->Unit(kMillisecond)->ThreadRange(1, processor_count); |
27 |
| -BENCHMARK_TEMPLATE(BM_vxsort, i64, vm::AVX512, 4)->RangeMultiplier(2)->Range(MIN_SORT, MAX_SORT)->Unit(kMillisecond)->ThreadRange(1, processor_count); |
28 |
| -BENCHMARK_TEMPLATE(BM_vxsort, i64, vm::AVX512, 8)->RangeMultiplier(2)->Range(MIN_SORT, MAX_SORT)->Unit(kMillisecond)->ThreadRange(1, processor_count); |
29 |
| - |
| 14 | +void register_fullsort_avx512_i_benchmarks() { |
| 15 | + register_fullsort_benchmarks<vm::AVX512, 8, i16, i32, i64>(); |
30 | 16 | }
|
31 | 17 |
|
| 18 | +} // namespace vxsort_bench |
| 19 | + |
32 | 20 | #include "vxsort_targets_disable.h"
|
0 commit comments