Skip to content

Commit 369a41b

Browse files
committed
Improve hyh benchmark
1 parent 457efe3 commit 369a41b

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

benchmarks/hyh.cpp

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
#include <guanaqo/blas/blas-interface.hpp>
33
#include <hyhound-version.h>
44

5+
#include <guanaqo/demangled-typename.hpp>
56
#include <guanaqo/eigen/view.hpp>
67
#include <guanaqo/preprocessor.h>
78
#include <guanaqo/print.hpp>
@@ -238,6 +239,8 @@ int main(int argc, char **argv) {
238239
#endif
239240
benchmark::AddCustomContext("hyhound_build_time", hyhound_build_time);
240241
benchmark::AddCustomContext("hyhound_commit_hash", hyhound_commit_hash);
242+
benchmark::AddCustomContext("real_type",
243+
guanaqo::demangled_typename(typeid(real_t)));
241244
#if defined(__AVX512F__)
242245
benchmark::AddCustomContext("arch", "avx512f");
243246
#elif defined(__AVX2__)
@@ -255,21 +258,28 @@ using namespace hyhound;
255258
// clang-format off
256259
BM_BLK_REGISTER_F(CholeskyFixture, full_factorize)->Name("full_factorize");
257260
BENCHMARK_BLOCKED(hyh_update, update_cholesky, Downdate, 1, 32);
261+
#if !__AVX512F__
258262
BENCHMARK_BLOCKED(hyh_update, update_cholesky, Downdate, 4, 4);
263+
#endif
259264
BENCHMARK_BLOCKED(hyh_update, update_cholesky, Downdate, 4, 8);
265+
#if !__AVX512F__
260266
BENCHMARK_BLOCKED(hyh_update, update_cholesky, Downdate, 4, 12);
267+
#endif
261268
BENCHMARK_BLOCKED(hyh_update, update_cholesky, Downdate, 4, 16);
262269
BENCHMARK_BLOCKED(hyh_update, update_cholesky, Downdate, 4, 24);
263270
BENCHMARK_BLOCKED(hyh_update, update_cholesky, Downdate, 4, 32);
264271

265272
BENCHMARK_BLOCKED(hyh_update, update_cholesky, Downdate, 8, 8);
273+
#if !__AVX512F__
266274
BENCHMARK_BLOCKED(hyh_update, update_cholesky, Downdate, 8, 12);
275+
#endif
267276
BENCHMARK_BLOCKED(hyh_update, update_cholesky, Downdate, 8, 16);
268277
BENCHMARK_BLOCKED(hyh_update, update_cholesky, Downdate, 8, 24);
269278
BENCHMARK_BLOCKED(hyh_update, update_cholesky, Downdate, 8, 32);
270279
#if __AVX512F__
271280
BENCHMARK_BLOCKED(hyh_update, update_cholesky, Downdate, 16, 8);
272281
BENCHMARK_BLOCKED(hyh_update, update_cholesky, Downdate, 16, 16);
282+
BENCHMARK_BLOCKED(hyh_update, update_cholesky, Downdate, 16, 32);
273283
#endif
274284
// clang-format on
275285

0 commit comments

Comments
 (0)