Preliminary support for ADVX512

This commit is contained in:
Andrea Mazzoleni 2026-04-16 10:03:07 +02:00
parent c889153cb2
commit 18aa07be36
7 changed files with 157 additions and 4 deletions

View file

@ -73,10 +73,15 @@ sdecovtest:
$(SDE) -mrm -- ./selftest
$(SDE) -nhm -- ./selftest
$(SDE) -hsw -- ./selftest
$(SDE) -hsw -- ./speedtest
$(SDE) -skx -- ./selftest
$(SDE) -icl -- ./selftest
$(SDE) -icl -- ./speedtest
$(MAKE) lcov_capture
$(MAKE) lcov_html
sde:
$(SDE) -icl -- ./speedtest
lcov_reset:
lcov --directory . -z
rm -f lcov.info

View file

@ -137,6 +137,7 @@ void speed(void)
printf("%8s", "avx2");
#ifdef CONFIG_X86_64
printf("%8s", "avx2e");
printf("%8s", "avx512");
#endif
#endif
printf("\n");
@ -191,6 +192,18 @@ void speed(void)
fflush(stdout);
}
#endif
#ifdef CONFIG_AVX512BW
if (raid_cpu_has_avx512bw()) {
printf("%8s", "");
SPEED_START {
raid_gen1_avx512bw(nd, size, v);
} SPEED_STOP
printf("%8" PRIu64, ds / dt);
fflush(stdout);
}
#endif
#endif
printf("\n");
@ -250,6 +263,18 @@ void speed(void)
fflush(stdout);
}
#endif
#ifdef CONFIG_AVX512BW
if (raid_cpu_has_avx512bw()) {
printf("%8s", "");
SPEED_START {
raid_gen2_avx512bw(nd, size, v);
} SPEED_STOP
printf("%8" PRIu64, ds / dt);
fflush(stdout);
}
#endif
#endif
printf("\n");
@ -858,6 +883,10 @@ int main(void)
printf("Including x86 SSSE3 functions\n");
if (raid_cpu_has_avx2())
printf("Including x86 AVX2 functions\n");
if (raid_cpu_has_avx512bw())
printf("Including x86 AVX512bw functions\n");
if (raid_cpu_has_avx512gfni())
printf("Including x86 AVX512gfni functions\n");
#endif
#ifdef CONFIG_X86_64
printf("Including x64 extended SSE register set\n");