-
-
Notifications
You must be signed in to change notification settings - Fork 30.3k
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
Add -Xcpu_count=process cmdline mode to redirect os.cpu_count as os.process_cpu_count #110649
Comments
What's the use case of this option? Would you mind to elaborate? Why not modifying code to replace os.cpu_count() with os.process_cpu_count()? I have doubts that this function is really needed. cc @gpshead |
Well, I consider the case that if people want to replace it without modifying source code(3rd party library) from os.cpu_count() and os.process_cpu_count() by default. |
You can use |
Same! Then let's close it |
Since we add the os. process_cpu_count from #109649 and -Xcpu_count= command from #109595, we can easily redirect os.cpu_count to os. process_cpu_count as we discussed at #109595 (comment)
Linked PRs
The text was updated successfully, but these errors were encountered: