Skip to content

Commit 299a4b4

Browse files
committed
fix(tests): mark Vector512 Round/Truncate tests as OpenBugs
ILKernelGenerator.Unary.Vector.cs doesn't implement Round/Truncate for Vector512, causing failures on AVX-512 capable CI runners: - "Could not find Truncate for Vector512" - "Could not find Round for Vector512" These 7 tests pass on machines without AVX-512 support but fail on GitHub Actions runners which have AVX-512. Marking as OpenBugs until Vector512 support is added. Affected tests: - Trunc_NoParams_Compiles - Round_NoParams_Compiles - Around_NoParams_Compiles - NDArray_Trunc_WorksWithLargeArray - Round_HalfToEven_BankersRounding - Round_NegativeHalf - Round_BankersRounding
1 parent 2b3aabf commit 299a4b4

4 files changed

Lines changed: 7 additions & 0 deletions

File tree

test/NumSharp.UnitTest/Backends/Kernels/EdgeCaseTests.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -633,6 +633,7 @@ public void Cosh_Infinity()
633633
#region Rounding Edge Cases (Banker's Rounding)
634634

635635
[TestMethod]
636+
[OpenBugs] // Vector512 SIMD: "Could not find Round for Vector512" on AVX-512 capable runners
636637
public void Round_HalfToEven_BankersRounding()
637638
{
638639
// NumPy uses banker's rounding: round half to even
@@ -649,6 +650,7 @@ public void Round_HalfToEven_BankersRounding()
649650
}
650651

651652
[TestMethod]
653+
[OpenBugs] // Vector512 SIMD: "Could not find Round for Vector512" on AVX-512 capable runners
652654
public void Round_NegativeHalf()
653655
{
654656
// NumPy: np.round(-0.5) = -0.0, np.round(-1.5) = -2.0

test/NumSharp.UnitTest/Backends/Kernels/UnaryOpTests.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -344,6 +344,7 @@ public void Sign_Int32()
344344
#region Rounding Operations - Banker's Rounding
345345

346346
[TestMethod]
347+
[OpenBugs] // Vector512 SIMD: "Could not find Round for Vector512" on AVX-512 capable runners
347348
public void Round_BankersRounding()
348349
{
349350
// NumPy uses banker's rounding (round half to even)

test/NumSharp.UnitTest/LongIndexing/LongIndexingSmokeTest.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -435,6 +435,7 @@ public void NDArray_Ceil_WorksWithLargeArray()
435435
}
436436

437437
[TestMethod]
438+
[OpenBugs] // Vector512 SIMD: "Could not find Truncate for Vector512" on AVX-512 capable runners
438439
public void NDArray_Trunc_WorksWithLargeArray()
439440
{
440441
var arr = np.full(new Shape(TestSize), 3.7, np.float64);

test/NumSharp.UnitTest/NpApiOverloads/NpApiOverloadTests_UnaryMath.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,7 @@ public void Floor_WithType_Compiles()
222222
#region Trunc - np.trunc (2 overloads)
223223

224224
[TestMethod]
225+
[OpenBugs] // Vector512 SIMD: "Could not find Truncate for Vector512" on AVX-512 capable runners
225226
public void Trunc_NoParams_Compiles()
226227
{
227228
var a = np.array(new double[] { 1.5, -2.3, 3.7 });
@@ -246,6 +247,7 @@ public void Trunc_WithType_Compiles()
246247
#region Round_ - np.round_ (4 overloads)
247248

248249
[TestMethod]
250+
[OpenBugs] // Vector512 SIMD: "Could not find Round for Vector512" on AVX-512 capable runners
249251
public void Round_NoParams_Compiles()
250252
{
251253
var a = np.array(new double[] { 1.5, -2.3, 3.7 });
@@ -290,6 +292,7 @@ public void Round_WithDecimalsAndType_Compiles()
290292
#region Around - np.around (4 overloads)
291293

292294
[TestMethod]
295+
[OpenBugs] // Vector512 SIMD: "Could not find Round for Vector512" on AVX-512 capable runners
293296
public void Around_NoParams_Compiles()
294297
{
295298
var a = np.array(new double[] { 1.5, -2.3, 3.7 });

0 commit comments

Comments
 (0)