nvidia gpu仪表板
GPUDashboard的Python项目详细描述
GPU仪表板
nvidia gpu的简单仪表板
演示
要求
- python 2.7或3.6
- NVIDIA SIM卡
- firebase实时数据库
- 类似Linux的操作系统
设置
- 将规则设置为
{"rules":{".read":true,".write":true}}
- 转到项目概述单击add firebase to your web app并复制以下部分。
varconfig={apiKey:"XXXXXXXXXXXXXXXXXXXXXXXXXXXX",authDomain:"XXXXX.firebaseapp.com",databaseURL:"https://XXXXXX.firebaseio.com",projectId:"XXXXXXX",storageBucket:"XXXXXXX.appspot.com",messagingSenderId:"XXXXXXXXXXX"};
- 安装了nvidia gpu的服务器。
pip install GPUDashboard GPUDashboard -n your_server_name -i 20 -u your_databaseURL > GPUDashboard.log # your_server_name is the name you want to give your server e.g. MyFirstServer# -i is the interval of GPU information updating# your_databaseURL is the databaseURL obtained froom Firebase as shown above
现在,服务器gpu信息被发布到firebase。*如果您有许多服务器,那么它们都可以使用您在firebase中创建的同一个数据库。当您在不同服务器上的命令行中启动gpudashboard时,只需为“您的服务器名”指定不同的名称即可。
- 下载ViewStatus.html并用文本编辑器打开,然后替换“配置”。
<html><header><script>varconfig={apiKey:"XXXXXXXXXXXXXXXXXXXXXXXXXXXX",authDomain:"XXXXX.firebaseapp.com",databaseURL:"https://XXXXXX.firebaseio.com",projectId:"XXXXXXX",storageBucket:"XXXXXXX.appspot.com",messagingSenderId:"XXXXXXXXXXX"};</script><linkrel="stylesheet"href="https://fonts.googleapis.com/icon?family=Material+Icons"/>
- 用浏览器打开“modifiedviewstatus.html”。