MEX compiler 'Intel Parallel Studio XE 2019 for C++ with Microsoft Visual Studio 2017' is not supported.
Show older comments
I cannot compile MEX code on Matlab 2019a (9.6.0.1150989) using Intel Parallel Studio 2019. I get this error:
The current MEX compiler 'Intel Parallel Studio XE 2019 for C++ with Microsoft Visual Studio 2017' is not supported.
While here it says it is supported!
This is the file I am trying to build in Matlab Coder:
function x=test()
x=zeros(10,1);
for i=1:10
x(i)=i*(5+i);
end
end
7 Comments
Walter Roberson
on 29 Jul 2019
Are you trying to do anything beyond using mex? That combination should be supported for mex but not for anything else.
amin ya
on 29 Jul 2019
Sumit Ghosh
on 29 Jul 2019
As suggested in the link (https://www.mathworks.com/support/requirements/supported-compilers.html), Intel Parallel Studio XE 2019 for C/C++ is not supported by MATLAB Coder in R2019a.
Walter Roberson
on 29 Jul 2019
Right, you can use the mex command to build C++ source, but next to nothing else with with that combination.
Walter Roberson
on 30 Jul 2019
"I want to build a mex to use multithreading"
Are you following the flow suggested at https://www.mathworks.com/help/coder/ug/acceleration-of-matlab-algorithms-using-parallel-for-loops-parfor.html ?
The supported compilers list https://www.mathworks.com/support/requirements/supported-compilers.html for R2019a has footnote 6 for compilers that do not support OpenMP. The four compilers supported by MATLAB Coder are MinGW 6.3 C/C++; Microsoft Visual C++ 2017 product family; Microsoft Visual C++ 2015 Professional (**not** Community edition); and lcc-win64 . The lcc-win64 compiler is the only one that has the footnote about no support for OpenMP.
Sufficiently old Visual Studio products did not support OpenMP, but more current releases do.
amin ya
on 1 Aug 2019
Answers (1)
Anakin Zheng
on 23 Oct 2019
0 votes
MATLAB Coder compiles the code for you, unless you select generate code only.
Is there any specific reason you want to use mex command to compile the genereated code?
Categories
Find more on MATLAB Compiler in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!