Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Memory Issue #65

Closed
JangidBhavnesh opened this issue Feb 3, 2024 · 1 comment
Closed

Memory Issue #65

JangidBhavnesh opened this issue Feb 3, 2024 · 1 comment

Comments

@JangidBhavnesh
Copy link
Contributor

JangidBhavnesh commented Feb 3, 2024

I am getting this error with dev branch.

The input file and geometry is attached in txt format (git doesn't support
1881954.txt
Complex54.txt
.py)

las.kernel(mo_coeff)

File "/home/jangidbhavnesh/bin/mrh/my_pyscf/mcscf/lasci.py", line 974, in kernel
self.ci, h2eff_sub, veff = _kern(mo_coeff=mo_coeff, ci0=ci0, verbose=verbose,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/jangidbhavnesh/bin/mrh/my_pyscf/mcscf/lasscf_async/lasscf_async.py", line 55, in kernel
impurity.kernel ()
File "/home/jangidbhavnesh/bin/pyscf/pyscf/mcscf/mc1step.py", line 861, in kernel
_kern(self, mo_coeff,
File "/home/jangidbhavnesh/bin/pyscf/pyscf/mcscf/mc1step.py", line 351, in kernel
e_tot, e_cas, fcivec = casscf.casci(mo, ci0, eris, log, locals())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/jangidbhavnesh/bin/mrh/my_pyscf/mcscf/lasscf_async/crunch.py", line 604, in casci
e_tot, e_cas, fcivec = casci_kernel(fcasci, mo_coeff, ci0, log,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/jangidbhavnesh/bin/mrh/my_pyscf/mcscf/lasscf_async/crunch.py", line 296, in casci_kernel
e_tot, fcivec = casci.fcisolver.kernel(h1eff, eri_cas, ncas, nelecas,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/jangidbhavnesh/bin/mrh/my_pyscf/mcscf/addons.py", line 75, in kernel
e, c = solver.kernel(h1e, h2, norb, self._get_nelec(solver, nelec), c0,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/jangidbhavnesh/bin/mrh/my_pyscf/fci/csf.py", line 546, in kernel
e, c = kernel (self, h1e, eri, norb, nelec, smult=self.smult,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/jangidbhavnesh/bin/mrh/my_pyscf/fci/csf.py", line 390, in kernel
addr, h0 = fci.pspace(h1e, eri, norb, nelec, idx_sym=idx_sym, hdiag_det=hdiag_det, hdiag_csf=hdiag_csf, npsp=max(pspace_size,nroots))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/jangidbhavnesh/bin/mrh/my_pyscf/fci/csf.py", line 523, in pspace
return pspace (self, h1e, eri, norb, nelec, self.transformer, hdiag_det=hdiag_det,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/jangidbhavnesh/bin/mrh/my_pyscf/fci/csf.py", line 291, in pspace
raise MemoryError (memstr)
MemoryError: pspace_size of 200 CSFs -> 20 determinants requires 0.46464 MB, cf -1118.8817920000001 MB remaining memory

@MatthewRHermes
Copy link
Owner

This is issue #54 again. Closing this and reopening there.

MatthewRHermes added a commit that referenced this issue Feb 5, 2024
PySCF apparently wants "remaining memory" on entry to fcisolver
kernel. CSFSolver currently wants "maximum memory" (the config
input by user) instead. Fix calling lines in LASSCF functions to
the CSFSolver behavior for now. Maybe the CSFSolver behavior needs
to change? Maybe the PySCF behavior needs to change?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants