Cross-Pattern Predicate Sharing for RDKit-Exact SMARTS Screening on CPUs and GPUs

Background: Screening compound libraries against 102–103 SMARTS patterns is expensive and redundant: in a 1,155-pattern union of 13 RDKit filter catalogs, 10,750 atom-predicate occurrences collapse to 447 distinct predicates (24× reduction), and 1,046 recursive-SMARTS occurrences collapse to 366 environments. Results: We present cuda smarts, a compiled CPU and GPU SMARTS screening engine that deduplicates atom predicates and recursive environments across a catalog while preserving bit-for-bit RDKit exactness. Evaluating deduplicated predicates once per molecule in GPU shared memory speeds exact kernels by 1.8–2.4× over a strong per-pair GPU matcher on an NVIDIA RTX 5090 GPU (capped near 55W) and 2.3× on a rented NVIDIA H100 (sm 90). On full ChEMBL 36 (2.85M molecules), matching wall time improves 1.80–2.20× on the RTX 5090 (11.3× over nvMolKit 0.7.0, up to 90× over a 22-process RDKit pool, and 159× on 10M ZINC20 molecules against PAINS), whereas on the H100 CPU fallback bounds wall time (0.93–0.94×). Predicate deduplication drives the gain (3.2× on GPU); scaling to 7,605 patterns reaches 2.52× wall (3.4× kernel). Across ChEMBL 36 (both GPUs), ZINC20, Ehrlich–Rarey, and 100k fuzzed SMARTS, our engines show zero false positives and zero false negatives, whereas nvMolKit 0.7.0 has 208 false negatives on ChEMBL and disagrees on 4.3% of answered fuzzed patterns. In end-to-end preparation (medchem, rd filters, scikit-fingerprints), replacing the SMARTS stage gives 6.6–29.8× cold speed-ups with a native C++ packer; GPU adds 1.04–1.31× (RTX 5090) and 1.19–1.30× (H100) over our CPU engine. Conclusions: Cross-pattern predicate sharing roughly halves exact GPU kernel time on both RTX 5090 and H100 GPUs. End to end, molecule preparation dominates, making our compiled CPU engine sufficient for everyday data preparation. Scientific Contribution: We introduce a catalog-wide SMARTS predicate and recursive-environment deduplication compiler with RDKit-exact CPU and GPU 1 backends, isolating which sharing mechanisms pay across 300–7,605 patterns. We report the first systematic differential exactness audit of GPU SMARTS matchers against RDKit and quantify where GPU acceleration stops paying end to end.

Authors

Publication Details

Journal
ChemRxiv
Published
2026-12-02
DOI
https://doi.org/10.26434/chemrxiv.15013200/v1
Primary Topic
Computational Drug Discovery Methods
Type
preprint
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
preprint

Cross-Pattern Predicate Sharing for RDKit-Exact SMARTS Screening on CPUs and GPUs

Peiye Liu
ChemRxiv
Computational Drug Discovery Methods
preprint

Cross-Pattern Predicate Sharing for RDKit-Exact SMARTS Screening on CPUs and GPUs

Peiye Liu
preprint en

Abstract

Background: Screening compound libraries against 102–103 SMARTS patterns is expensive and redundant: in a 1,155-pattern union of 13 RDKit filter catalogs, 10,750 atom-predicate occurrences collapse to 447 distinct predicates (24× reduction), and 1,046 recursive-SMARTS occurrences collapse to 366 environments. Results: We present cuda smarts, a compiled CPU and GPU SMARTS screening engine that deduplicates atom predicates and recursive environments across a catalog while preserving bit-for-bit RDKit exactness. Evaluating deduplicated predicates once per molecule in GPU shared memory speeds exact kernels by 1.8–2.4× over a strong per-pair GPU matcher on an NVIDIA RTX 5090 GPU (capped near 55W) and 2.3× on a rented NVIDIA H100 (sm 90). On full ChEMBL 36 (2.85M molecules), matching wall time improves 1.80–2.20× on the RTX 5090 (11.3× over nvMolKit 0.7.0, up to 90× over a 22-process RDKit pool, and 159× on 10M ZINC20 molecules against PAINS), whereas on the H100 CPU fallback bounds wall time (0.93–0.94×). Predicate deduplication drives the gain (3.2× on GPU); scaling to 7,605 patterns reaches 2.52× wall (3.4× kernel). Across ChEMBL 36 (both GPUs), ZINC20, Ehrlich–Rarey, and 100k fuzzed SMARTS, our engines show zero false positives and zero false negatives, whereas nvMolKit 0.7.0 has 208 false negatives on ChEMBL and disagrees on 4.3% of answered fuzzed patterns. In end-to-end preparation (medchem, rd filters, scikit-fingerprints), replacing the SMARTS stage gives 6.6–29.8× cold speed-ups with a native C++ packer; GPU adds 1.04–1.31× (RTX 5090) and 1.19–1.30× (H100) over our CPU engine. Conclusions: Cross-pattern predicate sharing roughly halves exact GPU kernel time on both RTX 5090 and H100 GPUs. End to end, molecule preparation dominates, making our compiled CPU engine sufficient for everyday data preparation. Scientific Contribution: We introduce a catalog-wide SMARTS predicate and recursive-environment deduplication compiler with RDKit-exact CPU and GPU 1 backends, isolating which sharing mechanisms pay across 300–7,605 patterns. We report the first systematic differential exactness audit of GPU SMARTS matchers against RDKit and quantify where GPU acceleration stops paying end to end.

ChemRxiv
Computational Drug Discovery Methods
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon