-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Expose Linux libc interop #7
Comments
That actually looks quite Linux specific. Also, at the time of writing, there is no safe way to create a libc::cpu_set_t, which means that interfacing |
Ah, well, I see, the issue is that the cpu_set_t of one libc may theoretically not match that of another libc. Then indeed, we need cfg(all(target_os = "linux", target_env = "gnu")) |
Unfortunately, with the libc crate in its current state, it is not possible to implement this, because the hwloc functions are static functions (so we need to rewrite them in the rust bindings), and the libc crate 1/does not seem to allow safely creating a |
Expose
libc::sched_(get|set)affinity
interoperability behind suitable cfg flags with associated doc(cfg)/cfg(doc): https://hwloc.readthedocs.io/en/v2.9/group__hwlocality__glibc__sched.htmlThe text was updated successfully, but these errors were encountered: