#hwloc #numa #locality #hardware #cache

sys hwlocality-sys

Low-level bindings for the hwloc hardware locality library

21 unstable releases (3 breaking)

0.4.1 Feb 23, 2024
0.4.0 Jan 26, 2024
0.3.5 Jan 5, 2024
0.3.1 Dec 27, 2023
0.1.9 Sep 28, 2023

#310 in Memory management

Download history 280/week @ 2023-12-22 497/week @ 2023-12-29 598/week @ 2024-01-05 222/week @ 2024-01-12 292/week @ 2024-01-19 282/week @ 2024-01-26 110/week @ 2024-02-02 164/week @ 2024-02-09 605/week @ 2024-02-16 921/week @ 2024-02-23 587/week @ 2024-03-01 779/week @ 2024-03-08 351/week @ 2024-03-15 343/week @ 2024-03-22 335/week @ 2024-03-29 201/week @ 2024-04-05

1,349 downloads per month
Used in 8 crates (via hwlocality)

MIT license

160KB
2K SLoC

hwlocality-sys: The low-level bindings below hwlocality

MIT licensed On crates.io On docs.rs Continuous Integration CII Best Practices Summary Requires rustc 1.71.0+

This crate contains the low-level unsafe Rust -> C FFI bindings to hwloc, that are used to implement the safe hwlocality bindings.

Depending on your needs, you can either link to a libhwloc that is pre-installed on your computer or have hwlocality build its own copy libhwloc internally. Please read the "Prerequisites" section of the hwlocality README for more information about these two options.

Like any C API, the hwlocality-sys low-level bindings are highly unsafe to use, and it is advised that you use the safe hwlocality bindings instead whenever possible. If you encounter any issue with the safe bindings that prevents you from using them and forces you to use the unsafe C API directly, please report them in the issue tracker so we get them fixed.

Dependencies

~0–11MB
~84K SLoC