-
Notifications
You must be signed in to change notification settings - Fork 5k
System.Numerics.Tensors.Net8.Tests does not appear to actually run against .NET 8 #101846
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
Comments
Tagging subscribers to this area: @dotnet/area-infrastructure-libraries |
Correct. None of the libraries tests in dotnet/runtime run against a previous version of .NETCoreApp: #54639 We only test the NetCoreAppCurrent and NetFrameworkCurrent/NetFrameworkMinimum TFMs via tests. That's a known gap that we never had resources to close. |
Ok, so this project is using the .NET 8 build of SNT (and thus exercising .NET 8 code paths in the assembly) but running on .NET 9? |
That's what it looks like to me. Hence the issue is that the The |
Failed in: runtime-coreclr libraries-jitstress 20240514.1 Failed tests:
Error message:
Stack trace:
|
@v-wenyuxu, that last failure doesn't appear to be related to this discussion. And while the one prior to that is related, it's not the same thing. Can you please open new issues for each if there's nothing else relevant open now? Thanks. |
Failed in: runtime-coreclr libraries-jitstress 20240516.4 Failed tests:
Error message:
Stack trace:
|
Failed in: runtime-coreclr libraries-jitstress 20240519.1 Failed tests:
Error message:
Stack trace:
|
Failed in: runtime-coreclr libraries-jitstress 20240520.1 Failed tests:
Error message:
Stack trace:
|
Tagging subscribers to this area: @dotnet/area-system-numerics-tensors |
Failed in: runtime-coreclr libraries-jitstress 20240521.1 Failed tests:
Error message:
Stack trace:
|
As per the title, the
System.Numerics.Tensors.Net8.Tests
do not appear to currently be running against .NET 8 as intended. Instead, they are compiled for .NET 8 and appear to be running on the .NET 9 runtime via the roll forward mechanism.This can be seen in one of the CI legs for #101800 where the
Net8.Tests
project has the following failure:The actual test is comparing the result of the
TensorPrimitives.ReciprocalSqrtEstimate
function against the in-boxfloat.ReciprocalSqrtEstimate
API. On .NET 8, thefloat
version will call intoSse.ReciprocalSqrtScalar
which treats subnormal values asflush-to-zero
and therefore does1 / Sqrt(-0.0f)
which returns-∞
, however the expected value isNaN
indicated that thefloat
version isntead called intoAvx512F.Reciprocal14SqrtScalar
which handles all non-zero negatives as properly negative and thus is doing1 / Sqrt(nonZeroNegative)
which returnsNaN
. This highlights that it is actually running against .NET 9 and not testing what we think it should be testing.The text was updated successfully, but these errors were encountered: