Repository navigation
Releases
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.
linkcell 0.1.0
Periodic linked-cell k-nearest neighbour search.
Rust crate, C ABI (lc_*), C++ header. The cell is a general parallelepiped; orthorhombic boxes are Cell::ortho / lc_cell_ortho.
Install from Meson (linkcell_dep, pkg.generate), CMake (find_package(linkcell), linkcell::linkcell), or pkg-config (linkcell.pc).
meson setup build && meson compile -C build && meson install -C build
pkg-config --cflags --libs linkcell
cmake -B build -DCMAKE_INSTALL_PREFIX=$PREFIX
cmake --build build && cmake --install build