windows如何查看nvidia显卡(GPU)的利用率和温度

本文详细介绍了如何在Windows系统中利用nvidia-smi工具查看NVIDIA显卡(GPU)的利用率和温度。由于不支持显示每个程序的显存占用,文章提供了通过切换到TCC模式来获取相关信息的方法。同时,对于高内存使用情况,解释了TensorFlow的内存分配策略,并提供了一种更细粒度的内存控制方式。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

windows如何查看nvidia显卡(GPU)的利用率和温度

nvidia-smi

只要在文件夹C:\Program Files\NVIDIA Corporation\NVSMI里找到文件nvidia-smi.exe,把该文件拖到命令提示符窗口(win+R,再输入‘CMD’进入),就可以显示关于GPU的信息,如下图所示:

1470684-20180912193347067-218707697.png


1470684-20180912193347423-2142530801.png




Windows 上不显示每个程序显存占用 N/A nvidia-smi

主要原因是这个功能在显卡显示画面时不能用
Not available in WDDM driver model 

If you perform the following : nvidia-smi -q you will see the following:

Processes
        Process ID                  : 6564
            Type                    : C+G
            Name                    : C:\Windows\explorer.exe
            Used GPU Memory         : Not available in WDDM driver model

Not available in WDDM driver model => WDDM stand for Windows Display Driver Model. You can switch to TCC and obtain the information with the command: nvidia-smi -dm 1, however this operation can only performed if you do not have any display attached to the GPU. So... It's mostly impossible...

By the way, don't worry about a high memory usage, Tensorflow reserve as much GPU memory as it can to speed up its processes. If you prefer a finer grained control on the memory taken use the following (it may slow down a little bit your computations):

config = tf.ConfigProto()
config.gpu_options.allow_growth = True
sess = tf.Session(config=config)

You can create a dual boot on Ubuntu or just forget about this.


https://zhuanlan.zhihu.com/p/29005381





转载于:https://www.cnblogs.com/jins-note/p/9636805.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值