From ae90399dbb18a4869d1d67ce2565e5d6dcdd4488 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Klinkovsk=C3=BD?= <klinkjak@fjfi.cvut.cz> Date: Sat, 19 Mar 2016 14:45:46 +0100 Subject: [PATCH] Added benchmark for tnlChunkedEllpackMatrix --- tests/benchmarks/tnl-cuda-benchmarks.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/tests/benchmarks/tnl-cuda-benchmarks.h b/tests/benchmarks/tnl-cuda-benchmarks.h index d46626f6ef..7d5f562c87 100644 --- a/tests/benchmarks/tnl-cuda-benchmarks.h +++ b/tests/benchmarks/tnl-cuda-benchmarks.h @@ -19,9 +19,10 @@ #define TNLCUDBENCHMARKS_H_ #include <core/tnlList.h> -#include <matrices/tnlSlicedEllpackMatrix.h> -#include <matrices/tnlEllpackMatrix.h> #include <matrices/tnlCSRMatrix.h> +#include <matrices/tnlEllpackMatrix.h> +#include <matrices/tnlSlicedEllpackMatrix.h> +#include <matrices/tnlChunkedEllpackMatrix.h> #include "array-operations.h" #include "vector-operations.h" @@ -244,9 +245,11 @@ int main( int argc, char* argv[] ) {"elements per row", elementsPerRow}, } )); + // TODO: benchmark all formats from tnl-benchmark-spmv (different parameters of the base formats) + benchmarkSpMV< Real, tnlCSRMatrix >( benchmark, loops, size, elementsPerRow ); benchmarkSpMV< Real, tnlEllpackMatrix >( benchmark, loops, size, elementsPerRow ); benchmarkSpMV< Real, SlicedEllpackMatrix >( benchmark, loops, size, elementsPerRow ); - benchmarkSpMV< Real, tnlCSRMatrix >( benchmark, loops, size, elementsPerRow ); + benchmarkSpMV< Real, tnlChunkedEllpackMatrix >( benchmark, loops, size, elementsPerRow ); if( ! benchmark.save( logFile ) ) -- GitLab