Help please CUDA Error 77: an illegal memory access was encountered

i have made some paralel cuda Kmeans and it compiled
when i call the main file without data it succes ./cuda_main
when test it with data i send ‘CUDA Error 77: an illegal memory access was encountered’
can some tell me what is wrong?

“can some tell me what is wrong?”

illegal memory access - your code managed to access memory illegally

can you run the code in the debugger?