Alternative for "!nvidia-smi" for Apple Silicon based GPU #385
Replies: 2 comments 1 reply
-
Hey @Mathews-Tom, Yes you're right As for Mac there's no real dedicated way but you can try: https://www.tensorflow.org/api_docs/python/tf/config/list_physical_devices Run this code in a Jupyter cell/Python environment with TensorFlow available: import tensorflow as tf
physical_devices = tf.config.list_physical_devices('GPU')
print(physical_devices) The output should be a list of the devices available to TensorFlow. |
Beta Was this translation helpful? Give feedback.
-
As an alternative to nvidia-smi is Activity Monitor. Search on spotlight (cmd + space) and type Activity Monitor. When the program opens press cmd + 4. This will show you the active usage of GPU(s) on your system |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi Daniel
I am using an Apple Silicon M1 Pro Macbook. I am currently working with Tensorflow v2.8.0 with TensorFlow-Metal for Apple Silicon. For the course work, I am using Google Colab running on a local Jupyter Notebook server. Working through different deep learning coding and running TensorFlow I do see that log messages, especially while fitting a model, that I am using GPU through TensorFlow-Metal.
On a few of the notebooks, I have noticed that you have used the following command in the notebook.
I am guessing this command is specifically meant for Intel based GPUs. Can you please let me know if there is an alternative for Apple M1 based GPU?
Beta Was this translation helpful? Give feedback.
All reactions