pulseolz.blogg.se

Supported c compilers matlab r2013a
Supported c compilers matlab r2013a





This gives a vaiaty of different “missing entry point” errors. Om both Windows and Linux the problem seems to boil down to the linking with system libraries that reqires the entry point “main” which in a MEX-function is renamed: “mexFunction”.

supported c compilers matlab r2013a

This MEX function features OpenMP, but it compiles fine using GCC both with or without the GCC -fopenmp flag (i know this is -mp for the PGI compiler, but I am new with the whole PGI compiler bundle). The most simple C++ MEX function I have been using is a C++ implementation of Matlabs normalized sinc() function for which the source code can be seen here. The Unix mexopts.sh file that I have adapted can be found here. To make Matlab call PGI, a lot of tweeking has to be done in the mexopts file, and I have been doing some of this for all tree arcitectures (here is a nice guide for win64: ). Using MATLAB 2013b for Unix, and 2013a on Windows.Īll my functions is compiling fine with GCC 4.8 and 4.9 (the ones I have used earlier). I have tried on Windows 7 (32bit), MAC OS X 10.9 (x86_64) and Scientific Linux 6 (x86_64).

supported c compilers matlab r2013a

During the last week I have bin doing several attempts to make the unsuportet (by Matlab at least) link between PGI and MATLAB work. I have some Matlab functions that I have implemented in C++ for my Master Thesis, and I want to try using the PGI 14.1 compiler with OpenACC to GPU-accelerate an extensive for-loop in the C++ MEX function.







Supported c compilers matlab r2013a