CPU count on macOS #4
-
Hello there! I just discovered this lib and am looking to use it in one of my Python projects, but during my recent tests I noticed something intriguing when looking up the number of CPUs on a mac (Darwin system, in this case a Mac Mini M1). From what I understand, you are using the "hw.cpu64bit_capable" result of the To give a little more context to my thinking, here are the results of the
Thanks in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hello, ZRunner! Thanks for your question! “Does a Mac necessarily have only one physical CPU?” - As it was mentioned above, yes. In addition, if you have any idea of how to improve our library, we will be happy to discuss it. Best wishes, |
Beta Was this translation helpful? Give feedback.
Hello, ZRunner!
Thanks for your question!
Sorry for not answering for a long time. We had to check eco2AI functionality mentioned in your question.
As for using "hw.cpu64bit_capable" - you are completely right, it came from early versions and now(thanks to you) we fixed it. In newer versions of eco2AI number of physical CPUs for MacOS will be set to 1, because the latest models(starting from 2013) have only one physical CPU.
So thank you for noticing a possible error. For now, almost all CPUs support 64 bits programs, so we don’t expect any problems with current version of the lib(with your specific Mac system as well).
“Does a Mac necessarily have only one physical CPU?” - As it was ment…