wkcn commented on issue #12823: Is it necessary to wait CUDA stream when calling `WaitToRead` or `WaitToWrite`? URL: https://github.com/apache/incubator-mxnet/issues/12823#issuecomment-430092742 @eric-haibin-lin Thank you! I call `MXNDArrayWaitToWrite` firstly, then call `MXNDArrayGetData` to get the data pointer of a NDArray. Passing the data pointer into a CUDA kernel. In the CUDA kernel, there are some assignments through the data pointer. The CUDA kernel will run with NULL stream (The CUDA code is out of MXNet, so I couldn't obtain the CUDA stream from `RunContext` in MXNet). It works sometime, however it triggers the CUDA error `illegal memory access` randomly. I couldn't find the position which triggers the error. I will check it.
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
