Skip to content
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

wip: pin thread to cpus to stop the context swith; **WARNING: REMOVED… #5

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

midapsh
Copy link

@midapsh midapsh commented Nov 4, 2024

… break logic**

@qlrd
Copy link
Collaborator

qlrd commented Nov 4, 2024

Got an error on building here.

Did a cargo clean and cargo build --release, but the error persists.

There's a way to solve (i'm still learning rust lol)

error[E0432]: unresolved imports `libc::cpu_set_t`, `libc::sched_setaffinity`, `libc::CPU_SET`, `libc::CPU_ZERO`
 --> src/main.rs:1:12
  |
1 | use libc::{cpu_set_t, sched_setaffinity, CPU_SET, CPU_ZERO};
  |            ^^^^^^^^^  ^^^^^^^^^^^^^^^^^  ^^^^^^^  ^^^^^^^^ no `CPU_ZERO` in the root
  |            |          |                  |
  |            |          |                  no `CPU_SET` in the root
  |            |          |                  help: a similar name exists in the module: `IPC_SET`
  |            |          no `sched_setaffinity` in the root
  |            no `cpu_set_t` in the root

@erickcestari
Copy link
Owner

I tried running it on a Windows 10 and it didn't work either. The libc will only work on a Linux machine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants