[英]How to get allocated GPU spec in Google Colab
I'm using Google Colab for deep learning and I'm aware that they randomly allocate GPU's to users.我正在使用 Google Colab 进行深度学习,我知道他们会随机将 GPU 分配给用户。 I'd like to be able to see which GPU I've been allocated in any given session.我希望能够查看在任何给定会话中分配给我的 GPU。 Is there a way to do this in Google Colab notebooks?有没有办法在 Google Colab 笔记本中做到这一点?
Note that I am using Tensorflow if that helps.请注意,如果有帮助,我正在使用 Tensorflow。
这使阅读更容易
!nvidia-smi -L
Run this two commands in collab在 collab 中运行这两个命令
CUDA: Let's check that Nvidia CUDA drivers are already pre-installed and which version is it. CUDA:让我们检查一下 Nvidia CUDA 驱动程序是否已经预装,以及它是哪个版本。 !/usr/local/cuda/bin/nvcc --version !nvidia-smi
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.