Skip to content
Snippets Groups Projects

Add precompiled assembly

Merged Mattia Mancini requested to merge add_precompiled_assemply into main
All threads resolved!
Files
11
@@ -49,7 +49,27 @@ BENCHMARK_F(InitializeInput, MatrixMultiplicationAOAvx)
}
}
#ifdef AVX_AVAILABLE
#if defined(__AVX__)
// Using direct avx implementation
BENCHMARK_F(InitializeInput, MatrixMultiplicationAvx)
(benchmark::State& state) {
for (auto _ : state) {
matrixMultiplyAVX(A, B, C);
}
}
#endif
#if defined(__AVX__) && defined(__FMA__)
// Using direct avx+fma implementation
BENCHMARK_F(InitializeInput, MatrixMultiplicationAvxFma)
(benchmark::State& state) {
for (auto _ : state) {
matrixMultiplyAVXFMA(A, B, C);
}
}
#endif
#if defined(__AVX2__)
// Using direct avx2 implementation
BENCHMARK_F(InitializeInput, MatrixMultiplicationAvx2)
(benchmark::State& state) {
Loading