필터 지우기
필터 지우기

Debugging GPU Coder Functions

조회 수: 1 (최근 30일)
Bakir Al-Ameri
Bakir Al-Ameri 2024년 4월 12일
댓글: Justin Hontz 2024년 4월 12일
I have a few matlab functions that I am converting to run on GPU using matlab's GPU Coder app. The functions convert fine but when I convert one of my functions in the check for issues stage I notice that the function produces NaN values and results in the results not being correct. I am assuming when the code is converted to GPU it is misinterpriting something and dividing by zero esecially since I am dealing with imaginary numbers. I want to add breakpoints to see where this happens but it seems that you cannot do that once the function is converted to .mexw64. How can I debug this function and pinpoint the location of the error?
  댓글 수: 1
Justin Hontz
Justin Hontz 2024년 4월 12일
Do you encounter incorrect results when generating plain C/C++ code, or just GPU code? Can you reproduce the issue for any simple example, or only for this particular appliation?
Resources for debugging generated MEX code can be found below:

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Get Started with GPU Coder에 대해 자세히 알아보기

제품


릴리스

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by