Drexel dragonThe Math ForumDonate to the Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: 64bits and memory problem
Replies: 18   Last Post: Oct 2, 2013 5:39 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]

Posts: 19
Registered: 1/24/09
Re: 64bits and memory problem
Posted: Nov 19, 2009 4:59 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

When I was using svmtrain in libsvm. I got this same problem. I write the software author (Chih-Jen Lin), he said that we need to modify make.m, add -largeArrayDims on 64-bit machines. So we need:

mex -O -largeArrayDims ...

now the make file is like this:

mex -O -largeArrayDims -c svm.cpp
mex -O -largeArrayDims -c svm_model_matlab.c
mex -O -largeArrayDims svmtrain.c svm.obj svm_model_matlab.obj
mex -O -largeArrayDims svmpredict.c svm.obj svm_model_matlab.obj
mex -O -largeArrayDims libsvmread.c
mex -O -largeArrayDims libsvmwrite.c

It fixed the problem. Enjoy~

P.S., the following FAQ says about the x64 compiler when installing visual studio c.

Q: On 64bit Windows I compile the MATLAB interface without problem, but why errors occur while running it?

If you use Microsoft Visual Studio, probabally it is not properly installed. See the explanation here.

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2016. All Rights Reserved.