Skip to content

Commit

Permalink
lib/raid6/test/Makefile: Add avx512 gen_syndrome and recovery functions
Browse files Browse the repository at this point in the history
Adding avx512 gen_syndrome and recovery functions so as to allow code to
be compiled and tested successfully in userspace.

This patch is tested in userspace and improvement in performace is
observed.

Cc: H. Peter Anvin <[email protected]>
Cc: Jim Kukunas <[email protected]>
Cc: Fenghua Yu <[email protected]>
Signed-off-by: Megha Dey <[email protected]>
Signed-off-by: Gayatri Kammela <[email protected]>
Reviewed-by: Fenghua Yu <[email protected]>
Signed-off-by: Shaohua Li <[email protected]>
  • Loading branch information
gkammela authored and shligit committed Sep 21, 2016
1 parent 13c520b commit 161db5d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/raid6/test/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,13 @@ ifeq ($(ARCH),arm64)
endif

ifeq ($(IS_X86),yes)
OBJS += mmx.o sse1.o sse2.o avx2.o recov_ssse3.o recov_avx2.o
OBJS += mmx.o sse1.o sse2.o avx2.o recov_ssse3.o recov_avx2.o avx512.o recov_avx512.o
CFLAGS += $(shell echo "vpbroadcastb %xmm0, %ymm1" | \
gcc -c -x assembler - >&/dev/null && \
rm ./-.o && echo -DCONFIG_AS_AVX2=1)
CFLAGS += $(shell echo "vpmovm2b %k1, %zmm5" | \
gcc -c -x assembler - >&/dev/null && \
rm ./-.o && echo -DCONFIG_AS_AVX512=1)
else ifeq ($(HAS_NEON),yes)
OBJS += neon.o neon1.o neon2.o neon4.o neon8.o
CFLAGS += -DCONFIG_KERNEL_MODE_NEON=1
Expand Down

0 comments on commit 161db5d

Please sign in to comment.