Skip to content

Examples getting started

Juvenal Yosa edited this page Nov 20, 2026 · 3 revisions

Single points of proteins and DNA with MOZYME. Every input has three header lines: keywords, a title and a comment (may be empty). GEO_DAT reads the geometry from a PDB file next to the input. Run with mopac job.mop; the output is job.out.

To see whether the SCF ran on the GPU, run with MOPAC_GPU_DEBUG=1 mopac job.mop and look for [MOZYME GPU SCF] status=success in the output. Without that variable a GPU run writes no trace lines, except status=fallback_cpu, which means that the CPU code finished the SCF, with a correct result at CPU speed. Jobs of 100 atoms or fewer run on the CPU (see Running on the GPU).

1. Single-point energy of a protein

The smallest useful MOZYME job. With a GPU of compute capability 7.0 or newer the SCF runs on it; nothing in the input asks for it.

Copy next to the input: tests/data/mozyme_gpu_reference/1UAO_opt.pdb

PM7 MOZYME 1SCF GEO_DAT="1UAO_opt.pdb"
Chignolin, single point

Checked: runs with the CPU build of release v1.2-gpu (commit 323b6076, 2026-11-20).

2. The same job on the CPU, for comparison

NOGPU runs this job on the CPU code path of the same program. Compare FINAL HEAT OF FORMATION of the two outputs; at the default SCF criterion they agree to about 0.01 kcal/mol (the GPU rotation order varies).

Copy next to the input: tests/data/mozyme_gpu_reference/1UAO_opt.pdb

PM7 MOZYME 1SCF NOGPU GEO_DAT="1UAO_opt.pdb"
Chignolin, single point on the CPU

Checked: runs with the CPU build of release v1.2-gpu (commit 323b6076, 2026-11-20).

3. Energy and gradient

GRADIENTS prints the Cartesian gradient of every atom at the SCF geometry (on the GPU for MOZYME).

Copy next to the input: tests/data/mozyme_gpu_reference/1UAO_opt.pdb

PM7 MOZYME 1SCF GRADIENTS GEO_DAT="1UAO_opt.pdb"
Chignolin, energy and gradient

Checked: runs with the CPU build of release v1.2-gpu (commit 323b6076, 2026-11-20).

4. A tight SCF criterion

Run-to-run differences of GPU heats are of the order of the SCF criterion. When 0.1 kcal/mol matters (large proteins, energy differences), tighten it: SCFCRT=1.D-6 brought GPU and CPU heats within 5·10⁻⁵ kcal/mol in the benchmarks.

Copy next to the input: tests/data/mozyme_gpu_reference/1UAO_opt.pdb

PM7 MOZYME 1SCF GRADIENTS SCFCRT=1.D-6 THRESH=1.D-15 GEO_DAT="1UAO_opt.pdb"
Chignolin, tight SCF

Checked: runs with the CPU build of release v1.2-gpu (commit 323b6076, 2026-11-20).

5. A larger protein

Crambin (642 atoms) takes about 1.2 s on an A100 and 25 s on one CPU core.

Copy next to the input: benchmarks/publication_inputs/hydrogenated/protein_crambin_1crn_hydrogenated.pdb

PM7 MOZYME 1SCF GEO_DAT="protein_crambin_1crn_hydrogenated.pdb"
Crambin, single point

Checked: runs with the CPU build of release v1.2-gpu (commit 323b6076, 2026-11-20).

6. DNA

Nucleic acids work the same way. MOZYME derives the net charge from the Lewis structure of the hydrogenated file and prints it (COMPUTED CHARGE ON SYSTEM; +1 for this structure of the repository), so no CHARGE keyword is needed. For charged phosphates hydrogenate with SITE=(IONIZE).

Copy next to the input: benchmarks/publication_inputs/hydrogenated/dna_dodecamer_1bna_hydrogenated.pdb

PM7 MOZYME 1SCF GEO_DAT="dna_dodecamer_1bna_hydrogenated.pdb"
DNA dodecamer 1BNA, single point

Checked: runs with the CPU build of release v1.2-gpu (commit 323b6076, 2026-11-20).

7. Another semiempirical method

Replace PM7 by MNDO, AM1, PM3, RM1, PM6 or PM6-D3H4; all seven were compared on the GPU and the CPU for crambin and DNA.

Copy next to the input: tests/data/mozyme_gpu_reference/1UAO_opt.pdb

PM6-D3H4 MOZYME 1SCF GEO_DAT="1UAO_opt.pdb"
Chignolin, PM6-D3H4

Checked: runs with the CPU build of release v1.2-gpu (commit 323b6076, 2026-11-20).

8. AM1 for a quick look

Older methods are cheaper per iteration; useful for testing a structure before a PM7 run.

Copy next to the input: tests/data/mozyme_gpu_reference/1UAO_opt.pdb

AM1 MOZYME 1SCF GEO_DAT="1UAO_opt.pdb"
Chignolin, AM1

Checked: runs with the CPU build of release v1.2-gpu (commit 323b6076, 2026-11-20).

9. Water: a large cluster from a script

scripts/make_water_cluster.py writes a MOZYME input for N water molecules on a lattice (for timing, not for physically meaningful energies). 7 052 molecules (21 156 atoms) took 29 s on an A100.

python3 scripts/make_water_cluster.py 1000 --out water1000.mop
mopac water1000.mop

Checked: the script with 50 molecules, then MOPAC on the CPU.

Clone this wiki locally