Skip to content

Commit

Permalink
modified test
Browse files Browse the repository at this point in the history
  • Loading branch information
qinatan committed Sep 19, 2023
1 parent 0de6643 commit 4ee6f07
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/unit/solver/test_cuda_lu_decomposition.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<double, SparseMatrixPolicy>(A, cpu_LU.first, cpu_LU.second);
// check_results<double, SparseMatrixPolicy>(
// 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<double, SparseMatrixPolicy>(A, cpu_LU.first, cpu_LU.second);
check_results<double, SparseMatrixPolicy>(
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);
Expand Down

0 comments on commit 4ee6f07

Please sign in to comment.