MATLAB Answers

MEX compiler 'Intel Parallel Studio XE 2019 for C++ with Microsoft Visual Studio 2017' is not supported.

조회 수: 29(최근 30일)
amin ya
amin ya 29 Jul 2019
답변: Anakin Zheng 23 Oct 2019
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

표시 이전 댓글 수: 4
amin ya
amin ya 29 Jul 2019
OK, now I get it! So it is not supported inside MATLAB Coder app but supported for MEX compilation.
So how can I compile the generated MEX code from MATLAB Coder using Intel Parallel Studio and MEX command?
Walter Roberson
Walter Roberson 30 Jul 2019
"I want to build a mex to use multithreading"
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
amin ya 1 Aug 2019
Using the method you mentioned MATLAB crashes when I run the MEX code!

로그인 to comment.

답변(1개)

Anakin Zheng
Anakin Zheng 23 Oct 2019
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?

  댓글 수: 0

로그인 to comment.

이 질문에 답변하려면 로그인을(를) 수행하십시오.


Translated by