Skip to content

Deploying models with multi-thread will raise MKLDNN error #34554

Closed
@OliverLPH

Description

@OliverLPH

System information
-PaddlePaddle version: develop(393a0b1) or release/2.1
-CPU: MKLDNN v2.2.1
-GPU: None
-OS Platform: ubuntu1604
-Python version: None
-Cmake orders
-C++version.txt
-API information
Note: You can get most of the information by running summary_env.py.
To Reproduce
reproduce procedure is same as #31992

cmake commands

cmake .. -DWITH_FLUID_ONLY=ON -DWITH_GPU=OFF -DWITH_TESTING=OFF -DCMAKE_BUILD_TYPE=Release -DON_INFER=ON -DWITH_INFERENCE_API_TEST=OFF -DWITH_MKL=ON -DWITH_MKLDNN=ON -DWITH_AVX=ON -DWITH_DISTRIBUTE=OFF -DWITH_STRIP=ON -DWITH_PYTHON=OFF

Describe your current behavior

  • The first test
    Run ./build/model_test --single_thread=true --single_instance=false --test_groups="1", it does not case error.

  • The second test
    Run ./build/model_test --single_thread=true --single_instance=true --test_groups="1", it does not case error.

  • The third test
    Run ./build/model_test --single_thread=false --single_instance=true --test_groups="1", it will raise an error as followed
    image

this error might caused by https://github.com/PaddlePaddle/Paddle/pull/33549/files#diff-3363ff47a1f22a111386eeff77a8572f6618d7d0602ffe71e92ecf8682faa84eR2343

Code to reproduce the issue
Other info / logs

Metadata

Metadata

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions