cudaDeviceSynchronize always reports an error “ an illegal memory access was encountered”. Why and what I can do ? Thanks

Hi guys,

In my cuda C program,the function “cudaDeviceSynchronize” always reports an error “Error: fdm3d_tti_pua_habc_10_Order_cuda_mp_subfunctions.cu:2583, code: 700, reason: an illegal memory access was encountered”.

What’s wrong with it and what can I do ?

Thanks

Hi,
Please use the compute-sanitizer memcheck tool to check for out-of-bounds accesses.

Ok Thanks