-
Notifications
You must be signed in to change notification settings - Fork 74k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The performance is worse after turning on mkldnn #56697
Comments
No effect. |
In addition, after mkl is turned on, lots of new |
could you please provide us a reproducer? mkl tensorflow builds will usually require you to set up openmp variables |
@baoachun Moreover, after TF 2.9 (pip install tensorflow), oneDNN (mkldnn) is enabled by default, you don't need to build TF with --config=mkl for using mkldnn. In Official TF 2.9, you also don't need to configure openmp for oneDNN(mkldnn) because it use eigen threadpool instead. Could you try you workload on official TF 2.9? In the meantime, MklFusedMatMul indeed might have some slight performance drop, but the drop should be less than 10%. |
@baoachun |
Click to expand!
Issue Type
Performance
Source
source
Tensorflow Version
2.4.1
Custom Code
No
OS Platform and Distribution
centos7
Mobile device
No response
Python version
3.8.6
Bazel version
3.1.0
GCC/Compiler version
10.2
CUDA/cuDNN version
N
GPU model and memory
N
Current Behaviour?
Standalone code to reproduce the issue
Relevant log output
No response
The text was updated successfully, but these errors were encountered: