MCPcopy Create free account
hub / github.com/OpenSees/OpenSees / setup_cupy_cg

Function setup_cupy_cg

EXAMPLES/SolverBenchmark/benchmark_python_sparse.py:183–186  ·  view source on GitHub ↗

Setup CuPy CG solver.

()

Source from the content-addressed store, hash-verified

181
182
183def setup_cupy_cg() -> None:
184 """Setup CuPy CG solver."""
185 solver = CuPyCGSolver(rtol=1.0e-7, atol=1.0e-12, maxiter=None)
186 ops.system("PythonSparse", {"solver": solver, "scheme": "CSR"})
187
188
189# -----------------------------------------------------------------------------

Callers

nothing calls this directly

Calls 1

CuPyCGSolverClass · 0.85

Tested by

no test coverage detected