为什么我的程序在64 GB RAM系统上不占用超过2 GB的RAM? [英] Why my program does not take more than 2 GB RAM on 64 GB RAM System?

查看:314
本文介绍了为什么我的程序在64 GB RAM系统上不占用超过2 GB的RAM?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想训练 Dlib的train_shape_predictor_ex.cpp ,其中 Halen 数据集。我使用Visual Studio在发布模式中为 64位平板电脑编译为控制台应用程序

I am trying to train a Dlib's train_shape_predictor_ex.cpp with Halen dataset. I compiled the code with Visual Studio in release mode for 64-bit plateform as console application.

当我在命令提示符中运行 train_shape_predictor_ex.exe 时,执行的进程开始, $ c>任务管理器表明此进程的内存消耗正在增加,但已停止到 1.9 GB ,并产生运行时异常:错误分配<强>。即使我的系统是 64 GB RAM

When I run the train_shape_predictor_ex.exe in command prompt, the executed process started and I saw in Task Manager that memory consumption by this process was increasing but it was stopped till around 1.9 GB and gave a Run-time Exception: bad allocation. It is unable to take more RAM than around around 1.9 GB RAM even My system is 64 GB RAM

任何人都可以帮我解决这个问题, ?
提前感谢!

Can anybody help me getting solve this problem? Thanks in advance !

推荐答案

要构建可以消耗物理内存比普通32位应用程序(意味着2GB)的C ++应用程序,应用程序在64位模式下。

To build C++ Application which can consume Physical memory than normal 32-Bit application(means 2GB), It is needed to built the application in 64-bit mode.


  • 启用/ LARGEADDRESSAWARE标记为true

  • 构建65位目标CPU的应用程序。

这篇关于为什么我的程序在64 GB RAM系统上不占用超过2 GB的RAM?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