当前位置:网站首页>cuda_ error_ out_ of_ Memory (out of memory)
cuda_ error_ out_ of_ Memory (out of memory)
2022-07-25 21:00:00 【Full stack programmer webmaster】
Hello everyone , I meet you again , I'm your friend, Quan Jun .
【 Said in the previous 】 Complex machine learning programs , Especially when you have already trained to run , It's not about changing CUDA It can be changed . Because many parameters are already in another gpu Inside the , Simply change one test Code is not enough . If this is the case , Only check the operation , See what program takes up so much memory , If you can kill Just drop it .
An error is as follows
Ideas
Simple and clear , He has told you , The one used by default gpu Out of memory .
Enter the following in the operating system , Check it out memory The present state :
nvidia-smiharm , Find out GPU-0 There is a process in progress that leads to 1GB The rest is not enough . We use it GPU-1 Just execute !
Problem solving
python In file :
import osos.environ["CUDA_VISIBLE_DEVICES"] = '1'It's solved .
Publisher : Full stack programmer stack length , Reprint please indicate the source :https://javaforall.cn/127682.html Link to the original text :https://javaforall.cn
边栏推荐
- kali修改更新源(无法安全的用该源更新)
- The international summit osdi included Taobao system papers for the first time, and end cloud collaborative intelligence was recommended by the keynote speech of the conference
- 3阶有向完全图的所有非同构的子图(不同钩子图个数)
- Pychart automatically enters the test mode when running the program
- Vulnhub | dc: 6 | [actual combat]
- If the order is not paid for 30 minutes, it will be automatically cancelled. How to achieve this? (Collection Edition)
- Canvas fill gradient
- Huatai Securities account opening process, is it safe to open an account on your mobile phone
- How to realize reliable transmission with UDP?
- Explain the principle of MySQL master-slave replication in detail
猜你喜欢

Matlab---eeglab check EEG signal

Leetcode skimming -- guess the size of numbers II 375 medium

Debugged PEB (beingdebugged, ntglobalflag)

leetcode-919:完全二叉树插入器

Leetcode-114: expand binary tree into linked list

Online random coin tossing positive and negative statistical tool

DDD的Go实战

How to obtain the subordinate / annotation information of KEGG channel

Leetcode customs clearance: hash table six, this is really a little simple

Step num problem
随机推荐
作为测试,如何理解线程同步异步
有哪些优化mysql索引的方式请举例(sqlserver索引优化)
[online tutorial] iptables official tutorial -- learning notes 2
mysql导入数据时已改成csv utf8文件且文件名为英文,为什么还是导入失败
476-82(322、64、2、46、62、114)
Huatai Securities account opening process, is it safe to open an account on your mobile phone
npm 模块 移除_【已解决】npm卸载模块后该模块并没有从package.json中去掉[通俗易懂]
How to realize reliable transmission with UDP?
cv图像翻转,EmguCV图像旋转「建议收藏」
ES6---4个强大运算符(??、??=、?.、?:)
An interview question about recover in golang
牛客-TOP101-BM37
IEC61131 address representation
Vulnhub | dc: 5 | [actual combat]
Airtest解决“自动装包”过程中需要输入密码的问题(同适用于随机弹框处理)
一道golang中关于recover的面试题
Character function and string function (2)
Online random coin tossing positive and negative statistical tool
如何自动生成短链?如何在线批量生成带UTM参数的链接?
Leetcode-6127: number of high-quality pairs