当前位置:网站首页>Runtimeerror: CUDA out of memory (solved) [easy to understand]
Runtimeerror: CUDA out of memory (solved) [easy to understand]
2022-07-25 14:10:00 【Full stack programmer webmaster】
Hello everyone , I meet you again , I'm your friend, Quan Jun .
Use today pytorch When training neural networks , The following error occurred :
RuntimeError: CUDA out of memory. Tried to allocate 144.00 MiB (GPU 0; 2.00 GiB total capacity; 1.29 GiB already allocated; 79.00 MiB free; 1.30 GiB reserved in total by PyTorch)
Mingming GPU 0 Yes 2G Capacity , Why only 79M You can use ? also 1.30G Has been PyTorch Occupied . This means that PyTorch The amount of GPU Space is not released , Cause the next run , appear CUDA out of memory.
The solution is as follows :
(1) Create a new terminal
(2) Input nvidia-smi, Will be displayed GPU Usage situation , And occupy GPU Applications for
(3) Input taskkill -PID Process number -F End the process of occupation , such as taskkill -PID 7392 -F
(4) Input again nvidia-smi see GPU usage , Will find GPU The occupied space is greatly reduced , In this way, we can use GPU Run the program
【 Reference documents 】
CUDA out of memory.( resolved )
Publisher : Full stack programmer stack length , Reprint please indicate the source :https://javaforall.cn/127655.html Link to the original text :https://javaforall.cn
边栏推荐
- Realize a family security and environmental monitoring system (I)
- Problems and extensions of the monocular depth estimation model featdepth in practice
- Gartner 2022 top technology trend: Super automation
- 2271. 毯子覆盖的最多白色砖块数 ●●
- Reverse Integer
- 关于左值和右值的一些问题总结[通俗易懂]
- CDA level1 multi topic selection
- Deep understanding of pytorch distributed parallel processing tool DDP -- starting from bugs in engineering practice
- Okaleido ecological core equity Oka, all in fusion mining mode
- Package management apt, dpkg
猜你喜欢

Brush questions - Luogu -p1075 prime factor decomposition

Idea settings ignore file configuration when submitting SVN

Okaleido生态核心权益OKA,尽在聚变Mining模式

Emergency science | put away this summer safety guide and let children spend the summer vacation safely!

Sunfeng, general manager of Yixun: the company has completed the share reform and is preparing for IPO

Construction and practice of yolov7 in hands-on teaching

Day1: 130 questions in three languages

~4.1 sword finger offer 05. replace spaces

Brush questions - Luogu -p1047 trees outside the school gate

在线问题反馈模块实战(十三):实现多参数分页查询列表
随机推荐
Common problems in the use of wireless vibrating wire acquisition instrument
einsum(): operands do not broadcast with remapped shapes [original->remapped]: [1, 144, 20, 17]->[1,
苹果手机端同步不成功,退出登录,结果再也登录不了
Experiment the Arduino code of NTP network timing alarm clock with esp32+tm1638
Deep understanding of pytorch distributed parallel processing tool DDP -- starting from bugs in engineering practice
Working principle of Lora to 4G and gateway repeater
swiper 一侧或两侧露出一小部分
~4.1 sword finger offer 05. replace spaces
Package management apt, dpkg
依迅总经理孙峰:公司已完成股改,准备IPO
The practice of depth estimation self-monitoring model monodepth2 in its own data set -- single card / multi card training, reasoning, onnx transformation and quantitative index evaluation
Common problems of wireless relay acquisition instrument
Comprehensive sorting and summary of maskrcnn code structure process of target detection and segmentation
Doris学习笔记之与其他系统集成
Initial flask and simple application
Basic theory of monocular depth estimation and paper learning summary
word设置粘贴仅保留文本
【学习记录】plt.show()闪退解决方法
Construction and practice of yolov7 in hands-on teaching
Sunfeng, general manager of Yixun: the company has completed the share reform and is preparing for IPO