Unable to set up mex for Intel Parallel Studio XE Compiler

9 次查看(过去 30 天)
Hello everyone,
I'm trying to generate a standalone executable file from my Simulink model. I use the compiler Microsoft Visual C ++ 2019. Intel Parallel Studio XE 2020 is installed on my desktop and integrated into MS Visual Studio 2019. But I cannot see this compiler in Matlab. In an old answer I read that Intel compilers require Microsoft Visual Studio 2015 or 2017 to be installed on your system as well. However, Matlab already has the option of using Intel Parallel Studio XE with the newer version of Microsoft Visual Studio.
I attached the output below.
mex -setup -v
Verbose mode is on.
... Looking for compiler 'Intel Parallel Studio XE 2018 with Microsoft Visual Studio 2015 (C)' ...
... Looking for environment variable 'ICPP_COMPILER18' ...No.
Did not find installed compiler 'Intel Parallel Studio XE 2018 with Microsoft Visual Studio 2015 (C)'.
... Looking for compiler 'Intel Parallel Studio XE 2018 with Microsoft Visual Studio 2017 (C)' ...
... Looking for environment variable 'ICPP_COMPILER18' ...No.
Did not find installed compiler 'Intel Parallel Studio XE 2018 with Microsoft Visual Studio 2017 (C)'.
... Looking for compiler 'Intel Parallel Studio XE 2018 with Microsoft Visual Studio 2019 (C)' ...
... Looking for environment variable 'ICPP_COMPILER18' ...No.
Did not find installed compiler 'Intel Parallel Studio XE 2018 with Microsoft Visual Studio 2019 (C)'.
... Looking for compiler 'Intel Parallel Studio XE 2019 with Microsoft Visual Studio 2015 (C)' ...
... Looking for environment variable 'ICPP_COMPILER19' ...No.
Did not find installed compiler 'Intel Parallel Studio XE 2019 with Microsoft Visual Studio 2015 (C)'.
... Looking for compiler 'Intel Parallel Studio XE 2019 with Microsoft Visual Studio 2017 (C)' ...
... Looking for environment variable 'ICPP_COMPILER19' ...No.
Did not find installed compiler 'Intel Parallel Studio XE 2019 with Microsoft Visual Studio 2017 (C)'.
... Looking for compiler 'Intel Parallel Studio XE 2019 with Microsoft Visual Studio 2019 (C)' ...
... Looking for environment variable 'ICPP_COMPILER19' ...No.
Did not find installed compiler 'Intel Parallel Studio XE 2019 with Microsoft Visual Studio 2019 (C)'.
... Looking for compiler 'Intel Parallel Studio XE 2020 with Microsoft Visual Studio 2017 (C)' ...
... Looking for environment variable 'ICPP_COMPILER20' ...No.
Did not find installed compiler 'Intel Parallel Studio XE 2020 with Microsoft Visual Studio 2017 (C)'.
... Looking for compiler 'Intel Parallel Studio XE 2020 with Microsoft Visual Studio 2019 (C)' ...
... Looking for environment variable 'ICPP_COMPILER20' ...No.
Did not find installed compiler 'Intel Parallel Studio XE 2020 with Microsoft Visual Studio 2019 (C)'.
...
...
...
Found installed compiler 'Microsoft Visual C++ 2019 (C)'.
MEX configured to use 'Microsoft Visual C++ 2019 (C)' for C language compilation.
I would be grateful for any advice. Thanks.

回答(1 个)

Neha
Neha 2024-3-4
Hi Semih,
I understand that you are facing an issue where MATLAB is not detecting the Intel Parallel Studio XE 2020 compiler integrated with Microsoft Visual Studio 2019, despite it being installed and configured on the system.
Please refer to the following link for more information on the supported compilers for each release:
It will guide you in verifying whether your current setup, including the Intel Parallel Studio XE 2020 with Microsoft Visual Studio 2019, is compatible with your version of MATLAB. The problem might arise if your MATLAB version does not fully support the Microsoft Visual C++ 2019 product family compiler, or due to specific requirements of the Intel compilers, which may necessitate having Microsoft Visual Studio 2015 or 2017 installed.
Hope this helps!

类别

Help CenterFile Exchange 中查找有关 Introduction to Installation and Licensing 的更多信息

产品


版本

R2020b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by