Mex compiler MinGW64 only, although msvcpp xmls are in the mexopts folder

46 次查看(过去 30 天)
Hi,
I am having issues - for whatever reason my previous GPU compile for VS studio 2019 and Matlab 2022a got corrupted and now VS studio no longer offers VS 2019 download.
My exact issue is that the mex -setup C++ only finds MinGW64 and not the VS studio code (msvc2022) although it is in the mexopts folder and VS studio 2022 is download (including the manual C++ library installation).
Mathworks has xmls but it seems mex is not robust enough to find them and does not allow for manual addition of compilers (even though the xmls are thoroughly there in \win64 folder. Does anyone have any ideas how to compile VS studio 2022 with whatever version of MATLAB that works with it.
  9 个评论
Heath Robinson
Heath Robinson 2024-8-13,14:25
Also shows that when I downloaded VS studio 2019 it worked, which shows that it is a MATLAB error. Nothing changed except the version of VS. Then MATLAB could find the xml. I think perhaps Mathworks is seriously behind the ball with GPU's, which is alarming given the tensor/pytorch world that exists in Python - I would be making sure something like compiling a GPU works with the most recent VS Studio.
Joss Knight
Joss Knight 2024-8-16,21:01
Apologies, no intention to impugn your competence. I'm not sure what your problem has to do with GPU. It seems to be just about whether MEX is succeeding in detecting your VS2022 installation. Can you provide the -v verbose output of mexcuda so we can see why it's not detecting your install?

请先登录,再进行评论。

回答(0 个)

产品


版本

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by