CUDA out of memory(然鹅明明还有空间)
模型跑完想再跑一遍的时候居然给我报“CUDA out of memory”,很明显,我的显卡虽然菜,但起码还是可以跑的,毕竟刚跑完,那就可能是python在运行完以后没有释放资源,导致GPU的内存满了。
如果是这样的话,那解决的方法就很简单了,直接把进程杀死就行。
首先在C:\Program Files\NVIDIA Corporation\NVSMI位置打开命令行,然后输入nvidia-smi(也可以用nvidia-smi.exe -l 1,每秒更新CUDA使用情况),显示当前gpu的使用情况如下:
显然,杀死8868这个进程就完事,命令如下:
taskkill -PID 进程号 -F
这时再看一下gpu的使用情况,发现没有进程占用了,再运行项目也就跑起来了!
CUDA out of memory(然鹅明明还有空间)相关推荐
- 明明有内存报错CUDA out of memory
RuntimeError: CUDA out of memory. Tried to allocate 2.42 GiB (GPU 0; 24.00 GiB total capacity; 113.8 ...
- YOLOX训练:显存足够,但依旧CUDA out of memory(Tried to allocate 5.58 GiB,8.00 GiB total capacity,6.40 GiB free)
问题已经解决,请参考以下博文: https://blog.csdn.net/ELSA001/article/details/120918082?spm=1001.2014.3001.5501 刚刚我尝 ...
- CUDA out of memory. Tried to allocate 16.00 MiB (GPU 0; 6.00 GiB total capacity;总结(1)
CUDA out of memory. Tried to allocate 16.00 MiB (GPU 0; 6.00 GiB total capacity; 4.54 GiB already al ...
- pytorch遇见RuntimeError: CUDA out of memory的解决
RuntimeError: CUDA out of memory 1.查看是否其他程序占用显存 遇到此类错误后,对于py格式的文件来说,程序会进行终止,也就是当前程序占用的显存将会被释放.此时可用 w ...
- Pytorch 训练与测试时爆显存(cuda out of memory)的终极解决方案,使用cpu(勿喷)
Pytorch 训练与测试时爆显存(cuda out of memory)的终极解决方案,使用cpu(勿喷) 参见了很多方法,都没有用. 简单点,直接把gpu设成-1
- CUDA out of memory in pytorch
with torch.no_grad(): CUDA out of memory in pytorch 今天尝试了一下Transformer,一直遇到当validate若干次之后爆显存,一开始以为参数 ...
- CUDA内存类型memory
CUDA内存类型memory 2013-09-30 10:34 4224人阅读 评论(1) 收藏 举报 分类: CUDA(106) http://www.cnblogs.com/traceorigin ...
- CUDA out of memory. Tried to allocate 392.00 MiB (GPU 0; 10.76 GiB total capacity; 652.77 MiB alread
在使用Pytorch中,出现CUDA out of memory. Tried to allocate 392.00 MiB (GPU 0; 10.76 GiB total capacity; 652 ...
- CUDA out of memory. Tried to allocate 14763.13 GiB (GPU 3; 10.73 GiB total capacity; 165.28 MiB alre
RuntimeError: CUDA out of memory. Tried to allocate 14763.13 GiB (GPU 3; 10.73 GiB total capacity; 1 ...
最新文章
- sourceinsight无法跳转函数_使用SourceInsight的三大理由,最后一点是关键!
- WebStorm 2019.3.1安装教程
- regex在.NET里判断输入信息的合法性
- vb for循环 combobox的使用 Print的使用
- Android中attrs.xml文件的使用详解
- 【重点】LeetCode 143. Reorder List
- 随机游走问题的神奇应用(三)
- 浏览器文件分段断点上传简单示例(python 篇)
- 【2019银川网络赛D:】Take Your Seat(概率--递推+思维)
- ad中电容用什么封装_【AD封装】贴片插件晶振(带3D)
- java-for循环9的倍数(基础)
- 怎么卸载quartus_分享一个Quartus工程清理方法
- win10下创建FTP站点
- Java学习笔录3(变量和常量)
- 睡眠手环APP开发上线
- 26个数据分析案例——第二站:基于Hive的民航客户价值分析
- SF25 | 日内交易策略开发(一)黄金日内交易模型
- linux里hba状态_(转)Linux主机HBA常用操作指南
- realloc动态内存调整探究
- 新浪微博开发之授权用户登录的实现