race condition fix of calling mutable_data inside a openmp region (#14921)
authorJongsoo Park <jongsoo@fb.com>
Sun, 9 Dec 2018 02:15:00 +0000 (18:15 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Sun, 9 Dec 2018 02:17:20 +0000 (18:17 -0800)
commita7b3197b2d4b63685629e903e95350eab143f976
tree1ad59f12e827d1bd221b3d2800e2417d6a3a9293
parente9db9595d23683443456b8f17e4d28c4519beaa4
race condition fix of calling mutable_data inside a openmp region (#14921)

Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/14921

Fix race condition introduced in D13188595 .
Let's reminder ourselves "never call mutable_data from an OpenMP region!!!"

Reviewed By: jianyuh

Differential Revision: D13387692

fbshipit-source-id: 6a3aeedeeda55a9ede660de8f1f44d4eee76ae2b
caffe2/quantization/server/conv_dnnlowp_acc16_op.cc
caffe2/quantization/server/conv_dnnlowp_acc16_op.h
caffe2/quantization/server/conv_dnnlowp_op.cc
caffe2/quantization/server/conv_dnnlowp_op.h