当前位置:网站首页>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
边栏推荐
- 3阶有向完全图的所有非同构的子图(不同钩子图个数)
- Differences between seaslog and monolog log systems, installation steps of seaslog [easy to understand]
- Leetcode-6126: designing a food scoring system
- Pycharm跑程序时自动进入测试模式
- "Shallow in and shallow out" MySQL and InnoDB [it is recommended to collect and share]
- When MySQL resets the root password and modifies the password, an error occurs. The password field does not exist
- Vulnhub | dc: 5 | [actual combat]
- leetcode-155:最小栈
- An interview question combining defer and function in golang
- [FAQ] access the HMS core push service, and the server sends messages. Cause analysis and solutions of common error codes
猜你喜欢

How to obtain the subordinate / annotation information of KEGG channel

matlab----EEGLab查看脑电信号

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

Online random coin tossing positive and negative statistical tool

leetcode-155:最小栈

Miscellaneous notes -- a hodgepodge

The database empties the table data and makes the primary key start from 1

Basic knowledge of Marine Geology

Remote - basic principle introduction
![[fiddlertx plug-in] use Fiddler to capture the package Tencent classroom video download (unable to capture the package solution)](/img/de/7a288ee8e6001235d4869c10503932.png)
[fiddlertx plug-in] use Fiddler to capture the package Tencent classroom video download (unable to capture the package solution)
随机推荐
Achieve accurate positioning based on Tencent map, and realize the attendance punch function of wechat applet
Use Navicat to connect to MySQL database through SSH channel (pro test is feasible)
一道golang中关于接口和实现的面试题
Embedded development: embedded foundation -- threads and tasks
一道golang中关于recover的面试题
[matlab] download originality documents based on oil monkey script and MATLAB
Beisen Holdings' IPO: a total loss of 4.115 billion yuan in three years, and a total of 2.84 billion yuan in the previous nine rounds of financing
leetcode-6131:不可能得到的最短骰子序列
Brush questions with binary tree (4)
Leetcode-6131: the shortest dice sequence impossible to get
Card link
sqlx库使用
Remote - basic principle introduction
Huatai Securities account opening process, is it safe to open an account on your mobile phone
Introduction to several scenarios involving programming operation of Excel in SAP implementation project
数据库sql语句练习题「建议收藏」
3阶有向完全图的所有非同构的子图(不同钩子图个数)
Leetcode skimming -- guess the size of numbers II 375 medium
Recommend a website that converts curl commands into PHP code & a website that initiates and executes curl requests online
Leetcode-919: complete binary tree inserter