pytc.solver.bug_core.run_dense¶
- pytc.solver.bug_core.run_dense(name, fn, *args, dense_core='device')[source]¶
fn(*args)for a dense core step, on the device or on the host CPU as chosen.Dense core steps (eigh of the n x n Galerkin core and the RPA Cholesky-Casida solve) need several n^2 arrays plus solver workspace, which can exceed the device memory. The caller picks where they run.
"device"stops with aMemoryErrorwhen the device runs out of memory instead of moving the step elsewhere.- Parameters:
name (str)
dense_core (Literal['device', 'host'])