From 5f5590ec82ed72ecb09e9aab11ec0da5ada26866 Mon Sep 17 00:00:00 2001 From: Tobias Ribizel Date: Tue, 30 May 2023 14:43:32 +0200 Subject: [PATCH] use temporary float matrix in AMD --- core/reorder/amd.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/core/reorder/amd.cpp b/core/reorder/amd.cpp index 0225b27cadd..fa955801c2b 100644 --- a/core/reorder/amd.cpp +++ b/core/reorder/amd.cpp @@ -122,13 +122,13 @@ std::unique_ptr Amd::generate_impl( const auto exec = this->get_executor(); const auto host_exec = exec->get_master(); const auto num_rows = system_matrix->get_size()[0]; - using complex_scalar = matrix::Dense>; - using real_scalar = matrix::Dense; - using complex_identity = matrix::Identity>; - using real_identity = matrix::Identity; - using complex_mtx = matrix::Csr, IndexType>; - using real_mtx = matrix::Csr; - using sparsity_mtx = matrix::SparsityCsr; + using complex_scalar = matrix::Dense>; + using real_scalar = matrix::Dense; + using complex_identity = matrix::Identity>; + using real_identity = matrix::Identity; + using complex_mtx = matrix::Csr, IndexType>; + using real_mtx = matrix::Csr; + using sparsity_mtx = matrix::SparsityCsr; std::unique_ptr converted; // extract row pointers and column indices IndexType* d_row_ptrs{}; @@ -143,7 +143,7 @@ std::unique_ptr Amd::generate_impl( } if (!parameters_.skip_symmetrize) { auto scalar = - initialize({one>()}, exec); + initialize({one>()}, exec); auto id = complex_identity::create(exec, conv_csr->get_size()[0]); // compute A^T + A conv_csr->transpose()->apply(scalar, id, scalar, conv_csr); @@ -159,7 +159,7 @@ std::unique_ptr Amd::generate_impl( conv_csr->sort_by_column_index(); } if (!parameters_.skip_symmetrize) { - auto scalar = initialize({one()}, exec); + auto scalar = initialize({one()}, exec); auto id = real_identity::create(exec, conv_csr->get_size()[0]); // compute A^T + A conv_csr->transpose()->apply(scalar, id, scalar, conv_csr);