I’m new to cuda-gdb tool. I’m working on a remote server with 3 CUDA devices, 2 K80 and 1 GTX1060.
I tried to use cuda-gdb on a reliable code but when compiling with the -g -G flags the code returns the following GPU asserts:
GPUassert: an illegal memory access was encountered ****.cu 103 GPUassert: an illegal memory access was encountered ****.cu 104
Lines 103 and 104 contain the following instructions:
gpuErrchk( cudaMallocHost(&h_channel, sizeof(float) * f_size) ); gpuErrchk( cudaMemcpy(h_channel, d_channel, sizeof(float) * f_size, cudaMemcpyDeviceToHost) );
It worth noting that without the -g -G flags the code perfectly works.
Thank you in advance