When does illegal memory access was encountered error occur?

When does illegal memory access was encountered error occur?

My code is using the asynchronous transfer. (no use the pinned memory. allocation of host memory and global memory. and using streams)

I checked the host pointer address, device pointer address, and stream number but there is no invalid any values…

In this condition, why occur the illegal memory access was encountered error message?

It always occurs as a result of kernel code execution, not due to any sort of cudaMemcpy___ statement.

You are getting it returned from a cudaMemcpy____ statement because that is how asynchronous kernel errors are reported.

Run your code with cuda-memcheck.

Wow… I didn’t know that…!!!

illegal memory access error is a problem in kernel execution!

Thank you so much I will check the ‘cuda-memcheck’.

Thank you so much.
Problem is streams data transfer.

there are so much data. so steams are transfer and execution kernel.
when some kernels are execution, data is changing.

that occur illegal memory access problem.