Build error: C++ compiler produced errors. See the Build Log for further details

20 ビュー (過去 30 日間)
Hi! I ask a question here! I getting wrong on gpu coder says "Build error: C++ compiler produced errors. See the Build Log for further details" but i already installed mingw and i also replace attachment of bug report how can i fix this guys Thanksmex.png
  2 件のコメント
Joss Knight
Joss Knight 2020 年 1 月 16 日
What does the Build Log say?
Allan III T. Condiman
Allan III T. Condiman 2020 年 1 月 17 日
Cannot find cl.exe in Path

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

採用された回答

Walter Roberson
Walter Roberson 2020 年 1 月 17 日
You must install Visual Studio to use GPU Coder.
  4 件のコメント
Allan III T. Condiman
Allan III T. Condiman 2020 年 1 月 21 日
Thank you very much sir :)
Ali Al-Saegh
Ali Al-Saegh 2021 年 1 月 13 日
Hello,
I have the same proble as Allan stated. I installed VS 2019 Community but still have the same problem. Are there any configuration should me made to solve the problem.
I need help please.

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

その他の回答 (1 件)

Allan III T. Condiman
Allan III T. Condiman 2020 年 1 月 17 日
Cannot find cl.exe in Pathcl.png
  3 件のコメント
Ultimate CR
Ultimate CR 2021 年 7 月 22 日
編集済み: Ultimate CR 2021 年 7 月 22 日
Hi @Joss Knight, I am using MATLAB 2019b version and have installed VS 2019 community version. I already have built MKLDNN library successfully but still getting the same error as of now.
Error is, MEX build failed: Build error: C++ compiler produced errors. See the Build Log for further details. <a href="matlab:helpview('C:/Program Files/Polyspace/R2019b/help/coder/helptargets.map','msginfo_Coder_FE_TargetBuildError');"
Solutions I already have tried are:
  1. https://www.mathworks.com/matlabcentral/answers/761406-code-generation-error-build-error-c-compiler-produced-errors-see-the-build-log-for-further-deta which talks about placing mkldnn_config.h into mex file
  2. https://www.mathworks.com/matlabcentral/answers/447387-matlab-coder-how-do-i-build-the-intel-mkl-dnn-library-for-deep-learning-c-code-generation-and-dep which talks about build mkl-dnn from source where I got the sucess.
  3. mex -setup c++ link that matlab central provides.
I am working on a research project where I want to see the inference time by resnet50 model using resnet50.onnx model. My Question is,
Do we need the MEX build to perform inference from the generated c++ code? Because error is not coming in code generation.
If yes, then how to debug this error.
@Allan Condiman, @Walter Roberson and @Ali Al-Saegh are you able to solve this issue? If yes, please help.
Joss Knight
Joss Knight 2021 年 7 月 22 日
This is a new question, not really a comment on the answer to an existing question. Try posting a new question, which might draw the attention of the GPU Coder team. That said:
net = resnet50;
x = imresize(im2single(imread('peppers.png')),net.Layers(1).InputSize(1:2));
predict(net,x)
ans = 1×1000
1.0e+00 * 0.0001 0.0008 0.0002 0.0002 0.0003 0.0001 0.0001 0.0002 0.0001 0.0004 0.0002 0.0002 0.0001 0.0001 0.0000 0.0002 0.0001 0.0001 0.0001 0.0001 0.0003 0.0003 0.0004 0.0001 0.0003 0.0003 0.0001 0.0001 0.0007 0.0005

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

Community Treasure Hunt

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

Start Hunting!

Translated by