MatConvNet Compilation out of heap space error

4 views (last 30 days)
Hi,
I'm trying to use MatLab to run a network using MatConvNet. I am trying to compile MatConvNet for CPU using Visual Studio 2015 (I am on windows). When I run the code below, I get the error out of heap space. This is a weird issue, I have 16gb of ram in my machine and i have previously compiled on a 8gb linux machine.
I have tried reinstalling visual studio and matlab, and had a search online for similar issues, but I cannot find any solutions to my problem.
>> mex -setup C++
MEX configured to use 'Microsoft Visual C++ 2015' for C++ language compilation.
Warning: The MATLAB C and Fortran API has changed to support MATLAB
variables with more than 2^32-1 elements. You will be required
to update your code to utilize the new API.
You can find more information about this at:
https://www.mathworks.com/help/matlab/matlab_external/upgrading-mex-files-to-use-64-bit-api.html.
>> addpath matlab
>> vl_compilenn
Building with 'Microsoft Visual C++ 2015'.
Error using mex
data.cpp
c1xx: fatal error C1060: compiler is out of heap space
Error in vl_compilenn>mex_compile (line 583)
mex(args{:}) ;
Error in vl_compilenn (line 492)
mex_compile(opts, srcs{i}, objfile, flags) ;
>>

Answers (1)

Maheen Hussain
Maheen Hussain on 1 Mar 2019
Hey! I'm experiencing a similar issue at the moment. Did you manage to figure it out? Would be a great help!

Categories

Find more on MATLAB Compiler in Help Center and File Exchange

Tags

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!