From 4ee6f0757dcb2b1f2bbbd6401aa5ec3bb08efc41 Mon Sep 17 00:00:00 2001 From: Qina Tan Date: Tue, 19 Sep 2023 09:05:20 -0600 Subject: [PATCH] modified test --- test/unit/solver/test_cuda_lu_decomposition.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/test/unit/solver/test_cuda_lu_decomposition.cpp b/test/unit/solver/test_cuda_lu_decomposition.cpp index d9761e1d6..4c0ea5116 100644 --- a/test/unit/solver/test_cuda_lu_decomposition.cpp +++ b/test/unit/solver/test_cuda_lu_decomposition.cpp @@ -68,11 +68,11 @@ void testRandomMatrix(size_t n_grids) for (std::size_t i_block = 0; i_block < n_grids; ++i_block) A[i_block][i][j] = get_double(); -// micm::LuDecomposition cpu_lud(A); -// auto cpu_LU = micm::LuDecomposition::GetLUMatrices(A, 1.0e-30); -// cpu_lud.Decompose(A, cpu_LU.first, cpu_LU.second); -// check_results( -// A, cpu_LU.first, cpu_LU.second, [&](const double a, const double b) -> void { EXPECT_NEAR(a, b, 1.0e-5); }); +micm::LuDecomposition cpu_lud(A); +auto cpu_LU = micm::LuDecomposition::GetLUMatrices(A, 1.0e-30); +cpu_lud.Decompose(A, cpu_LU.first, cpu_LU.second); +check_results( + A, cpu_LU.first, cpu_LU.second, [&](const double a, const double b) -> void { EXPECT_NEAR(a, b, 1.0e-5); }); micm::CUDALuDecomposition gpu_lud(A); auto gpu_LU = micm::CUDALuDecomposition::GetLUMatrices(A, 1.0e-30);