在AWS p2实例上使用Tesla K80中的两个设备

时间:2017-02-23 12:31:39

标签: amazon-web-services amazon-ec2 cuda

我在AWS上使用p2实例,它应该有一个Tesla K80 gpu,里面有两个GK210 GPU(https://blogs.nvidia.com/blog/2014/11/18/tesla-k80-perf/)。

根据Nvidia论坛的以下帖子,我应该能够分别查看和访问这两个设备(https://devtalk.nvidia.com/default/topic/995255/using-tesla-k80-as-two-tesla-k40/?offset=4)。

但是,当我在p2实例上运行nvidia-smi时,我只看到一个设备:

[ec2-user@ip-172-31-34-73 caffe]$ nvidia-smi
Wed Feb 22 12:20:51 2017
+------------------------------------------------------+
| NVIDIA-SMI 352.99     Driver Version: 352.99         |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|===============================+======================+======================|
|   0  Tesla K80           On   | 0000:00:1E.0     Off |                    0 |
| N/A   34C    P8    31W / 149W |     55MiB / 11519MiB |      0%      Default |
+-------------------------------+----------------------+----------------------+

+-----------------------------------------------------------------------------+
| Processes:                                                       GPU Memory |
|  GPU       PID  Type  Process name                               Usage      |
|=============================================================================|
|  No running processes found                                                 |
+-----------------------------------------------------------------------------+

如何监控和访问2台设备?

1 个答案:

答案 0 :(得分:3)

带有p2.xlarge实例的actual situation是您为该VM分配了1/2的K80,因此此处的<link href="https://code.jquery.com/ui/1.12.0/themes/smoothness/jquery-ui.css" rel="stylesheet"/> <script src="https://code.jquery.com/jquery-1.12.4.min.js"></script> <script src="https://code.jquery.com/ui/1.12.0/jquery-ui.js"></script> <div id="highlights"></div>输出是预期的,您将无法访问来自该VM /实例类型的2个GPU 设备