Skip to content

SimMS v1.1.0 (simms-gpu): add CudaMyopicMCES & MolecularGraphs - #13

Merged
tornikeo merged 1 commit into
mainfrom
feat/cuda-myopic-mces
Dec 3, 2026
Merged

tornikeo merged 1 commit into
mainfrom
feat/cuda-myopic-mces

Conversation

@tornikeo

@tornikeo tornikeo commented Dec 3, 2026

Copy link
Copy Markdown
Collaborator

Summary

Adds exact thresholded and unrestricted Myopic MCES molecular distance scoring (CudaMyopicMCES + cached MolecularGraphs) for simms-gpu 1.1.0, keeping the distribution a 100% pure-Python py3-none-any wheel with zero new required dependencies (numba-cuda, rdkit, and in-process scipy.optimize.milp HiGHS).

Highlights

  • 3-stage exact pipeline: GPU filter1/filter2 screening → GPU bounded bitmask graph search (max_frames, max_gpu_atoms) → automatic exact in-process SciPy HiGHS (scipy.optimize.milp) fallback before returning or sparse filtering.
  • MolecularGraphs container: accepts Spectrum sequences, SpectraCollection, one-shot MGF generators, SMILES lists, RDKit Mol lists, or cached MolecularGraphs, deduplicating repeated compounds automatically.
  • GPU-side sparse filtering: sparse_matrix(..., max_distance=..., exact_only=...) compacts hits on-device before host transfer.
  • Exact parity: 2,240 / 2,240 exact matches vs upstream myopic-mces 2.3.0 (both threshold=10 and unrestricted, max diff 1.66e-12).
  • RTX 4060 benchmark: 17.9 ms on 1,000 mixed pairs (92.2× vs 8-core upstream HiGHS, 690× vs 8-core CBC); 444 ms on 120 filter2 survivors (4.24× vs 8-core HiGHS, 24.9× vs 8-core CBC), with honest 8-core Numba CPU control documented in README.md and benchmarks/myopic_mces_rtx4060.json.

Verification

  • CUDA simulator CI (-m github_ci): 345/345 passed
  • RTX 4060 MCES suite: 25/25 passed
  • Strict flake8 and twine check --strict: clean

@tornikeo
tornikeo merged commit b16ae91 into main Dec 3, 2026
8 checks passed
@tornikeo
tornikeo deleted the feat/cuda-myopic-mces branch December 3, 2026 07:13
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

Successfully merging this pull request may close these issues.

1 participant