Debug mex function with CUDA

I would like to debug my mex function but encounter some problems.
The operations that run for doing so are the following:
I open matlab with the command matlab-Ddebbuger (where debbuger is the name of the debugger of the language used in the mex function, in my case -Dcuda-gdb)
Use command dbmex dbstop dbstep or dbstep to advance in the process of debugging
When I dbstep at the time of the call to mex function I get the following error message:
entry point located at address 0xcc025a5c Add breakpoints at the debugger prompt and issue a "continue" to resume execution of MATLAB. Program received signal SIGUSR1, User defined signal 1. 0x00007ffff58acd84 in pthread_cond_wait @ @ GLIBC_2.3.2 () from / lib/x86_64-linux-gnu/libpthread.so.0
and then Matlab crash. Could someone tell me where am I wrong or where he is the problem?
Sorry for my English. Thank you,
Davide

답변 (0개)

카테고리

도움말 센터File Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기

질문:

2014년 7월 7일

Community Treasure Hunt

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

Start Hunting!

Translated by