GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — SMSD Pro 8.0.3 · asad/SMSD@b206155

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • .github/workflows
    • python-publish.yml
    • release.yml
  • CHANGELOG.md
  • CITATION.cff
  • Dockerfile.cuda
  • Dockerfile
  • README.md
  • benchmarks
    • README.md
    • benchmark_substructure_java.java
    • search_api_validation.py
  • cpp
    • CMakeLists.txt
    • README.md
    • bindings/pybind11
      • smsd_bindings.cpp
    • cuda
      • batch_screen.cu
    • include/smsd
      • batch.hpp
      • common_bond_search.hpp
      • detail
        • atom_invariants.hpp
        • canonical_labelling.hpp
        • common_bond_conditions.hpp
        • common_bond_mapping_search.hpp
        • overlap_similarity.hpp
        • ring_perception.hpp
        • search_results.hpp
        • target_storage.hpp
        • vertex_search.hpp
      • fingerprint_options.hpp
      • gpu.hpp
      • mcs.hpp
      • metal_gpu.hpp
      • mol_graph.hpp
      • screen_accelerator.hpp
      • search.hpp
      • similarity_screen.hpp
      • smarts_parser.hpp
    • metal
      • metal_batch.mm
      • metal_fingerprint.mm
      • metal_graph_kernels.mm
    • tests
      • test_corpus_storage_regression.cpp
      • test_fingerprint_options_regression.cpp
      • test_legacy_screening_thresholds.cpp
      • test_mces_contract_regression.cpp
      • test_mcs_complete_ring_domains.cpp
      • test_mcs_ring_proof_status.cpp
      • test_metal_failure_regression.mm
      • test_metal_fingerprint_regression.mm
      • test_metal_resident_device.cpp
      • test_metal_threshold_regression.mm
      • test_parsers.cpp
      • test_screen_accelerator.cpp
      • test_search_bound_regression.cpp
      • test_search_enumeration.cpp
      • test_thread_safety_regression.cpp
      • test_vertex_search_stereo.cpp
  • docs
    • ALGORITHMS.md
    • CPP.md
    • EXAMPLES.md
    • HOWTO-INSTALL.md
    • JAVA.md
    • PYTHON.md
    • RELEASE_NOTES.md
    • RELEASING.md
  • java
    • README.md
    • cli
      • pom.xml
    • core
      • pom.xml
    • pom.xml
    • src
      • main/java/com/bioinception/smsd/core
        • ChemOptions.java
        • CommonBondGraphs.java
        • CommonBondSearch.java
        • MCS.java
        • Standardiser.java
        • VertexSearch.java
      • test/java/com/bioinception/smsd
        • BenchmarkSuiteTest.java
        • ExternalBenchmarkTest.java
        • JavaCdkVsSmsdBenchmarkTest.java
        • core
          • CommonBondSearchInternalsTest.java
          • FingerprintOptionsRegressionTest.java
          • InputLimitsRegressionTest.java
          • MCSCompleteRingDomainTest.java
          • MCSContractTest.java
          • MCSRingProofStatusTest.java
          • MCSStopPointTest.java
          • NamedPredicateRegressionTest.java
          • VertexSearchInternalsTest.java
          • VertexSearchStereoTest.java
  • licenses/cdk
    • README.md
  • packaging/smsd-cuda
    • README.md
    • pyproject.toml
    • python/smsd_cuda
      • __init__.py
    • scripts
      • setup.sh
    • src
      • screen_accelerator.cu
    • tests
      • test_resident_fingerprints.py
  • pom.xml
  • pyproject.toml
  • python
    • README.md
    • smsd
      • __init__.py
      • _fingerprints.py
      • _screening.py
    • tests
      • test_corpus_storage_regression.py
      • test_fingerprint_batch_regression.py
      • test_mcs_ring_proof_status.py
      • test_package_surface.py
      • test_screening_tie_order.py
  • scripts
    • archive_docker_image.py
    • build-linux-installer.sh
    • build_python_wheels.py
    • check_pypi_release.py
    • cibuildwheel.toml
    • docker_install.py
    • docker_smoke.py
    • prepare-release.sh
    • prepare_docker_context.py
    • tests
      • test_archive_docker_image.py
      • test_docker_inputs.py
      • test_prepare_release.py
      • test_release_manifests.py
      • test_search_api_validation.py
      • test_supply_chain_pins.py

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Dismiss banner
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎.github/workflows/python-publish.yml‎

Copy file name to clipboardExpand all lines: .github/workflows/python-publish.yml
+57-11Lines changed: 57 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,20 @@ on:
1111
description: Exact release commit or existing validated tag
1212
required: true
1313
type: string
14+
distribution:
15+
description: Package to publish; smsd-cuda uses an existing validated Linux wheel
16+
required: true
17+
default: smsd
18+
type: choice
19+
options: [smsd, smsd-cuda]
1420
platform:
1521
description: Platform requiring validation; prefer local Linux/macOS builds
1622
required: true
1723
default: windows
1824
type: choice
1925
options: [windows, linux, macos, all]
2026
publish:
21-
description: Upload the validated published GitHub SDK and 20 CPU wheels to PyPI (requires platform=all)
27+
description: Upload validated published distributions to PyPI (smsd requires all; smsd-cuda requires linux)
2228
required: true
2329
default: false
2430
type: boolean
@@ -42,15 +48,6 @@ jobs:
4248
ref: ${{ inputs.release_tag }}
4349
fetch-depth: 0
4450
persist-credentials: false
45-
- name: Restore the release files exactly as stored
46-
# The source distribution must equal the frozen Git tree byte for byte, so no
47-
# checkout line-ending conversion may apply to it.
48-
shell: bash
49-
run: |
50-
printf '* -text -eol\n' > .git/info/attributes
51-
git rm -r -q --cached .
52-
git reset -q --hard
53-
test -z "$(git status --porcelain)"
5451
- uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
5552
with:
5653
python-version: '3.14'
@@ -60,10 +57,13 @@ jobs:
6057
RELEASE_REF: ${{ inputs.release_tag }}
6158
BUILD_TARGET: ${{ inputs.platform }}
6259
PUBLISH: ${{ inputs.publish }}
60+
DISTRIBUTION: ${{ inputs.distribution }}
6361
shell: bash
6462
run: |
6563
python - <<'PY'
6664
import json, os, re, subprocess
65+
if os.environ.get('DISTRIBUTION', 'smsd') != 'smsd':
66+
raise SystemExit('smsd-cuda only publishes an existing validated release wheel; use publish=true and platform=linux')
6767
ref = os.environ['RELEASE_REF']
6868
if not re.fullmatch(r'(?:v\d+\.\d+\.\d+|[0-9a-fA-F]{40})', ref):
6969
raise SystemExit('Expected a stable release tag or exact 40-character commit SHA')
@@ -142,7 +142,7 @@ jobs:
142142

143143
publish:
144144
name: Publish validated GitHub release files
145-
if: ${{ inputs.publish }}
145+
if: ${{ inputs.publish && inputs.distribution == 'smsd' }}
146146
runs-on: ubuntu-24.04
147147
timeout-minutes: 10
148148
environment: pypi
@@ -185,3 +185,49 @@ jobs:
185185
--dist-dir dist --receipt-file upload-receipt.json
186186
- name: Publish to PyPI
187187
uses: pypa/gh-action-pypi-publish@dc37677b2e1c63e2034f94d8a5b11f265b73ba33 # v1.14.2
188+
189+
publish-cuda:
190+
name: Publish validated CUDA release wheel
191+
if: ${{ inputs.publish && inputs.distribution == 'smsd-cuda' }}
192+
runs-on: ubuntu-24.04
193+
timeout-minutes: 10
194+
environment: pypi
195+
permissions:
196+
id-token: write
197+
contents: read
198+
steps:
199+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
200+
with:
201+
persist-credentials: false
202+
- uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
203+
with:
204+
python-version: '3.14'
205+
- name: Download the published CUDA wheel and source evidence
206+
env:
207+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
208+
RELEASE_TAG: ${{ inputs.release_tag }}
209+
BUILD_TARGET: ${{ inputs.platform }}
210+
RELEASE_REPOSITORY: ${{ github.repository }}
211+
run: |
212+
python scripts/check_pypi_release.py download --package smsd-cuda \
213+
--tag "$RELEASE_TAG" --platform "$BUILD_TARGET" --repository "$RELEASE_REPOSITORY" \
214+
--release-dir release-input --metadata-file release-metadata.json
215+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
216+
with:
217+
ref: ${{ inputs.release_tag }}
218+
fetch-depth: 0
219+
path: release-checkout
220+
persist-credentials: false
221+
- name: Check CUDA hashes, frozen source, metadata and actual build proof
222+
env:
223+
RELEASE_TAG: ${{ inputs.release_tag }}
224+
run: |
225+
python scripts/check_pypi_release.py validate --package smsd-cuda \
226+
--tag "$RELEASE_TAG" --release-dir release-input --metadata-file release-metadata.json \
227+
--source-checkout release-checkout --dist-dir dist --receipt-file upload-receipt.json
228+
- name: Verify the exact CUDA wheel immediately before upload
229+
run: |
230+
python scripts/check_pypi_release.py verify-staged --package smsd-cuda \
231+
--dist-dir dist --receipt-file upload-receipt.json
232+
- name: Publish smsd-cuda to PyPI
233+
uses: pypa/gh-action-pypi-publish@dc37677b2e1c63e2034f94d8a5b11f265b73ba33 # v1.14.2
Collapse file

‎.github/workflows/release.yml‎

Copy file name to clipboardExpand all lines: .github/workflows/release.yml
+10-4Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,9 @@ jobs:
146146
python scripts/collect-release-wheels.py --release-dir release-input --wheel-dir python-wheel --allow-incomplete
147147
python scripts/prepare_docker_context.py --release-dir release-input --output docker-context --architecture amd64
148148
- name: Build the image from the checked SDK and wheel
149-
run: docker build --platform linux/amd64 --build-arg "SMSD_REVISION=$SMSD_REVISION" --tag smsd:release-check docker-context
149+
run: |
150+
docker buildx version > docker-builder.log
151+
docker buildx build --load --platform linux/amd64 --build-arg "SMSD_REVISION=$SMSD_REVISION" --tag smsd:release-check docker-context
150152
- name: Test the CLI and installed Python image
151153
run: |
152154
docker run --rm smsd:release-check --help > docker-cli-help.log
@@ -155,15 +157,19 @@ jobs:
155157
- name: Save tested image
156158
run: |
157159
docker inspect smsd:release-check > docker-image.json
158-
docker save smsd:release-check | gzip > smsd-cli-image.tar.gz
159-
sha256sum smsd-cli-image.tar.gz > docker-image.sha256
160+
python scripts/archive_docker_image.py --image smsd:release-check \
161+
--revision "$SMSD_REVISION" --architecture amd64 --output smsd-cli-image.tar.xz
162+
sha256sum smsd-cli-image.tar.xz > docker-image.sha256
160163
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
164+
if: ${{ always() }}
161165
with:
162166
name: docker-cli
167+
compression-level: 0
163168
path: |
164-
smsd-cli-image.tar.gz
169+
smsd-cli-image.tar.xz*
165170
docker-image.sha256
166171
docker-image.json
172+
docker-builder.log
167173
docker-cpu-smoke.json
168174
docker-cli-help.log
169175
docker-cli-version.log
Collapse file

‎CHANGELOG.md‎

Copy file name to clipboardExpand all lines: CHANGELOG.md
+36Lines changed: 36 additions & 0 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,42 @@
33
All notable changes to SMSD Pro are documented in this file. The format is
44
based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
55

6+
## [8.0.3] - 2026-10-25
7+
8+
Corrections to complete-ring MCS matching, ring-proof reporting and built-in
9+
named SMARTS predicates, opt-in Metal fingerprint screening for native C++
10+
builds on macOS, and Python `fingerprints` for many molecules in one call. The
11+
[release notes](docs/RELEASE_NOTES.md) list the downloads and upgrade notes.
12+
13+
### Added
14+
15+
- C++: `smsd::metal::fingerprintAccelerator()` provides opt-in resident Metal fingerprint screening on macOS, with automatic selection disabled.
16+
- Python: `fingerprints` computes the fingerprints of many molecules or SMILES strings in one call on every core, each identical to `fingerprint` and in input order.
17+
18+
### Changed
19+
20+
- C++ and Java MCIS searches check affected stereochemistry while extending mappings.
21+
- Eligible single-result C++ and Python MCIS searches start from a complete-graph target; the tied mapping and nodes visited can differ from the query-first search.
22+
- C++ symmetry pruning is limited to unrestricted fragment MCIS and eligible substructure searches without ring options or stereo tags; default connected MCIS does not use it.
23+
- The general MCIS search in Java uses less memory on large molecules; results are unchanged.
24+
- The guides state what each MCS status means, including that a declined MCES search reports `LimitReached`, the size limits and default time budgets, and that stereo checks compare the parity of mapped neighbours, not CIP labels.
25+
- MCS examples use N-methylacetamide against propanamide, where neither molecule contains the other.
26+
27+
### Fixed
28+
29+
- MCS keeps its mappings but reports them as unproved when complete-ring or strict ring-fusion matching relies on truncated ring perception. In that case, `isMappingMaximal` (Python `is_mapping_maximal`) raises its proof-unavailable error instead of returning a value.
30+
- Complete-ring MCS matching recognises ring topology in graphs built without stored ring flags.
31+
- C++ MCIS symmetry pruning preserves the optimum when target neighbours are reordered.
32+
- GPU similarity-bound screening uses the CPU double score for thresholds and ties; the direct Metal float API keeps its existing precision. Large atom-count sums no longer overflow.
33+
- C++: `batchFingerprint` reads any sequence of graphs and, on several threads, throws the exception of the first molecule that fails, as on one thread.
34+
- Built-in named SMARTS predicates, in C++ and Java:
35+
- `isHBAcceptor` matches N, O and S with a charge of 0 to −3. It no longer requires a charge, and it excludes positive atoms, amide N, pyrrole-type aromatic N, nitro and N-oxide N, and sulfoxide and sulfone S.
36+
- `isHBDonor` includes aromatic NH.
37+
- `isAmideN` no longer matches amines; it matches amide, imide and lactam N, aromatic ones included.
38+
- `isKetone` and `isEster` mark the carbonyl carbon, not the carbon next to it, and now include carbonyls in aromatic rings such as chromone and coumarin. `isEster` includes formates and excludes anhydrides.
39+
- `isPositive` and `isNegative` match charges of +1 to +15 and −1 to −15, not only +1 and −1.
40+
- Java expands named predicates inside recursive SMARTS, as the native core does. As there, a name is ASCII letters, digits and underscores, so a registered name with other characters is no longer expanded.
41+
642
## [8.0.2] - 2026-10-23
743

844
Optional GPU screening through the separate `smsd-cuda` package, ordered
Collapse file

‎CITATION.cff‎

Copy file name to clipboardExpand all lines: CITATION.cff
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: "SMSD Pro: Small Molecule Subgraph Detector"
33
message: "If you use this software, please cite it using the metadata from this file."
44
type: software
55
license: Apache-2.0
6-
version: 8.0.2
6+
version: 8.0.3
77
url: "https://github.com/asad/SMSD"
88
repository-code: "https://github.com/asad/SMSD"
99

Collapse file

‎Dockerfile‎

Copy file name to clipboardExpand all lines: Dockerfile
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ ARG TARGETARCH
1919
ARG SMSD_REVISION
2020
LABEL org.opencontainers.image.title="SMSD Pro" \
2121
org.opencontainers.image.description="Command-line and Python substructure and MCS search, fingerprints and similarity screening" \
22-
org.opencontainers.image.version="8.0.2" \
22+
org.opencontainers.image.version="8.0.3" \
2323
org.opencontainers.image.revision="${SMSD_REVISION}" \
2424
org.opencontainers.image.source="https://github.com/asad/SMSD" \
2525
org.opencontainers.image.licenses="Apache-2.0 AND LGPL-2.1-or-later AND BSD-2-Clause AND GPL-2.0-only WITH Classpath-exception-2.0 AND MIT AND BSL-1.0 AND PSF-2.0" \
Collapse file

