Preliminary AVX2 support.

This commit is contained in:
Andrea Mazzoleni 2014-09-14 18:03:40 +02:00
parent b32e3cdc03
commit 957db46f5b
7 changed files with 154 additions and 11 deletions

View file

@ -259,6 +259,10 @@ void speed(int period)
printf("%8s", "ssse3");
#ifdef CONFIG_X86_64
printf("%8s", "ssse3e");
#endif
printf("%8s", "avx2");
#ifdef CONFIG_X86_64
printf("%8s", "avx2e");
#endif
#endif
printf("\n");
@ -293,6 +297,19 @@ void speed(int period)
printf("%8"PRIu64, ds / dt);
fflush(stdout);
}
printf("%8s", "");
printf("%8s", "");
printf("%8s", "");
if (raid_cpu_has_avx2()) {
SPEED_START {
raid_gen1_avx2(nd, size, v);
} SPEED_STOP
printf("%8"PRIu64, ds / dt);
fflush(stdout);
}
#endif
printf("\n");
@ -333,8 +350,22 @@ void speed(int period)
printf("%8"PRIu64, ds / dt);
fflush(stdout);
#else
printf("%8s", "");
#endif
}
printf("%8s", "");
printf("%8s", "");
if (raid_cpu_has_avx2()) {
SPEED_START {
raid_gen2_avx2(nd, size, v);
} SPEED_STOP
printf("%8"PRIu64, ds / dt);
fflush(stdout);
}
#endif
printf("\n");