When I used GPUCoder to compile, I reported an error. When I switched to CCoder, this error was not reported.
조회 수: 1 (최근 30일)
이전 댓글 표시
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1609131/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1609136/image.png)
I don’t know what to do, please guys
댓글 수: 1
채택된 답변
Infinite_king
2024년 2월 6일
Hi 梅花,
It looks like a read/write permission error. Follow the below troubleshooting steps to possibly resolve the error.
- Make sure that you have read/write access permission to the location in which the source file is located.
- Make sure the PATH contains no spaces.
- Replace 'parfor' with 'for'. 'parfor' is not required when trying to generate CUDA code using GPU Coder.
Refer the following resources to learn more about GPU Coder
- GPU Coder - https://www.mathworks.com/products/gpu-coder.html
- Example explaining how to use GPU Coder - https://www.mathworks.com/help/gpucoder/gs/gpu-code-generation-the-mandelbrot-set.html
댓글 수: 2
Infinite_king
2024년 2월 21일
Can you share the source files ? i will try to reproduce the error and let you know any possible fixes.
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Get Started with GPU Coder에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!