MinGW64 Compiler (C++) toolchain is not supported for mkldnn target.
Mostrar comentarios más antiguos
When I use matlab block function on simulink, I get the error
function y= fnc(u)
persistent net
if isempty(net)
net = coder.loadDeepLearningNetwork('32.mat');
end
input= [u];
input=rescale(input);
XTrain = {input'};
output= predict(net, XTrain, 'MiniBatchSize', 1);
y=output{1};
end
Error:Deep learning code generation using MinGW64 Compiler (C++) toolchain is not supported for mkldnn target.
Function 'MATLAB Function' (#426.60.106), line 4, column 11:
"coder.loadDeepLearningNetwork('32.mat')"
Launch diagnostic report.
8 comentarios
Walter Roberson
el 29 de Sept. de 2025
The documentation does imply that you should be able to use MinGW for mkldnn : the mkl-dnn documentation talks about how the command uses MATLAB Coder, and MATLAB Coder is supported for MinGW in your release.
However, for whatever reason, you are going to need to switch to Microsoft Visual C++ 2022, 2019, or 2017.
Bahadir
el 1 de Oct. de 2025
Walter Roberson
el 1 de Oct. de 2025
The redistributable is not enough: you need the compiler installed.
Bahadir
el 7 de Oct. de 2025
Walter Roberson
el 7 de Oct. de 2025
Bahadir
el 7 de Oct. de 2025
Walter Roberson
el 8 de Oct. de 2025
After you install them, you need to use mex -setup cpp and select Visual C++
Bahadir
el 8 de Oct. de 2025
Respuestas (0)
Categorías
Más información sobre MATLAB Support for MinGW-w64 C/C++ Compiler en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!