|
|
Default API for mex - 64 bit or 32 bit ??
The MATLAB online documentation about the default API used by mex is confusing.
Here:
http://www.mathworks.com/help/techdoc/matlab_external/bsflnue-1.html
it says:
""MEX Uses 64-Bit API by Default
The default mex build option now uses the -largeArrayDims flag. If you build with this flag, mex uses the 64-bit API.""
On the other hand here:
http://www.mathworks.com/help/techdoc/ref/mex.html
It says:
""-compatibleArrayDims
Build a binary MEX-file using the MATLAB Version 7.2 array-handling API, which limits arrays to 2^31-1 elements. This option is the default, but in the future the -largeArrayDims option will be the default.""
Both these are from the documentation for R2010b. As of 2010b which of these two is true? Does anybody know when did/will -largeArrayDims option become default?
Thanks,
Saurabh
|
|
0
|
|
|
|
Reply
|
Saurabh
|
10/7/2010 9:40:04 PM |
|
"Saurabh " <sjain@math.uh.edu> wrote in message <i8lenk$1h7$1@fred.mathworks.com>...
> The MATLAB online documentation about the default API used by mex is confusing.
>
> Here:
> http://www.mathworks.com/help/techdoc/matlab_external/bsflnue-1.html
>
> it says:
>
> ""MEX Uses 64-Bit API by Default
>
> The default mex build option now uses the -largeArrayDims flag. If you build with this flag, mex uses the 64-bit API.""
>
>
> On the other hand here:
> http://www.mathworks.com/help/techdoc/ref/mex.html
>
> It says:
>
> ""-compatibleArrayDims
>
> Build a binary MEX-file using the MATLAB Version 7.2 array-handling API, which limits arrays to 2^31-1 elements. This option is the default, but in the future the -largeArrayDims option will be the default.""
>
> Both these are from the documentation for R2010b. As of 2010b which of these two is true? Does anybody know when did/will -largeArrayDims option become default?
>
My understanding is that R2010b was going to be the first version where -largeArrayDims became the default, but I have yet to install R2010b and confirm that. If you want to know, just compile a simple mex file and print out the size of mwSize, mwSignedIndex, etc.
James Tursa
|
|
0
|
|
|
|
Reply
|
James
|
10/7/2010 9:51:04 PM
|
|
"James Tursa" <aclassyguy_with_a_k_not_a_c@hotmail.com> wrote in message <i8lfc8$bgd$1@fred.mathworks.com>...
> "Saurabh " <sjain@math.uh.edu> wrote in message <i8lenk$1h7$1@fred.mathworks.com>...
> > The MATLAB online documentation about the default API used by mex is confusing.
> >
> > Here:
> > http://www.mathworks.com/help/techdoc/matlab_external/bsflnue-1.html
> >
> > it says:
> >
> > ""MEX Uses 64-Bit API by Default
> >
> > The default mex build option now uses the -largeArrayDims flag. If you build with this flag, mex uses the 64-bit API.""
> >
> >
> > On the other hand here:
> > http://www.mathworks.com/help/techdoc/ref/mex.html
> >
> > It says:
> >
> > ""-compatibleArrayDims
> >
> > Build a binary MEX-file using the MATLAB Version 7.2 array-handling API, which limits arrays to 2^31-1 elements. This option is the default, but in the future the -largeArrayDims option will be the default.""
> >
> > Both these are from the documentation for R2010b. As of 2010b which of these two is true? Does anybody know when did/will -largeArrayDims option become default?
> >
>
> My understanding is that R2010b was going to be the first version where -largeArrayDims became the default, but I have yet to install R2010b and confirm that. If you want to know, just compile a simple mex file and print out the size of mwSize, mwSignedIndex, etc.
>
> James Tursa
Thanks, James. Should have thought of that... As of 2010b, it is still NOT the default. The 2010b release notes say -largeArrayDims will be default in the next release. So, I guess 2011a is when it becomes the default.
-SJ
|
|
0
|
|
|
|
Reply
|
Saurabh
|
10/7/2010 10:30:31 PM
|
|
|
2 Replies
363 Views
(page loaded in 0.114 seconds)
Similiar Articles: Default API for mex - 64 bit or 32 bit ?? - comp.soft-sys.matlab ...The MATLAB online documentation about the default API used by mex is confusing. Here: http://www.mathworks.com/help/techdoc/matlab_external/bsflnu... MEX 32 bit on 64 bit machine - comp.soft-sys.matlabDefault API for mex - 64 bit or 32 bit ?? - comp.soft-sys.matlab ... MEX 32 bit on 64 bit machine - comp.soft-sys.matlab Default API for mex - 64 bit or 32 bit ?? - comp ... Running mex file from MATLAB R2009b on 64-bit Windows - comp.soft ...Default API for mex - 64 bit or 32 bit ?? - comp.soft-sys.matlab ... Running mex file from MATLAB R2009b on 64-bit Windows - comp.soft ... Default API for mex - 64 bit or ... 32-bit or 64-bit - comp.unix.solarisDefault API for mex - 64 bit or 32 bit ?? - comp.soft-sys.matlab ... The MATLAB online documentation about the default API used by mex is confusing. MEX in Matlab 7.10, 64 bit, Windows 7 - comp.soft-sys.matlab ...Default API for mex - 64 bit or 32 bit ?? - comp.soft-sys.matlab ... MEX in Matlab 7.10, 64 bit, Windows 7 - comp.soft-sys.matlab ... Default API for mex - 64 bit or 32 ... 64bit linux, mex, Fortran, and -largeArrayDims - comp.soft-sys ...Default API for mex - 64 bit or 32 bit ?? - comp.soft-sys.matlab ... 64bit linux, mex, Fortran, and -largeArrayDims - comp.soft-sys ... MEX 32 bit on 64 bit machine - comp ... How to use the 32bit mex file in a 64bit matlab - comp.soft-sys ...Default API for mex - 64 bit or 32 bit ?? - comp.soft-sys.matlab ... Default API for mex - 64 bit or 32 bit ?? - comp.soft-sys.matlab ... How to use the 32bit mex file in ... 32 bit applet on 64 bit Java? - comp.lang.java.programmer ...Default API for mex - 64 bit or 32 bit ?? - comp.soft-sys.matlab ... 32 bit applet on 64 bit Java? - comp.lang.java.programmer ... Default API for mex - 64 bit or 32 bit ... Stand-alone compiled on 64-bit machine to run on 32-bit? - comp ...Default API for mex - 64 bit or 32 bit ?? - comp.soft-sys.matlab ... Stand-alone compiled on 64-bit machine to run on 32-bit? - comp ... MEX 32 bit on 64 bit machine ... mex on 64 bits mac os 10.6.3 - comp.soft-sys.matlabDefault API for mex - 64 bit or 32 bit ?? - comp.soft-sys.matlab ... mex on 64 bits mac os 10.6.3 - comp.soft-sys.matlab Fortran uses pointers by default to pass the ... Default API for mex - 64 bit or 32 bit ?? - comp.soft-sys.matlab ...The MATLAB online documentation about the default API used by mex is confusing. Here: http://www.mathworks.com/help/techdoc/matlab_external/bsflnu... Upgrading MEX-Files to Use 64-Bit API :: Creating C/C++ and ...To help transition your MEX-files to the 64-bit API, MATLAB maintains an interface ... MEX Uses 32-Bit API by Default. The mex command uses the -compatibleArrayDims flag (32-bit ... 7/23/2012 11:27:53 AM
|
|
|
|
|
|
|
|
|