File tree Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change 1
1
CXX ?= g++-12
2
2
CFLAGS = -I../src -std=c++17 -O3
3
- EXE = argsort kvsort qsortfp16 qsort16 qsort32 qsort64
3
+ EXE = qsort32avx2 argsort kvsort qsortfp16 qsort16 qsort32 qsort64
4
4
5
5
default : all
6
6
all : $(EXE )
@@ -14,6 +14,9 @@ qsort16: avx512-16bit-qsort.cpp
14
14
qsort32 : avx512-32bit-qsort.cpp
15
15
$(CXX ) -o qsort32 -march=skylake-avx512 $(CFLAGS ) avx512-32bit-qsort.cpp
16
16
17
+ qsort32avx2 : avx2-32bit-qsort.cpp
18
+ $(CXX ) -o qsort32avx2 -march=haswell $(CFLAGS ) avx2-32bit-qsort.cpp
19
+
17
20
qsort64 : avx512-64bit-qsort.cpp
18
21
$(CXX ) -o qsort64 -march=skylake-avx512 $(CFLAGS ) avx512-64bit-qsort.cpp
19
22
Original file line number Diff line number Diff line change
1
+ #include " avx2-32bit-qsort.hpp"
2
+
3
+ int main () {
4
+ const int size = 1000 ;
5
+ float arr[size];
6
+ avx2_qsort (arr, size);
7
+ avx2_qselect (arr, 10 , size);
8
+ avx2_partial_qsort (arr, 10 , size);
9
+ return 0 ;
10
+ }
You can’t perform that action at this time.
0 commit comments