anirudh2290 commented on issue #16434: WaitForVar in dependency engine not 
thread safe
URL: 
https://github.com/apache/incubator-mxnet/issues/16434#issuecomment-544023556
 
 
   > I noticed that this happens only when we call NDArray constructor in cpp 
pacakge and WaitToRead in main thread. If there is only waitall and not wait to 
read it works fine. Need to check if this is an issue with frontend CPP package.
   
   To verify this theory, I added another example which uses the backend 
NDArray data structure instead of CPP NDarray data structure and calls 
WaitToRead on it. This works fine 
(https://github.com/anirudh2290/mxnet/blob/multithreaded_inference_poc/cpp-package/example/multithreading_engine_wait_to_read2.cpp).
 This shows that the issue is with the NDArray data structure in CPP frontend. 
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to 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