cuda-gdb crashes mac on second cudaMalloc call
I am trying to use cuda-gdb, but it consistently hangs my entire machine which is a MacBook Pro runnning OS X 10.6.8. I am using the latest Cuda 4.0 tools. The weird thing is that it hangs on the second call to cudaMalloc. Below is a snippit from "Cuda By Example:"
#define N 10
....
int main( void ) {
int a[N], b[N], c[N];
int开发者_运维问答 *dev_a, *dev_b, *dev_c;
// allocate the memory on the GPU
HANDLE_ERROR( cudaMalloc( (void**)&dev_a, N * sizeof(int) ) );
HANDLE_ERROR( cudaMalloc( (void**)&dev_b, N * sizeof(int) ) );
...
Too bad. I really want to use cuda-gdb. Anyone successfully using cuda-gdb on a Mac?
I had success with it running on OS X but I ran it on >console mode. In the terminal it wasn't so good. Breakpoints freeze the display... Don't remember if it also froze on errors but I think so. In console no problems with the debugger.
精彩评论