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

Set number of threads #72

Open
yuyangxie96 opened this issue Feb 10, 2022 · 2 comments
Open

Set number of threads #72

yuyangxie96 opened this issue Feb 10, 2022 · 2 comments

Comments

@yuyangxie96
Copy link

Can we have an API that sets the number of threads used?

@jeshi96
Copy link
Collaborator

jeshi96 commented Feb 10, 2022

You can change the number of threads while running different benchmarks using the following syntax:

PARLAY_NUM_WORKERS=32 bazel run :<benchmark name>_main <...>

I don't think there's currently an interface for setting it if you're writing code that uses certain methods though. Let me know if this helps!

@jeshi96
Copy link
Collaborator

jeshi96 commented Feb 10, 2022

Sorry, I made a typo:

PARLAY_NUM_THREADS=32 bazel run :<benchmark name>_main <...>

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

No branches or pull requests

2 participants