Debug mex function with CUDA

1 view (last 30 days)
davide
davide on 7 Jul 2014
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

Answers (0)

Categories

Find more on MATLAB Report Generator in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!