-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Changes some of the CPU Math implemenation from our current version to use the new TensorPrimitives package. #6875
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
Merged
Conversation
This file contains hidden or 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
stephentoub
reviewed
Nov 2, 2023
stephentoub
reviewed
Nov 2, 2023
stephentoub
reviewed
Nov 2, 2023
stephentoub
reviewed
Nov 2, 2023
This was referenced Nov 8, 2023
.../Common/AveragedPerceptron/netcoreapp/AveragedPerceptron-CV-breast-cancer.PAVcalibration.txt
Show resolved
Hide resolved
test/BaselineOutput/Common/LdSvm/netcoreapp/LDSVM-def-CV-breast-cancer-out.txt
Show resolved
Hide resolved
test/BaselineOutput/Common/LdSvm/netcoreapp/LDSVM-nob-CV-breast-cancer-out.txt
Show resolved
Hide resolved
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #6875 +/- ##
==========================================
- Coverage 69.40% 68.80% -0.60%
==========================================
Files 1238 1240 +2
Lines 249462 249392 -70
Branches 25522 25493 -29
==========================================
- Hits 173139 171599 -1540
- Misses 69578 71196 +1618
+ Partials 6745 6597 -148
Flags with carried forward coverage won't be shown. Click here to find out more.
|
/azp run |
Azure Pipelines successfully started running 2 pipeline(s). |
JakeRadMSFT
approved these changes
Nov 14, 2023
JakeRadMSFT
reviewed
Nov 14, 2023
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
This changes some of the CPU Math implementation from our current version to use the new TensorPrimitives package.
Currently we are pointing to the rc2 version, but the following benchmarks have been done with a local copy of the GA version.
This also changes CPUMath to target .NET 8 instead of .NET 6. Did we want that for this version? Or should I change it back to 6 for this release? @ericstj @jeffhandley
The following is a summary of the methods in CPUMath, the old vs new benchmarks, and whether I updated it to use the new TensorPrimitives package. @tannergooding @stephentoub @jeffhandley @ericstj @luisquintanilla This is where we need to discuss. Is any performance hit worth taking? Or should anything that is slower be kept on the existing code?
NET 8
Framework
I think that even if we don't want to keep the TensorPrimitives code in the cases where its slower, at least for .NET Framework we should add a check and if the native code doesn't exist to run these accelerated, we should fallback to the TensorPrimitives approach. That would have to be added in though.
All this was done with AVX256.