Revert "FFT indexer: histogram padded to the next 2-3-5-7-smooth length"
Build Packages / Create release (push) Successful in 8s
Build Packages / Build documentation (push) Successful in 46s
Build Packages / build:portable:macos-arm64:nocuda (push) Successful in 5m13s
Build Packages / build:rugnux:linux-aarch64:cuda (push) Successful in 11m23s
Build Packages / build:portable:linux-x86_64:nocuda (push) Successful in 16m29s
Build Packages / build:portable:linux-x86_64:cuda (push) Successful in 20m59s
Build Packages / build:portable:windows-x86_64:nocuda (push) Successful in 23m49s
Build Packages / build:jfjoch:ubuntu2204:nocuda (push) Successful in 26m43s
Build Packages / build:portable:windows-x86_64:cuda (push) Successful in 27m42s
Build Packages / HDF5 consumer tests (DIALS, XDS) (push) Successful in 29m40s
Build Packages / build:jfjoch:rocky8:nocuda (push) Successful in 31m0s
Build Packages / build:jfjoch:rocky9:nocuda (push) Successful in 31m57s
Build Packages / build:jfjoch:ubuntu2404:nocuda (push) Successful in 28m13s
Build Packages / Generate python client (push) Successful in 1m21s
Build Packages / build:jfjoch:rocky8:cuda-sls9 (push) Successful in 31m6s
Build Packages / build:jfjoch:rocky9:cuda-sls9 (push) Successful in 33m59s
Build Packages / build:jfjoch:ubuntu2204:cuda (push) Successful in 25m9s
Build Packages / build:jfjoch:rocky8:cuda (push) Successful in 31m17s
Build Packages / build:jfjoch:ubuntu2404:cuda (push) Successful in 29m34s
Build Packages / build:jfjoch:rocky9:cuda (push) Successful in 33m2s
Build Packages / Unit tests (push) Successful in 1h50m0s
Build Packages / Validation Battery (push) Canceled after 57m9s

This reverts commit 6f6e57b36 for the owner's decision. Bisected on 2026-11-17 across the
rc188 builds: the padding alone moves results on knife-edge sets (nacl F 4 3 2 -> P 1,
d_min shifts on two open and one private set, one private space group), where rc187,
pocketfft, the CPU-refinement work and the build just before the padding all agree.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UqXYdJz9sA2BQBEgKkuVuL
This commit is contained in:
leonarski_fandClaude Opus 5.5 committed 2026-11-17 04:11:38 +01:00
1 parent 790005ab1e
commit ba95634205
1 file changed
-11
-11
View File
@@ -35,18 +35,7 @@ FFTIndexer::FFTIndexer(const IndexingSettings &settings)
const float one_over_d_max = 1.0f / settings.GetFFT_HighResolution_A();
histogram_spacing = 1.0f / (2.0f * max_length_A);
// Then zero-padded a little further, to the next length whose prime factors are all 2, 3, 5 or 7:
// the default (500 A, 2 A) is 3142 = 2 x 1571, which both FFT libraries can only do the slow way.
histogram_size = std::ceil(oversampling * one_over_d_max / histogram_spacing);
for (bool smooth = false; !smooth; ) {
int64_t v = histogram_size;
for (int p : {2, 3, 5, 7})
while (v % p == 0)
v /= p;
smooth = (v == 1);
if (!smooth)
++histogram_size;
}
input_size = histogram_size * nDirections;
output_size = (histogram_size / 2 + 1) * nDirections;