Adds gen3/z support for AVX2.

This commit is contained in:
Andrea Mazzoleni 2014-09-15 22:31:25 +02:00
parent 8e97b7a248
commit 0e3901ca3e
7 changed files with 270 additions and 0 deletions

View file

@ -297,9 +297,13 @@ void speed(int period)
fflush(stdout);
}
#ifdef CONFIG_X86_64
printf("%8s", "");
#endif
printf("%8s", "");
#ifdef CONFIG_X86_64
printf("%8s", "");
#endif
if (raid_cpu_has_avx2()) {
SPEED_START {
@ -355,7 +359,9 @@ void speed(int period)
}
printf("%8s", "");
#ifdef CONFIG_X86_64
printf("%8s", "");
#endif
if (raid_cpu_has_avx2()) {
SPEED_START {
@ -407,6 +413,23 @@ void speed(int period)
fflush(stdout);
#endif
}
printf("%8s", "");
#ifdef CONFIG_X86_64
printf("%8s", "");
#endif
printf("%8s", "");
#ifdef CONFIG_X86_64
if (raid_cpu_has_avx2()) {
SPEED_START {
raid_genz_avx2ext(nd, size, v);
} SPEED_STOP
printf("%8"PRIu64, ds / dt);
fflush(stdout);
}
#endif
#endif
printf("\n");
@ -453,6 +476,23 @@ void speed(int period)
fflush(stdout);
#endif
}
printf("%8s", "");
#ifdef CONFIG_X86_64
printf("%8s", "");
#endif
printf("%8s", "");
#ifdef CONFIG_X86_64
if (raid_cpu_has_avx2()) {
SPEED_START {
raid_gen3_avx2ext(nd, size, v);
} SPEED_STOP
printf("%8"PRIu64, ds / dt);
fflush(stdout);
}
#endif
#endif
printf("\n");