-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Use generic math in System.Numerics.Vectors (#60365) #60905
Conversation
Tagging subscribers to this area: @dotnet/area-system-numerics Issue DetailsI preserved Sqrt test logic for types that don't inherit IFloatingPoint. T.Sqrt and T.Abs usages fire the CS0119 error, however it doesn't prevent building or tests to pass.
|
We do not have the support for static virtual methods fully implemented yet. See #49904 and #54063. It is likely the reason why the Mono PR CI legs fails. There are going to be more failures in outer loop test runs. We can start using the generic math as implementation details of other features only once the static virtual methods are fully implemented. |
src/libraries/System.Numerics.Vectors/tests/GenericVectorTests.cs
Outdated
Show resolved
Hide resolved
I tried running this on an iOS device with FullAOT and we do indeed run into some generic math AOT limitation there because it tries to JIT, e.g. So looks like we can't merge this PR until that is fixed. |
Do we have any ETA on when the Mono and Crossgen2 issues will get looked at? This is going to impact this PR as well as the follow up work I need to do here for .NET 7 and making the feature non-preview. |
@lambdageek any idea? |
Merged with Edit: same with #54063 (comment) from @trylek |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Merged again to pick up the CI fixes for the helix failures. |
/azp run runtime-extra-platforms |
Azure Pipelines successfully started running 1 pipeline(s). |
@lambdageek, looks to be some tvOS failures on the Mono side that will prevent this from merging. Could you please investigate as this is blocking our ability to work on and merge Generic Math related changes? |
tvOS failures look to be the same as #65002 |
@tannergooding merge/rebase with main to pick up #65126 which should address the tvOS failures |
/azp run runtime-extra-platforms |
Azure Pipelines successfully started running 1 pipeline(s). |
Merging. As with #63546, it looks like the blocking tvOS issue is gone and everything else is passing/looks good. |
I preserved Sqrt test logic for types that don't inherit IFloatingPoint. T.Sqrt and T.Abs usages fire the CS0119 error, however it doesn't prevent building or tests to pass.
Fixes #60365