Skip to content

Commit

Permalink
Re-enbale disabled unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
devreal committed Dec 20, 2023
1 parent e7bba1b commit b653b9b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion examples/spmm/spmm.cc
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ namespace ttg::detail {
} // namespace ttg::detail

#else
using scalar_t = double;
using blk_t = double;
#endif
template <typename T = blk_t>
Expand Down Expand Up @@ -722,7 +723,7 @@ auto norms(const btas::Tensor<T_, Range_, Store_> &t) {

template <typename Blk>
auto norms(const SpMatrix<Blk> &A) {
using T = decltype(std::abs(std::declval<typename Blk::value_type>()));
using T = scalar_t;
T norm_2_square = 0.0;
T norm_inf = 0.0;
for (int i = 0; i < A.outerSize(); ++i) {
Expand Down
6 changes: 3 additions & 3 deletions tests/unit/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/fibonacci.cc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include <catch2/catch.hpp>
#include <catch2/catch_all.hpp>

#include "ttg.h"

Expand Down

0 comments on commit b653b9b

Please sign in to comment.