@@ -1016,37 +1016,17 @@ template <typename KMER_T, unsigned SIZE, bool QUAKE_MODE> bool CKMC<KMER_T, SIZ
10161016 save_bins_stats (Queues, Params, sizeof (KMER_T), KMER_T::QUALITY_SIZE, n_reads, Params.signature_len , Queues.s_mapper ->GetMapSize (), Queues.s_mapper ->GetMap ());
10171017#endif
10181018
1019- SortFunction<KMER_T> sort_func;
1019+ SortFunction<KMER_T> sort_func;
1020+ #ifdef __APPLE__
1021+ sort_func = RadixSort::RadixSortMSD<KMER_T, SIZE>;
1022+ CSmallSort<SIZE>::Adjust (384 );
1023+ #else
10201024 int iset = instrset_detect ();
10211025 auto proc_name = CCpuInfo::GetBrand ();
10221026 bool is_intel = CCpuInfo::GetVendor () == " GenuineIntel" ;
10231027 bool at_least_avx = iset >= 7 ;
10241028 std::transform (proc_name.begin (), proc_name.end (), proc_name.begin (), ::tolower);
10251029 bool is_xeon = proc_name.find (" xeon" ) != string::npos;
1026- // #define PRINT_PROC_INFO
1027- #ifdef PRINT_PROC_INFO
1028- if (is_xeon || (is_intel && at_least_avx))
1029- {
1030- if (is_xeon)
1031- cout << " Xeon detected\n " ;
1032- else
1033- cout << " Some intel with at least avx\n " ;
1034-
1035- if (iset >= 8 )
1036- sort_func = RadulsSort::RadixSortMSD_AVX2<KMER_T>, cout << " using avx2 version of RADULS\n " ;
1037- else if (iset >= 7 )
1038- sort_func = RadulsSort::RadixSortMSD_AVX<KMER_T>, cout << " using avx version of RADULS\n " ;
1039- else if (iset >= 5 )
1040- sort_func = RadulsSort::RadixSortMSD_SSE41<KMER_T>, cout << " using sse4.1 version of RADULS\n " ;
1041- else if (iset >= 2 )
1042- sort_func = RadulsSort::RadixSortMSD_SSE2<KMER_T>, cout << " using sse2 version of RADULS\n " ;
1043- }
1044- else
1045- {
1046- sort_func = RadixSort::RadixSortMSD<KMER_T, SIZE>, cout << " using KMC3 radix instead of RADULS\n " ;
1047- CSmallSort<SIZE>::Adjust (384 );
1048- }
1049- #else
10501030 if (is_xeon || (is_intel && at_least_avx))
10511031 {
10521032 if (iset >= 8 )
0 commit comments