From b653b9b4b74a716e940ac966a37f0468ed903f18 Mon Sep 17 00:00:00 2001 From: Joseph Schuchart Date: Wed, 20 Dec 2023 22:37:09 +0000 Subject: [PATCH] Re-enbale disabled unit tests --- examples/spmm/spmm.cc | 3 ++- tests/unit/CMakeLists.txt | 6 +++--- tests/unit/fibonacci.cc | 2 +- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/examples/spmm/spmm.cc b/examples/spmm/spmm.cc index b2ae2558a..ac198a969 100644 --- a/examples/spmm/spmm.cc +++ b/examples/spmm/spmm.cc @@ -92,6 +92,7 @@ namespace ttg::detail { } // namespace ttg::detail #else +using scalar_t = double; using blk_t = double; #endif template @@ -722,7 +723,7 @@ auto norms(const btas::Tensor &t) { template auto norms(const SpMatrix &A) { - using T = decltype(std::abs(std::declval())); + using T = scalar_t; T norm_2_square = 0.0; T norm_inf = 0.0; for (int i = 0; i < A.outerSize(); ++i) { diff --git a/tests/unit/CMakeLists.txt b/tests/unit/CMakeLists.txt index 6b524010f..ba0db8a49 100644 --- a/tests/unit/CMakeLists.txt +++ b/tests/unit/CMakeLists.txt @@ -2,9 +2,9 @@ include(AddTTGExecutable) # TT unit test: core TTG ops set(ut_src - #fibonacci.cc - #ranges.cc - #tt.cc + fibonacci.cc + ranges.cc + tt.cc unit_main.cpp streams.cc ) diff --git a/tests/unit/fibonacci.cc b/tests/unit/fibonacci.cc index 574661b33..37d333e07 100644 --- a/tests/unit/fibonacci.cc +++ b/tests/unit/fibonacci.cc @@ -1,4 +1,4 @@ -#include +#include #include "ttg.h"