@@ -64,7 +64,11 @@ struct avx2_vector<int32_t> {
64
64
using ymmi_t = __m256i;
65
65
using opmask_t = __m256i;
66
66
static const uint8_t numlanes = 8 ;
67
+ #ifdef XSS_MINIMAL_NETWORK_SORT
68
+ static constexpr int network_sort_threshold = numlanes;
69
+ #else
67
70
static constexpr int network_sort_threshold = 256 ;
71
+ #endif
68
72
static constexpr int partition_unroll_factor = 4 ;
69
73
70
74
using swizzle_ops = avx2_32bit_swizzle_ops;
@@ -228,7 +232,11 @@ struct avx2_vector<uint32_t> {
228
232
using ymmi_t = __m256i;
229
233
using opmask_t = __m256i;
230
234
static const uint8_t numlanes = 8 ;
235
+ #ifdef XSS_MINIMAL_NETWORK_SORT
236
+ static constexpr int network_sort_threshold = numlanes;
237
+ #else
231
238
static constexpr int network_sort_threshold = 256 ;
239
+ #endif
232
240
static constexpr int partition_unroll_factor = 4 ;
233
241
234
242
using swizzle_ops = avx2_32bit_swizzle_ops;
@@ -377,7 +385,11 @@ struct avx2_vector<float> {
377
385
using ymmi_t = __m256i;
378
386
using opmask_t = __m256i;
379
387
static const uint8_t numlanes = 8 ;
388
+ #ifdef XSS_MINIMAL_NETWORK_SORT
389
+ static constexpr int network_sort_threshold = numlanes;
390
+ #else
380
391
static constexpr int network_sort_threshold = 256 ;
392
+ #endif
381
393
static constexpr int partition_unroll_factor = 4 ;
382
394
383
395
using swizzle_ops = avx2_32bit_swizzle_ops;
0 commit comments