Skip to content
Merged
Show file tree
Hide file tree
Changes from 15 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Prerequisites
*.d

# Compiled Object files
*.slo
*.lo
*.o
*.obj

# Precompiled Headers
*.gch
*.pch

# Compiled Dynamic libraries
*.so
*.dylib
*.dll

# Fortran module files
*.mod
*.smod

# Compiled Static libraries
*.lai
*.la
*.a
*.lib

# Executables
*.exe
*.out
*.app

**/.vscode

2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ bench: $(BENCHDIR)/main.cpp $(SRCS)
$(CXX) $(BENCHDIR)/main.cpp $(CXXFLAGS) -march=icelake-client -O3 -o benchexe

clean:
rm -f $(TESTDIR)/*.o testexe benchexe
rm -f $(TESTDIR)/*.o testexe benchexe
4 changes: 2 additions & 2 deletions src/avx512-16bit-qsort.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -686,7 +686,7 @@ replace_inf_with_nan(uint16_t *arr, int64_t arrsize, int64_t nan_count)
}

template <>
void avx512_qsort(int16_t *arr, int64_t arrsize)
inline void avx512_qsort(int16_t *arr, int64_t arrsize)
{
if (arrsize > 1) {
qsort_16bit_<zmm_vector<int16_t>, int16_t>(
Expand All @@ -695,7 +695,7 @@ void avx512_qsort(int16_t *arr, int64_t arrsize)
}

template <>
void avx512_qsort(uint16_t *arr, int64_t arrsize)
inline void avx512_qsort(uint16_t *arr, int64_t arrsize)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same. get rid of inline please.

{
if (arrsize > 1) {
qsort_16bit_<zmm_vector<uint16_t>, uint16_t>(
Expand Down
6 changes: 3 additions & 3 deletions src/avx512-32bit-qsort.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -682,7 +682,7 @@ replace_inf_with_nan(float *arr, int64_t arrsize, int64_t nan_count)
}

template <>
void avx512_qsort<int32_t>(int32_t *arr, int64_t arrsize)
inline void avx512_qsort<int32_t>(int32_t *arr, int64_t arrsize)
{
if (arrsize > 1) {
qsort_32bit_<zmm_vector<int32_t>, int32_t>(
Expand All @@ -691,7 +691,7 @@ void avx512_qsort<int32_t>(int32_t *arr, int64_t arrsize)
}

template <>
void avx512_qsort<uint32_t>(uint32_t *arr, int64_t arrsize)
inline void avx512_qsort<uint32_t>(uint32_t *arr, int64_t arrsize)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ditto

{
if (arrsize > 1) {
qsort_32bit_<zmm_vector<uint32_t>, uint32_t>(
Expand All @@ -700,7 +700,7 @@ void avx512_qsort<uint32_t>(uint32_t *arr, int64_t arrsize)
}

template <>
void avx512_qsort<float>(float *arr, int64_t arrsize)
inline void avx512_qsort<float>(float *arr, int64_t arrsize)
{
if (arrsize > 1) {
int64_t nan_count = replace_nan_with_inf(arr, arrsize);
Expand Down
Loading