How to debug CUDA code in MEX function
이전 댓글 표시
Hi Guys,
I am currently writing a Matlab GUI for doing MRI image reconstruction. This GUI uses a MEX function running as a calculation kernel, and I have managed to add some CUDA GPU functions in order to speed up the performance. I have no problem for compiling the MEX c source code within Matlab using mex or using Visual Studio 2008 itself. However, I do have a big problem for debugging my code. Especially I had a hard time trying to figure out a way to get into GPU function for debugging, for instance, checking variables, which is very important for me since I am a beginner for CUDA programming. I am wondering if anyone has any experience for debugging CUDA GPU code in MEX function. Any thought of how to do this will be highly appreciated. Thanks a lot!
답변 (2개)
JackOLantern
2013년 10월 8일
1 개 추천
Joss Knight
2013년 10월 11일
편집: Joss Knight
2013년 10월 11일
0 개 추천
카테고리
도움말 센터 및 File Exchange에서 GPU Computing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!