Skip to content

Commit

Permalink
global Makefile targets to test all build options
Browse files Browse the repository at this point in the history
AVX2/AVX512 implies BMI2
  • Loading branch information
WojciechMula committed Dec 10, 2016
1 parent 0d11e4c commit fac5a7e
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 2 deletions.
9 changes: 9 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
all: build_all verify_all

build_all:
$(MAKE) -C encode $@
$(MAKE) -C decode $@

verify_all:
$(MAKE) -C encode $@
$(MAKE) -C decode $@
11 changes: 10 additions & 1 deletion decode/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ ALL=verify speed check
ALL_AVX2=verify_avx2 speed_avx2 check_avx2
ALL_AVX512=verify_avx512 check_avx512 speed_avx512
ALL_AVX512BW=verify_avx512bw check_avx512bw
ALL_TARGETS=$(ALL) $(ALL_AVX2) $(ALL_AVX512) $(ALL_AVX512BW)

all: $(ALL)

Expand Down Expand Up @@ -87,5 +88,13 @@ check_avx512: $(CHECK_DEPS)
check_avx512bw: $(CHECK_DEPS)
$(CXX) $(FLAGS_AVX512BW) check.cpp -o $@

build_all: $(ALL_TARGETS)
verify_all: verify verify_avx2 verify_avx512 verify_avx512bw
# only Intel targets
sde -cnl -- ./verify
sde -cnl -- ./verify_avx2
sde -cnl -- ./verify_avx512
sde -cnl -- ./verify_avx512bw

clean:
rm -f $(ALL) $(ALL_AVX2) $(ALL_AVX512) $(ALL_AVX512BW)
rm -f $(ALL_TARGETS)
10 changes: 9 additions & 1 deletion encode/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ ALL_AVX2=verify_avx2 speed_avx2 check_avx2
ALL_AVX512=verify_avx512 check_avx512 speed_avx512
ALL_AVX512BW=check_avx512bw
ALL_XOP=verify_xop speed_xop check_xop
ALL_TARGETS=$(ALL) $(ALL_AVX2) $(ALL_AVX512) $(ALL_AVX512BW) $(ALL_XOP)

all: $(ALL)

Expand Down Expand Up @@ -103,6 +104,13 @@ check_avx512bw: $(CHECK_DEPS)
check_xop: $(CHECK_DEPS) *.xop.cpp
$(CXX) $(FLAGS_XOP) check.cpp -o $@

build_all: $(ALL_TARGETS)
verify_all: verify verify_avx2 verify_avx512
# only Intel targets
sde -cnl -- ./verify
sde -cnl -- ./verify_avx2
sde -cnl -- ./verify_avx512

clean:
rm -f $(ALL) $(ALL_AVX2) $(ALL_AVX512) $(ALL_AVX512BW) $(ALL_XOP)
rm -f $(ALL_TARGETS)

0 comments on commit fac5a7e

Please sign in to comment.