Repository navigation
Releases
0.6.0
[0.6.0] - 2026-11-24
Added
- Add
pairs_within_csrandlc_pairs_within_csr: the cutoff neighbours of every point as compressed sparse row (CSR) rows (offsets, ascendingcols, optional nearest-image squared distances) for full or half (j > i) lists on orthorhombic, triclinic, open, and mixed cells, with minimum-image semantics past half the box. Each row is counted, then filled and sorted in place on the pool set bylc_set_threads, with no global sort, and the output matches bit for bit at every thread count. The C call sizes in two calls (a null-buffer query keeps its rows for the fill) and rejects a non-finite coordinate. The C++ header addslinkcell::PairCsrandlinkcell::pairs_within_csr, andexamples/pairs_csr_bench.rstimes it againstlc_pairs_within_rows.
Fixed
- Folded the optional-OpenMP release note into the
0.5.0changelog section and matchedCITATION.cffdate-releasedto thev0.5.0tag date (2026-11-22). scripts/prove-published-install.shreadscontext.versionandsource.sha256from the pinned staged-recipesrecipe.yaml. A stdlib-only YAML-aware parser (read_recipe_source) takes only direct mapping keys and rejects nested, repeated, list or decoy entries. The recipe is pinned to the0.5.0staged-recipes commit (b3b7623e, which carriestest_knearest_csr.cpp), andscripts/check-recipe-source.shchecks the parser in the CIfmtjob.
0.4.2
[0.4.2] - 2026-11-16
Changed
- The threads of the k-nearest OpenMP team are named
linkcell-knnwhile they run linkcell's region, and take their own names back when it ends, sotop -Hand/proc/<pid>/task/*/commtell them apart from threads the OpenMP runtime keeps.
Fixed
- After
lc_set_threads(1),lc_cell_grid,lc_cell_graphandlc_partitionbin the points on the calling thread, and a build withoutparallelbins them on one thread. Binning a frame of 8192 points or more started a thread per CPU for the length of the call, and a smaller frame started one thread. - Meson links the OpenMP runtime by name,
ompunder Clang andgompotherwise, asbuild.rsand CMake do, so itslinkcell.pcsays-lompor-lgompinstead of-fopenmpand a wrap consumer's own sources are no longer compiled with-fopenmp. Configure stops when the C compiler has noomp.h. - The
lc_set_threadsdocumentation inlinkcell.hsays that a width of one runs the whole search on the calling thread and starts no thread, and that zero leaves the width unset. A build withparalleland withoutcapicompiles its tests again. - The column fill of
lc_pairs_withinruns on the width chosen withlc_set_threads, like its search and the row fill oflc_pairs_within_rows. At width one it no longer builds Rayon's global pool at the CPU count. build.rsfinds the OpenMP runtime inLIBRARY_PATHwhen the compiler does not report it. Clang's-print-file-namedoes not searchLIBRARY_PATH, so a Clang build against a libomp reached only through it, such as an Archer runtime for ThreadSanitizer, stopped on "finding libomp failed" although the region compiled and-lompwould link.
0.3.0
Optional gpulite device path: linkcell::gpu::Workspace::knearest_into writes the same packed n * k indices as the host walk. Occupancy defaults to threads-per-particle 8 (HOOMD / vesin), overridable by LINKCELL_TPP and LINKCELL_BLOCK. Setup copies ride the workspace stream. Orthorhombic cells, k <= 16.
0.2.4
0.2.3
linkcell 0.2.2
The crate is d-SEAMS/linkcell. HaoZeke/linkcell redirects.
linkcell 0.2.1
Error::MaskLen and Error::Overflow. lc_last_error is only written by lc_knearest. C++ Neighbours owns the packed buffer. knearest_into takes out_len.
The mark is a sheared cell with k=4 neighbours and a periodic wrap.
linkcell 0.2.0
ABI break. Existing 0.1.x C and C++ callers must rebuild.
lc_knearest takes size_t n and size_t k. lc_last_error is thread-local. The C++ header writes packed n*k indices. Error::Empty is an empty point list only.
linkcell 0.1.2
Fold into the primary cell once, then Cartesian pair distances plus a lattice shift. Sources run in parallel. The C ABI writes indices into the caller buffer.
linkcell 0.1.1
Orthorhombic boxes use the three-wrap minimum image. The C ABI reads packed xyz in place. The k-heap for k <= 16 stays on the stack.