Skip to content

Troubleshooting

OpenQP Cannot Find Runtime Files

For normal installs, run:

pip install .

from the repository root, or install the package from PyPI. The installed package should locate its native library and data files without OPENQP_ROOT. Only set OPENQP_ROOT for custom layouts where Python is separated from the OpenQP runtime tree.

BLAS/LAPACK Integer ABI

OpenQP is ILP64-only: one 8-byte BLAS/LAPACK integer model on every platform. LP64 support was removed, and -DLINALG_LIB_INT64=OFF now fails the configure deliberately, so a stale CMake cache or an old script cannot produce a mixed-width build. Clear the cache and drop the flag.

Use ILP64 OpenBLAS or MKL on Linux, MKL ILP64 on Windows, and Accelerate's $NEWLAPACK$ILP64 interface on macOS 13.3 or newer.

SCF Does Not Converge

Try, in increasing order of intervention:

[scf]
diis_type=vdiis
[scf]
converger_type=soscf
[scf]
converger_type=trah

For difficult cases, use alternative_scf=trah, escalation=soscf,trah, MOM, or pFON as appropriate.

Too Many Threads

Use either:

openqp input.inp --omp 16

or:

[input]
omp_threads=16

This controls OpenMP threads per process or MPI rank. MPI rank count remains controlled by the launcher, for example mpirun -np 4.

PCM Input Runs as Vacuum

PCM-enabled runs should fail clearly if the ddX runtime path is unavailable. Use:

[pcm]
enabled=true
backend=ddx
mode=reference_scf
model=ddpcm

and keep the run type at energy for the current production PCM path.

MP2 Stops at the Build Guard

Standalone MP2 uses direct per-occupied-MO-pair Coulomb builds. Large systems can abort before the correlation step if the number of pair builds exceeds the OQP_MP2_MAX_JBUILDS guard. Reduce the basis/problem size first; raise the guard only when you have checked the expected runtime and memory cost.

Documentation Looks Stale

The keyword reference should be checked against the OpenQP source schema:

If the code changes a default, allowed value, or runtime scope, update the matching keyword and workflow page in the documentation repository before the next release.