zheng-da opened a new pull request #9862: Fix a race condition in converting 
data layouts.
URL: https://github.com/apache/incubator-mxnet/pull/9862
 
 
   ## Description ##
   There is a race condition in data layout conversion in the MKLDNN 
implementation. 
   Currently, when NDArray::data() is called, it converts data format (from the 
MKLDNN format to the default format) inside an NDArray. In the threaded 
execution engine, while an NDArray is being converted in a thread, the array 
can also be read by another thread. In this case, the other thread can read 
wrong data. A similar race condition may also exist in the MKLML integration, 
which sometimes generates the garbage results.
   
   Please see the details of the error in 
https://github.com/apache/incubator-mxnet/issues/9820
   
   ## Checklist ##
   ### Essentials ###
   - [ ] Passed code style checking (`make lint`)
   - [ ] Changes are complete (i.e. I finished coding on this PR)
   - [ ] All changes have test coverage:
   - Unit tests are added for small changes to verify correctness (e.g. adding 
a new operator)
   - Nightly tests are added for complicated/long-running ones (e.g. changing 
distributed kvstore)
   - Build tests will be added for build configuration changes (e.g. adding a 
new build option with NCCL)
   - [ ] Code is well-documented: 
   - For user-facing API changes, API doc string has been updated. 
   - For new C++ functions in header files, their functionalities and arguments 
are documented. 
   - For new examples, README.md is added to explain the what the example does, 
the source of the dataset, expected performance on test set and reference to 
the original paper if applicable
   - [ ] To the my best knowledge, examples are either not affected by this 
change, or have been fixed to be compatible with this change
   

----------------------------------------------------------------
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:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to