I ultimately fixed this by finding an old version of VS studio 2019. But why does mathworks not have a more robust mex? GPU's are never more relevant than now and therefore would think that mathworks first thing would be to make sure every version of MATLAB is compatible with a 2-3 year old VS studio. Or at least allow mex to all for more control of setting up a compiler.
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. ![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1750209/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1750209/image.png)
9 个评论
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 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!