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

new feature(java binding): Use std::thread::available_parallelism to replace num_cpus #5078

Closed
1 task
Xuanwo opened this issue Aug 30, 2024 · 2 comments · Fixed by #5080
Closed
1 task
Assignees
Labels
bindings/java enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@Xuanwo
Copy link
Member

Xuanwo commented Aug 30, 2024

Feature Description

num_cpus = "1.15.0"

Java binding uses num_cpus to get cpu cores. It's better to replace with std's available_parallelism.

Problem and Solution

Use std::thread::available_parallelism to replace num_cpus

Additional Context

No response

Are you willing to contribute to the development of this feature?

  • Yes, I am willing to contribute to the development of this feature.
@Xuanwo Xuanwo added enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed bindings/java labels Aug 30, 2024
@miroim
Copy link
Contributor

miroim commented Aug 31, 2024

If no one is working on this, I would like to give it a try.

@Xuanwo
Copy link
Member Author

Xuanwo commented Aug 31, 2024

If no one is working on this, I would like to give it a try.

Thanks, welcome to give it a try!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bindings/java enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants