-
Notifications
You must be signed in to change notification settings - Fork 825
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
Add oneDNN binary op #7319
Merged
Merged
Add oneDNN binary op #7319
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
liujuncheng
approved these changes
Feb 13, 2022
Speed stats:
|
…c/oneflow into dev_add_onednn_binary
Code got formatted by CI. Please request CI again if you still want to have this PR merged. If the PR is from a forked repo, please download the patch files from the GitHub Actions web page and apply them locally. |
Speed stats:
|
guo-ran
approved these changes
Feb 14, 2022
Speed stats:
|
marigoold
pushed a commit
that referenced
this pull request
Mar 15, 2022
* add * merge master * Solve the thread pool problem * add device local logical cores * fix error * Delete threadpool * fix include file * fix clang -lopm * fix clang error omp.h * fix omp cmake * omp.h * fix #ifdef * test clang13 -lomp * test -fopenmp * add fopenmp * rename OMP_FLAGS * static analysis libopm-12-dev * add tbb * refien * refine * refine * refine * revert * add tbb * success add tbb * tbb onednn ok * fix ninja onednn * component * install tbb include file * updata tbb master zip * fix md5 * refine * refjine * fix * cmake option * modified clang 10 OMP * add line * fix add OMP flags * fix tbb * fix * fix * fix' * fix * fix * fix OF_RUNTIME_TBB * fix * modified binary op * fix * fix * fux error * fix * fix * fix * refine * refine * fix * add seq * refine * fix * fix * fix * add set_num_threads * fix * fi * fix error * fix * refine * refine * fix * refine * fix * refine * refine * refine * refine * refine * fix * refine * fix * fix * fix * fix * fix * refine * refine * refine * refine * refine * refine * refine * fix * fix * fix * refine * refine * auto format by CI * fix * rename mm_, dynamic_cast * auto format by CI * fix MAKE_NEW_ONEDNN_BROADCAST_ELEMENTWISE_BINARY_COMPARASION_AND_LOGICAL_ENTRY * fix 0-dim tensor * fix onednn format tag * auto format by CI Co-authored-by: jackalcooper <jackalcooper@gmail.com> Co-authored-by: oneflow-ci-bot <69100618+oneflow-ci-bot@users.noreply.github.com> Co-authored-by: oneflow-ci-bot <ci-bot@oneflow.org>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
此PR 通过使用oneDNN的Binary CPU Kernel替换了现有一部分Binary CPU kernel。
替换的binary CPU Kernel 有:
add
,sub
,mul
,div
,max
,min
,Equal
,NotEqual
,LessThan
,LessEqual
,GreaterThan
,GreaterEqual
,实际测试结果: