From 5d61bc3bdb52fadaae20a9d73f25117ec53eb9fd Mon Sep 17 00:00:00 2001 From: Filip Leonarski Date: Mon, 16 Nov 2026 01:18:14 +0100 Subject: [PATCH] FOR THE OWNER'S DECISION: without a GPU a placed model is not refined unless --refine asks for it On the CPU the refinement is still two orders of magnitude slower than on a GPU (cytC with its reference model, --no-gpu -N 16, after the CPU commits before this one: 378 s against 11 s on an RTX 5080; 1610 s before them), and short of the order of magnitude the owner set as the bar for keeping it on. So a run with no GPU (none, or --no-gpu) now places and scores the model as before and leaves the refinement out, with a log line and a Note saying so, and the report's REFINE= NOT_PERFORMED with REFINE_REASON "no GPU (--refine runs it on the CPU)". --refine (new) runs it on the CPU; --no-refine is unchanged, a GPU run refines as before, and --mode refine (an explicit request) refines on the CPU as before. RugnuxConfig::refine_without_gpu carries it (the viewer, which sets refine, follows the same default). Docs: RUGNUX_CLI.md (--refine, --model), RUGNUX_MODEL_AND_REFERENCE.md. Checked: cytC -e 300 --no-gpu -> REFINE= NOT_PERFORMED with the reason; the same on the GPU -> PERFORMED. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01UqXYdJDrM65gxsCn2PrbfK --- docs/RUGNUX_CLI.md | 3 ++- docs/RUGNUX_MODEL_AND_REFERENCE.md | 3 ++- rugnux/Rugnux.h | 3 +++ rugnux/RugnuxCommandLine.cpp | 2 ++ rugnux/RugnuxScaleMerge.cpp | 12 +++++++++++- rugnux/rugnux_cli.cpp | 9 +++++++++ 6 files changed, 29 insertions(+), 3 deletions(-) diff --git a/docs/RUGNUX_CLI.md b/docs/RUGNUX_CLI.md index de73be06f..47f6ede82 100644 --- a/docs/RUGNUX_CLI.md +++ b/docs/RUGNUX_CLI.md @@ -331,9 +331,10 @@ serial stills; `fft` (GPU) / `fftw` (CPU) index **de novo** and suit strong rota | `-z, --reference ` | Reference data of the same crystal form — an MTZ or a PDB structure-factor mmCIF (`-sf.cif`), gzipped or not, recognised by content; `--reference-mtz` is the same option: fixes the space group, its setting and the cell, resolves the [indexing ambiguity](RUGNUX_ADVANCED.md#the-indexing-ambiguity), hands over the R-free set and reports CCref. Not a scale anchor | | `--free-flags ` | Take only the R-free test set of this MTZ or structure-factor mmCIF - e.g. the deposited reflections of the `--model` - for the validation, the refinement and the merged files; nothing else of the file is used, so unlike `-z` it fixes no space group, cell or frame. Taken on the model's axes where the merge matches the file's intensities (`R_FREE_FLAGS=`, see [Free set and model bias](RUGNUX_MODEL_AND_REFERENCE.md#free-set-and-model-bias)) | | `--reference-column