Skip to content

Commit

Permalink
added benchHash_avx512 target
Browse files Browse the repository at this point in the history
  • Loading branch information
Cyan4973 committed Aug 17, 2024
1 parent 54c14fe commit dbea33e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions tests/bench/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
benchHash
benchHash32
benchHash_avx2
benchHash_avx512
benchHash_hw

# test files
Expand Down
7 changes: 5 additions & 2 deletions tests/bench/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,14 @@ benchHash32: CXXFLAGS += -m32
benchHash_avx2: CFLAGS += -mavx2
benchHash_avx2: CXXFLAGS += -mavx2

benchHash_avx512: CFLAGS += -mavx512f
benchHash_avx512: CXXFLAGS += -mavx512f

benchHash_hw: CPPFLAGS += -DHARDWARE_SUPPORT
benchHash_hw: CFLAGS += -mavx2 -maes
benchHash_hw: CXXFLAGS += -mavx2 -mpclmul -std=c++14

benchHash benchHash32 benchHash_avx2 benchHash_nosimd benchHash_hw: $(OBJ_LIST)
benchHash benchHash32 benchHash_avx2 benchHash_avx512 benchHash_nosimd benchHash_hw: $(OBJ_LIST)
$(CXX) $(CPPFLAGS) $(CXXFLAGS) $^ $(LDFLAGS) -o $@


Expand All @@ -65,4 +68,4 @@ benchHash.o: benchHash.h


clean:
$(RM) *.o benchHash benchHash32 benchHash_avx2 benchHash_hw
$(RM) *.o benchHash benchHash32 benchHash_avx2 benchHash_avx512 benchHash_hw

0 comments on commit dbea33e

Please sign in to comment.