MATLAB GPU coder: No such file or directory(when using app or the command line, there is no buildLog.log in the folder)

3 views (last 30 days)
C:\Users\45252\OneDrive\桌面\GPU\test\codegen\mex\mandelbrot_test\build\win64\buildLog.log. No such
file or directory.
Code generation failed: View Error Report
Error using codegen
Error in mandelbrot_count (line 31)
codegen -config cfg mandelbrot_test -args ARGS{1}
I use the MATLAB GPU coder example for mandelbrot and run accroding to the instruction, but there is no buildLog.log in the folder, so it doen't work.

Accepted Answer

Infinite_king
Infinite_king on 28 Nov 2023
Hi Jinxuan Chen,
I understand that you are attempting to generate CUDA code for the 'mandelbrot_test' function and encountering an error stating that 'buildLog.log' is not found. This issue may be occurring for any of the following reasons:
  1. Lack of write access in that location.
  2. Antivirus software removing files (very unlikely).
To resolve this issue, please follow the steps below:
  1. Attempt to create a file in that location to check if you have write access.
  2. If you have write access, then open MATLAB in Administrator mode.
  3. If you do not have write access, choose another location where you do have write access.
  4. If you have antivirus software, try pausing it and then continue with code generation.
I hope this information is helpful

More Answers (0)

Categories

Find more on Get Started with GPU Coder in Help Center and File Exchange

Products


Release

R2021b

Community Treasure Hunt

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

Start Hunting!