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

OSX support #24

Closed
leondz opened this issue Jul 8, 2020 · 4 comments
Closed

OSX support #24

leondz opened this issue Jul 8, 2020 · 4 comments
Labels
enhancement New feature or request

Comments

@leondz
Copy link

leondz commented Jul 8, 2020

Could it be a long-term goal to support Intel RAPL on OSX?

leod@mac610965:~/dev/lowtest$ python3 ct.py
CarbonTracker: Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/carbontracker/tracker.py", line 100, in run
    self.begin()
  File "/usr/local/lib/python3.7/site-packages/carbontracker/tracker.py", line 114, in begin
    self._components_remove_unavailable()
  File "/usr/local/lib/python3.7/site-packages/carbontracker/tracker.py", line 167, in _components_remove_unavailable
    raise exceptions.NoComponentsAvailableError()
carbontracker.exceptions.NoComponentsAvailableError: No components were available. CarbonTracker supports Intel CPUs with the RAPL interface and NVIDIA GPUs.
@kanding
Copy link
Collaborator

kanding commented Jul 10, 2020

For sure!

We'd like to support as much as possible. If I remember correctly then reading energy measurements on Mac OS was difficult without user access restrictions, which we really wanted to avoid with carbontracker

@kanding kanding added the enhancement New feature or request label Jul 10, 2020
@AndySAnker
Copy link

I get the same error when running on Nvidia GPU. Have you seen this before?

Traceback (most recent call last):
File "/home/nanostructure/anaconda3/lib/python3.7/site-packages/carbontracker/tracker.py", line 100, in run
self.begin()
File "/home/nanostructure/anaconda3/lib/python3.7/site-packages/carbontracker/tracker.py", line 114, in begin
self._components_remove_unavailable()
File "/home/nanostructure/anaconda3/lib/python3.7/site-packages/carbontracker/tracker.py", line 167, in _components_remove_unavailable
raise exceptions.NoComponentsAvailableError()
carbontracker.exceptions.NoComponentsAvailableError: No components were available. CarbonTracker supports Intel CPUs with the RAPL interface and NVIDIA GPUs.

CarbonTracker: Traceback (most recent call last):
File "/home/nanostructure/anaconda3/lib/python3.7/site-packages/carbontracker/tracker.py", line 100, in run
self.begin()
File "/home/nanostructure/anaconda3/lib/python3.7/site-packages/carbontracker/tracker.py", line 114, in begin
self._components_remove_unavailable()
File "/home/nanostructure/anaconda3/lib/python3.7/site-packages/carbontracker/tracker.py", line 167, in _components_remove_unavailable
raise exceptions.NoComponentsAvailableError()
carbontracker.exceptions.NoComponentsAvailableError: No components were available. CarbonTracker supports Intel CPUs with the RAPL interface and NVIDIA GPUs.

@lfwa
Copy link
Owner

lfwa commented Jul 27, 2020

Hi Andy,

What setup are you running on?

For NVIDIA GPUs we rely on the NVIDIA Management Library (NVML through pynvml) to query the GPU state. I have not yet tested if this or nvidia-smi is available on macOS.

@PedramBakh
Copy link
Collaborator

Thank you for bringing up the OSX support for Intel RAPL. We're pleased to inform that CarbonTracker v1.2.0 now supports Apple Silicon chips (M1/M2). Given the distinct nature of support required for OSX devices, we've decided to track it as a separate issue for clarity. Therefore, I'll be closing this ticket and have created a new dedicated issue titled "[OSX Support] Intel RAPL Integration" #58 to address this specific integration in the future. We appreciate your understanding and patience.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

5 participants