Repository navigation
Examples running checking and benchmarking
Tests, diagnostics and the benchmark suite.
Runs crambin on the CPU and on the GPU and compares heats, gradients, the CPU fallback and NOGPU; it must end with all checks passed.
cd tests
python3 check_mozyme_gpu_tolerance.py ../build/mopac \
../benchmarks/publication_inputs/mop/protein_crambin_1crn.mop \
../benchmarks/publication_inputs/mop/protein_crambin_1crn_opt.mop \
--handback ../benchmarks/publication_inputs/mop/protein_crambin_1crn_denout.mopCompares the device one-electron matrix, Fock matrix and gradient with the CPU loops for the repository cells.
python3 tests/check_materials_gpu.py build/mopac --medium quartz,silicon,rutileTwenty checks of the QM–MM PME against a direct Ewald sum (Madelung constant, potentials, forces); no MOPAC needed, --gpu also tests the CuPy grid.
python3 tests/check_qmmm_pme_ewald.py --gpuChecked: without --gpu, all 11 checks passed on the main branch after commit ef0e500d, which fixed the test itself; in release v1.2-gpu the test stops with an AttributeError before its third check.
TIMES (standard MOPAC) prints the time of each stage; MOPAC_GPU_PROFILE=1 adds the device timings.
Copy next to the input: tests/data/mozyme_gpu_reference/1UAO_opt.pdb
PM7 MOZYME 1SCF TIMES GEO_DAT="1UAO_opt.pdb"
Chignolin, stage times
MOPAC_GPU_PROFILE=1 mopac job.mopChecked: runs with the CPU build of release v1.2-gpu (commit 323b6076, 2026-11-20).
MOPAC_GPU_DEBUG=1 prints the detected GPUs, the device chosen and the MOZYME GPU settings in the output.
MOPAC_GPU_DEBUG=1 mopac job.mop
nvidia-smi # memory in use while it runsEvery benchmark of the README tables. --quick runs one small case per experiment (a test of the pipeline); --exp picks experiments.
python3 scripts/paper/paper_bench.py --mopac build/mopac --libmopac build/libmopac.so --out results --quick
python3 scripts/paper/paper_bench.py --mopac build/mopac --out results --exp mozyme_sp,solids
python3 scripts/paper/paper_figures.py resultsBarranquilla MOPAC is an independent derivative of MOPAC (Apache License 2.0), not affiliated with or endorsed by MolSSI or Virginia Tech. Repository · Releases
Examples