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

Benchmarking fails on M1 #13

Open
mikasenghaas opened this issue Apr 24, 2023 · 0 comments
Open

Benchmarking fails on M1 #13

mikasenghaas opened this issue Apr 24, 2023 · 0 comments

Comments

@mikasenghaas
Copy link

Hi, firstly, thanks for the great repository! I wanted to use it to benchmark various image and video classifiers for my bachelor project, but ran into problems when running benchmark. The psutil.cpu_freq() call in get_machine_info fails because of a file missing on M1 Macs. It is a known, but (as far as I can tell) unsolved issue of the psutil (tested with almost latest version v5.9.4 repository (see this Issue)

As a quick and dirty fix I just hard-coded the maximum clock speed of my local machine, but it might be nice to find a programmatic cross-platform solution.

Reproducing the error in psutil dependency in Interactive Shell:

Python 3.10.10 (main, Mar 24 2023, 13:29:49) [Clang 14.0.0 (clang-1400.0.29.202)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import psutil
>>> psutil.__version__
'5.9.4'
>>> psutil.cpu_freq()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/jonas-mika/itu/bsc/.venv/lib/python3.10/site-packages/psutil/__init__.py", line 1864, in cpu_freq
    ret = _psplatform.cpu_freq()
  File "/Users/jonas-mika/itu/bsc/.venv/lib/python3.10/site-packages/psutil/_psosx.py", line 179, in cpu_freq
    curr, min_, max_ = cext.cpu_freq()
FileNotFoundError: [Errno 2] No such file or directory (originated from sysctl(HW_CPU_FREQ))
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

1 participant