why i got this error when i want to use GPU to accelerate the simulation?

4 ビュー (過去 30 日間)
Mingyang Ji
Mingyang Ji 2024 年 3 月 13 日
コメント済み: Mingyang Ji 2024 年 3 月 14 日
i use simulink to run a fuzzy control model , and i want to use GPU to accelerate the simulation
but i met the error "Selected MEX compiler 'mingw64-g++' is not supported for GPU code generation. Refer to the GPU Coder documentation for a list of supported GPU MEX compilers."
how to solve this question ?

採用された回答

Walter Roberson
Walter Roberson 2024 年 3 月 13 日
In MATLAB R2021b, only the following are supported for GPU Coder work:
  • Microsoft Visual C++ 2019 product family
  • Microsoft Visual C++ 2017 product family
MinGW is not supported at all.
  2 件のコメント
Mingyang Ji
Mingyang Ji 2024 年 3 月 13 日
OK I'll try it
Mingyang Ji
Mingyang Ji 2024 年 3 月 14 日
it seems worked!!!

サインインしてコメントする。

その他の回答 (1 件)

Hassaan
Hassaan 2024 年 3 月 13 日
Verify the MinGW version compatability with GPU Code Generation.
-----------------------------------------------------------------------------------------------------------------------------------------------------
If you find the solution helpful and it resolves your issue, it would be greatly appreciated if you could accept the answer. Also, leaving an upvote and a comment are also wonderful ways to provide feedback.
It's important to note that the advice and code are based on limited information and meant for educational purposes. Users should verify and adapt the code to their specific needs, ensuring compatibility and adherence to ethical standards.
Professional Interests
  • Technical Services and Consulting
  • Embedded Systems | Firmware Developement | Simulations
  • Electrical and Electronics Engineering
Feel free to contact me.
  4 件のコメント
Mingyang Ji
Mingyang Ji 2024 年 3 月 13 日
OK,i'll see it
Mingyang Ji
Mingyang Ji 2024 年 3 月 14 日
thank u!!!!

サインインしてコメントする。

製品


リリース

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by