From 2d270d5613f1f7292d853440d458c68566000bbf Mon Sep 17 00:00:00 2001 From: Tong Dong Qiu Date: Fri, 22 Apr 2022 10:16:58 +0200 Subject: [PATCH] Update GPU tests --- tests/test_cusparseSolver.cpp | 2 +- tests/test_openclSolver.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_cusparseSolver.cpp b/tests/test_cusparseSolver.cpp index 6c533134e..132989cd2 100644 --- a/tests/test_cusparseSolver.cpp +++ b/tests/test_cusparseSolver.cpp @@ -116,7 +116,7 @@ testCusparseSolver(const boost::property_tree::ptree& prm, Matrix& matrix, V bridge = std::make_unique, Vector, bz> >(accelerator_mode, fpga_bitstream, linear_solver_verbosity, maxit, tolerance, platformID, deviceID, opencl_ilu_reorder, linsolver); auto mat2 = matrix; // deep copy to make sure nnz values are in contiguous memory // matrix created by readMatrixMarket() did not have contiguous memory - bridge->solve_system(&mat2, rhs, *wellContribs, result); + bridge->solve_system(&mat2, &mat2, /*numJacobiBlocks=*/0, rhs, *wellContribs, result); bridge->get_result(x); return x; diff --git a/tests/test_openclSolver.cpp b/tests/test_openclSolver.cpp index edfa6b3ae..7705d2ec8 100644 --- a/tests/test_openclSolver.cpp +++ b/tests/test_openclSolver.cpp @@ -118,7 +118,7 @@ testOpenclSolver(const boost::property_tree::ptree& prm, Matrix& matrix, Vec } auto mat2 = matrix; // deep copy to make sure nnz values are in contiguous memory // matrix created by readMatrixMarket() did not have contiguous memory - bridge->solve_system(&mat2, &mat2, 0, rhs, *wellContribs, result); + bridge->solve_system(&mat2, &mat2, /*numJacobiBlocks=*/0, rhs, *wellContribs, result); bridge->get_result(x); return x;