mirror of
https://github.com/OPM/opm-simulators.git
synced 2026-10-13 17:32:03 -05:00
Update GPU tests
This commit is contained in:
1 parent
cb1ee68967
commit
2d270d5613
2 files changed
+2
-2
No files matched your search
@@ -116,7 +116,7 @@ testCusparseSolver(const boost::property_tree::ptree& prm, Matrix<bz>& matrix, V
|
|||||||
bridge = std::make_unique<Opm::BdaBridge<Matrix<bz>, Vector<bz>, bz> >(accelerator_mode, fpga_bitstream, linear_solver_verbosity, maxit, tolerance, platformID, deviceID, opencl_ilu_reorder, linsolver);
|
bridge = std::make_unique<Opm::BdaBridge<Matrix<bz>, Vector<bz>, 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
|
auto mat2 = matrix; // deep copy to make sure nnz values are in contiguous memory
|
||||||
// matrix created by readMatrixMarket() did not have 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);
|
bridge->get_result(x);
|
||||||
|
|
||||||
return x;
|
return x;
|
||||||
|
|||||||
@@ -118,7 +118,7 @@ testOpenclSolver(const boost::property_tree::ptree& prm, Matrix<bz>& matrix, Vec
|
|||||||
}
|
}
|
||||||
auto mat2 = matrix; // deep copy to make sure nnz values are in contiguous memory
|
auto mat2 = matrix; // deep copy to make sure nnz values are in contiguous memory
|
||||||
// matrix created by readMatrixMarket() did not have 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);
|
bridge->get_result(x);
|
||||||
|
|
||||||
return x;
|
return x;
|
||||||
|
|||||||
Reference in new issue
Block a user