chsin commented on issue #11458: Multithreading error.
URL: 
https://github.com/apache/incubator-mxnet/issues/11458#issuecomment-408255768
 
 
   More specifically, I'm running a server like the @nihilityworld and so far 
I've traced that the hanging is because:
   
   - it never returns from `nd.SyncCopyToCPU(data, size);` in `MXPredGetOutput` 
https://github.com/apache/incubator-mxnet/blob/v1.2.0/src/c_api/c_predict_api.cc#L398.
   - because it never returned from `this->WaitToRead();` in 
`NDArray::SyncCopyToCPU`
   
https://github.com/apache/incubator-mxnet/blob/v1.2.0/src/ndarray/ndarray.cc#L1975
   - because it never returned from `Engine::Get()->WaitForVar(ptr_->var);` in 
`inline void WaitToRead()` 
   
https://github.com/apache/incubator-mxnet/blob/v1.2.0/include/mxnet/ndarray.h#L307
   - because it never returned from `finished_cv_.wait(lock, [this, &done]() { 
return done.load() || kill_.load();` in `ThreadedEngine::WaitForVar`
   
https://github.com/apache/incubator-mxnet/blob/v1.2.0/src/engine/threaded_engine.cc#L395

----------------------------------------------------------------
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

Reply via email to