Repository navigation
Barranquilla MOPAC v1.0-gpu
First stable release of Barranquilla MOPAC: MOPAC with its MOZYME method and the conventional SCF running on an NVIDIA GPU. Inputs do not change; a capable GPU is used automatically (NOGPU or MOPAC_NOGPU=1 gives the original CPU program).
What runs on the GPU
MOZYME (proteins, DNA/RNA, large complexes)
- Resident SCF: localized orbitals, density and Fock matrix stay on the device for the whole SCF and between geometry steps.
- One-electron matrix, gradient (d orbitals included), PM6/PM7 dispersion and hydrogen-bond corrections, COSMO.
- MOZYME with translation vectors (
Tv) for molecular crystals.
Conventional SCF (solids with Tv, molecules of 300+ orbitals)
- One-electron matrix, Fock matrix, pseudo-diagonalization between full diagonalizations, gradient; RHF and UHF; COSMO.
FORCE(Γ-point vibrations),DRC(NVE/NVT), Fermi smearing (SMEAR=kT).- Analytical C.I. gradients through one Z-vector solve (chignolin doublet: DERIV 873 s → 0.6 s).
New in this fork
- Molecular dynamics at a temperature:
TEMPERATURE=,BUSSI=(stochastic velocity rescaling),SEED=. - Input chemistry check for PDB-derived inputs.
SMEAR,SWIG,HB-SMOOTH,TRUST,MM_CHARGES=(QM/MM with OpenMM).- Fixes found along the way: D3 dispersion in solids summed over all images (it used the nearest image only), D3 gradient units, per-image dispersion gradients, the hydrogen-bond gradient of weak bonds, the SCF of solids (20 eV shift + damped start; rutile no longer lands in a wrong state).
Performance (one A100)
| Job | Atoms | CPU | GPU |
|---|---|---|---|
| Crambin, MOZYME single point | 642 | 28.3 s (1 core) | 1.1 s |
| Adenylate kinase, MOZYME single point | 6 689 | 449 s (1 core) | 7.6 s |
| Crambin, 100 optimization cycles | 642 | 1 042 s | 17.7 s |
α-quartz, 1SCF GRADIENTS |
576 | 240 s (4 vCPU) ¹ | 5.3 s |
Silicon, 1SCF GRADIENTS |
512 | 809 s (4 vCPU) ¹ | 8.4 s |
Rutile TiO₂, 1SCF GRADIENTS |
576 | 1 224 s (4 vCPU) ¹ | 5.5 s |
Diamond, FORCE |
64 | 682 s | 87 s |
¹ measured with the earlier SCF of solids (more iterations); see the README.
Accuracy
- MOZYME heats within 0.05 kcal/mol of the CPU (typically < 0.01).
- Conventional SCF: device Fock matrix within 3·10⁻⁹ eV, gradients within 9·10⁻⁷ kcal/mol/Å of the CPU loops; diamond frequencies within 0.07 cm⁻¹.
- The MOPAC test suite passes (132/132) with the GPU build.
Known limits
- MOZYME in dense covalent solids (quartz, silicon) falls back to the CPU: use the conventional SCF there.
- Some solids have several RHF solutions (Li, graphene); PM7 aluminium does not converge.
- The pseudo-diagonalization can stall in very hard SCFs (
MOPAC_PDIAG=0turns it off). - GPU runs are not bit-reproducible.
Getting started
- Build:
cmake -S . -B build -G Ninja -DGPU=ON -DCUDA_ARCHS=native -DCMAKE_BUILD_TYPE=Release(CUDA 12, compute capability ≥ 7.0; FP64 data-centre GPUs are much faster). - Colab notebooks (no local GPU needed):
colab/mozyme_md_colab.ipynb(proteins, dynamics),colab/materials_gpu_a100_colab.ipynb(solids). - Full details:
README.md,docs/GPU_GUIDE.md,docs/MOZYME_GPU_USER_GUIDE.md.
Based on MOPAC (Apache License 2.0); please cite MOPAC as described in CITATION.cff.
🤖 Generated with Claude Code