[IE CLDNN] Fix device release with static plugin instance (#1034)
authorEgor Churaev <egor.churaev@intel.com>
Tue, 23 Jun 2020 13:21:24 +0000 (06:21 -0700)
committerGitHub <noreply@github.com>
Tue, 23 Jun 2020 13:21:24 +0000 (16:21 +0300)
commitc89814266381e1ab56a07fc9da0ae80e2e709a57
tree05222c039de1100481600bcbb20b347342d54dfe
parent370f9e7fe1dc2a5860ee4c24d6ae0a93cb066fee
[IE CLDNN] Fix device release with static plugin instance (#1034)

The problem was in order of freeing memory. _context was removed before
_device and it looks like cl::Device in destructor tries to read some
info from cl::Context. And in this case we got this problem with
addressing because the memory already was freed.

For fixing the problem I changed the order of constructing members. And
based on principle: "First constructed, last destructed", the problem
was fixed.

JIRA: 29649
18 files changed:
inference-engine/tests/functional/plugin/gpu/remote_blob_tests/cldnn_remote_blob_tests.cpp
inference-engine/tests/functional/plugin/shared/src/execution_graph_tests/num_inputs_fusing_bin_conv.cpp
inference-engine/tests/functional/plugin/shared/src/execution_graph_tests/unique_node_names.cpp
inference-engine/tests/functional/plugin/shared/src/low_precision_transformations/convolution_transformation.cpp
inference-engine/tests/functional/plugin/shared/src/low_precision_transformations/permute_transformation.cpp
inference-engine/tests/functional/plugin/shared/src/low_precision_transformations/reshape_transformation.cpp
inference-engine/tests/functional/plugin/shared/src/single_layer_tests/equal.cpp
inference-engine/tests/functional/plugin/shared/src/single_layer_tests/greater.cpp
inference-engine/tests/functional/plugin/shared/src/single_layer_tests/select.cpp
inference-engine/tests/functional/plugin/shared/src/subgraph_tests/concat_qunatization.cpp
inference-engine/tests/functional/plugin/shared/src/subgraph_tests/reshape_permute_reshape.cpp
inference-engine/tests/ie_test_utils/functional_test_utils/behavior_test_utils.hpp
inference-engine/tests/ie_test_utils/functional_test_utils/layer_test_utils.cpp
inference-engine/tests_deprecated/functional/shared_tests/inference_engine_regression_tests/common_dyn_batch_regression.hpp
inference-engine/tests_deprecated/functional/shared_tests/io_blob_tests/cropResize_tests.hpp
inference-engine/tests_deprecated/functional/shared_tests/io_blob_tests/dims_tests.hpp
inference-engine/tests_deprecated/functional/shared_tests/io_blob_tests/layout_tests.hpp
inference-engine/thirdparty/clDNN/src/include/device_impl.h