‎Dockerfile.cuda‎

Copy file name to clipboardExpand all lines: Dockerfile.cuda
+4-6Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# Requires BuildKit's bundled Dockerfile frontend 1.2 or later (RUN --mount).
12
FROM python:3.14.9-slim-bookworm@sha256:7e0522950230cad1ec100ada6e3898c22c6bc82851289b4bdf0bf77c1c829cd5 AS artifacts
23
ARG TARGETARCH
34
ARG SMSD_REVISION
@@ -14,7 +15,7 @@ ARG TARGETARCH
1415
ARG SMSD_REVISION
1516
LABEL org.opencontainers.image.title="SMSD Pro CUDA" \
1617
org.opencontainers.image.description="Python substructure and MCS search with NVIDIA CUDA fingerprint and similarity screening" \
17-
org.opencontainers.image.version="8.0.2" \
18+
org.opencontainers.image.version="8.0.3" \
1819
org.opencontainers.image.revision="${SMSD_REVISION}" \
1920
org.opencontainers.image.source="https://github.com/asad/SMSD" \
2021
org.opencontainers.image.licenses="Apache-2.0 AND PSF-2.0 AND LicenseRef-NVIDIA-CUDA" \
@@ -29,15 +30,12 @@ RUN test "$TARGETARCH" = amd64 \
2930
libsqlite3-0 libssl3t64 libtinfo6 libuuid1 libzstd1 zlib1g \
3031
&& rm -rf /var/lib/apt/lists/*
3132
COPY --from=artifacts /usr/local/ /usr/local/
32-
COPY --from=artifacts /artifacts/wheels/amd64/ /tmp/smsd/wheels/amd64/
33-
COPY --from=artifacts /artifacts/wheels/cuda/ /tmp/smsd/wheels/cuda/
34-
COPY --from=artifacts /artifacts/ARTIFACTS.json /tmp/smsd/ARTIFACTS.json
3533
COPY --from=artifacts /artifacts/scripts/ /usr/local/share/smsd/
3634
COPY --from=artifacts /artifacts/licenses/NVIDIA-CUDA.txt /usr/share/doc/smsd/licenses/NVIDIA-CUDA.txt
3735
COPY --from=artifacts /artifacts/LICENSE /artifacts/NOTICE /usr/share/doc/smsd/
38-
RUN ldconfig && python /usr/local/share/smsd/docker_install.py --gpu --root /tmp/smsd \
36+
RUN --mount=type=bind,from=artifacts,source=/artifacts,target=/tmp/smsd,rw \
37+
ldconfig && python /usr/local/share/smsd/docker_install.py --gpu --root /tmp/smsd \
3938
--architecture "$TARGETARCH" --revision "$SMSD_REVISION" \
40-
&& rm -rf /tmp/smsd \
4139
&& test ! -e /usr/local/cuda/bin/nvcc \
4240
&& groupadd -r smsd && useradd -r -g smsd -d /work smsd
4341
WORKDIR /work
Collapse file

‎README.md‎

Copy file name to clipboardExpand all lines: README.md
+33-25Lines changed: 33 additions & 25 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,9 @@ covers CPU wheels, the optional CUDA package and Docker images. The
4040

4141
## Quick start
4242

43-
Each example finds benzene in phenol, then computes their MCS. Run the commands
44-
from the repository root.
43+
Each example finds benzene in phenol, then computes the MCS of
44+
N-methylacetamide and propanamide. Neither contains the other; they share the
45+
four atoms of C–C(=O)–N. Run the commands from the repository root.
4546

4647
### C++
4748

@@ -52,12 +53,14 @@ Save this as `example.cpp`:
5253
#include <iostream>
5354

5455
int main() {
55-
const auto query = smsd::parseSMILES("c1ccccc1"); // benzene
56-
const auto target = smsd::parseSMILES("c1ccc(O)cc1"); // phenol
57-
const bool embedded = !smsd::Substructure::find(query).match(target).matches.empty();
56+
const auto benzene = smsd::parseSMILES("c1ccccc1");
57+
const auto phenol = smsd::parseSMILES("c1ccc(O)cc1");
58+
const bool embedded = !smsd::Substructure::find(benzene).match(phenol).matches.empty();
59+
const auto query = smsd::parseSMILES("CC(=O)NC"); // N-methylacetamide
60+
const auto target = smsd::parseSMILES("CCC(=O)N"); // propanamide
5861
const auto result = smsd::MCS::find(query).match(target);
5962
if (!embedded || !result.optimal || result.matches.empty()
60-
|| result.matches.front().atomMapping.size() != 6) {
63+
|| result.matches.front().atomMapping.size() != 4) {
6164
return 1;
6265
}
6366
std::cout << "MCS atoms: " << result.matches.front().atomMapping.size() << '\n';
@@ -88,11 +91,11 @@ needs:
8891
<dependency>
8992
<groupId>com.bioinceptionlabs</groupId>
9093
<artifactId>smsd</artifactId>
91-
<version>8.0.2</version>
94+
<version>8.0.3</version>
9295
</dependency>
9396
```
9497

95-
In Gradle, write `implementation("com.bioinceptionlabs:smsd:8.0.2")`. The
98+
In Gradle, write `implementation("com.bioinceptionlabs:smsd:8.0.3")`. The
9699
example below also parses SMILES, which needs `org.openscience.cdk:cdk-smiles:2.13`;
97100
the [Java module](java/README.md#installation) lists the optional additions and
98101
the `smsd-cli` artefact. Save this as `QuickStart.java`:
@@ -108,13 +111,15 @@ import org.openscience.cdk.smiles.SmilesParser;
108111
public class QuickStart {
109112
public static void main(String[] args) throws Exception {
110113
SmilesParser parser = new SmilesParser(SilentChemObjectBuilder.getInstance());
111-
IAtomContainer query = parser.parseSmiles("c1ccccc1"); // benzene
112-
IAtomContainer target = parser.parseSmiles("c1ccc(O)cc1"); // phenol
113-
boolean embedded = Substructure.find(query).match(target).found();
114+
IAtomContainer benzene = parser.parseSmiles("c1ccccc1");
115+
IAtomContainer phenol = parser.parseSmiles("c1ccc(O)cc1");
116+
boolean embedded = Substructure.find(benzene).match(phenol).found();
117+
IAtomContainer query = parser.parseSmiles("CC(=O)NC"); // N-methylacetamide
118+
IAtomContainer target = parser.parseSmiles("CCC(=O)N"); // propanamide
114119
SearchResult result = MCS.find(query).withTimeout(1000).match(target);
115120
if (!embedded || !result.optimal() || !result.found()
116-
|| result.matches().get(0).atomCount() != 6) {
117-
throw new IllegalStateException("Expected a proved six-atom match");
121+
|| result.matches().get(0).atomCount() != 4) {
122+
throw new IllegalStateException("Expected a proved four-atom MCS");
118123
}
119124
System.out.println("MCS atoms: " + result.matches().get(0).atomCount());
120125
}
@@ -125,8 +130,8 @@ Compile with Java 25 and run on Java 8 or later, here against the self-contained
125130
JAR of the build, which includes CDK and `cdk-smiles`:
126131

127132
```bash
128-
javac --release 8 -cp java/cli/target/smsd-cli-8.0.2-jar-with-dependencies.jar QuickStart.java
129-
java -cp "java/cli/target/smsd-cli-8.0.2-jar-with-dependencies.jar:." QuickStart
133+
javac --release 8 -cp java/cli/target/smsd-cli-8.0.3-jar-with-dependencies.jar QuickStart.java
134+
java -cp "java/cli/target/smsd-cli-8.0.3-jar-with-dependencies.jar:." QuickStart
130135
```
131136

132137
With a Java 8 compiler, omit `--release 8`. On Windows, separate the classpath
@@ -144,11 +149,11 @@ python -m pip install -e .
144149
```python
145150
import smsd
146151

147-
query = "c1ccccc1" # benzene
148-
target = "c1ccc(O)cc1" # phenol
149-
assert smsd.Substructure.find(query).match(target).found
152+
assert smsd.Substructure.find("c1ccccc1").match("c1ccc(O)cc1").found # benzene in phenol
153+
query = "CC(=O)NC" # N-methylacetamide
154+
target = "CCC(=O)N" # propanamide
150155
result = smsd.MCS.find(query).match(target)
151-
assert result.optimal and result.best.atom_count == 6
156+
assert result.optimal and result.best.atom_count == 4
152157
print("MCS atoms:", result.best.atom_count)
153158
```
154159

@@ -180,7 +185,7 @@ On Linux x86_64 with an NVIDIA GPU, install `smsd-cuda` next to `smsd` of the
180185
same version. Your code does not change:
181186

182187
```bash
183-
python -m pip install "smsd==8.0.2" "smsd-cuda==8.0.2"
188+
python -m pip install "smsd==8.0.3" "smsd-cuda==8.0.3"
184189
```
185190

186191
ECFP4 screens of a prepared `TargetCorpus` then run on the GPU where that has
@@ -190,15 +195,15 @@ corpora, other screens and all matching run on the CPU. Scores and hit order
190195
are the same as on the CPU, and a GPU error falls back to the CPU. See
191196
[CUDA screening](docs/PYTHON.md#optional-cuda-screening) for the details.
192197

193-
The [8.0.2 release](https://github.com/asad/SMSD/releases/tag/v8.0.2) also has
198+
The [8.0.3 release](https://github.com/asad/SMSD/releases/tag/v8.0.3) also has
194199
the GPU package as a wheel and a GPU Docker image,
195-
`smsd-8.0.2-cuda-linux-amd64.tar.xz`, with Python, `smsd`, `smsd-cuda` and the
200+
`smsd-8.0.3-cuda-linux-amd64.tar.xz`, with Python, `smsd`, `smsd-cuda` and the
196201
CUDA runtime. The image needs the NVIDIA Container Toolkit, also under WSL2 on
197202
Windows:
198203

199204
```bash
200-
docker load -i smsd-8.0.2-cuda-linux-amd64.tar.xz
201-
docker run --rm --gpus all smsd:8.0.2-cuda12.8 -c "import smsd; print(smsd.gpu_device_info())"
205+
docker load -i smsd-8.0.3-cuda-linux-amd64.tar.xz
206+
docker run --rm --gpus all smsd:8.0.3-cuda12.8 -c "import smsd; print(smsd.gpu_device_info())"
202207
```
203208

204209
The [installation guide](docs/HOWTO-INSTALL.md#docker) covers the CPU images
@@ -209,7 +214,7 @@ for amd64 and arm64.
209214
The Java build also produces the command-line tool, as a self-contained JAR:
210215

211216
```bash
212-
java -jar java/cli/target/smsd-cli-8.0.2-jar-with-dependencies.jar \
217+
java -jar java/cli/target/smsd-cli-8.0.3-jar-with-dependencies.jar \
213218
--Q SMI --q "c1ccccc1" --T SMI --t "c1ccc(O)cc1" --json -
214219
```
215220

@@ -235,6 +240,9 @@ and SDF files as batch targets.
235240
Python. Batch searches can use every processor core. Optional NVIDIA CUDA
236241
screening is provided separately by `smsd-cuda`; matching runs on the CPU.
237242
See [CUDA screening](docs/PYTHON.md#optional-cuda-screening) for its scope.
243+
Native C++ source builds on macOS also offer [opt-in Metal fingerprint
244+
screening](docs/CPP.md#optional-metal-fingerprint-screening), with automatic
245+
selection disabled.
238246
- **Utilities**, including R-group decomposition, MOL and SDF input,
239247
SVG depiction (C++ and Python) and molecular standardisation (Java).
240248

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.