diff --git a/Src/ILGPU.Algorithms.Tests.CPU/ILGPU.Algorithms.Tests.CPU.csproj b/Src/ILGPU.Algorithms.Tests.CPU/ILGPU.Algorithms.Tests.CPU.csproj index d9c0bf88b..eab375e17 100644 --- a/Src/ILGPU.Algorithms.Tests.CPU/ILGPU.Algorithms.Tests.CPU.csproj +++ b/Src/ILGPU.Algorithms.Tests.CPU/ILGPU.Algorithms.Tests.CPU.csproj @@ -25,8 +25,8 @@ - - + + all runtime; build; native; contentfiles; analyzers; buildtransitive diff --git a/Src/ILGPU.Algorithms.Tests.Cuda/ILGPU.Algorithms.Tests.Cuda.csproj b/Src/ILGPU.Algorithms.Tests.Cuda/ILGPU.Algorithms.Tests.Cuda.csproj index 5a7d95d17..6a96cf4a5 100644 --- a/Src/ILGPU.Algorithms.Tests.Cuda/ILGPU.Algorithms.Tests.Cuda.csproj +++ b/Src/ILGPU.Algorithms.Tests.Cuda/ILGPU.Algorithms.Tests.Cuda.csproj @@ -25,8 +25,8 @@ - - + + all runtime; build; native; contentfiles; analyzers; buildtransitive diff --git a/Src/ILGPU.Algorithms.Tests.OpenCL/ILGPU.Algorithms.Tests.OpenCL.csproj b/Src/ILGPU.Algorithms.Tests.OpenCL/ILGPU.Algorithms.Tests.OpenCL.csproj index d8a774c4e..8edc05f65 100644 --- a/Src/ILGPU.Algorithms.Tests.OpenCL/ILGPU.Algorithms.Tests.OpenCL.csproj +++ b/Src/ILGPU.Algorithms.Tests.OpenCL/ILGPU.Algorithms.Tests.OpenCL.csproj @@ -25,8 +25,8 @@ - - + + all runtime; build; native; contentfiles; analyzers; buildtransitive diff --git a/Src/ILGPU.Algorithms.Tests/ArrayExtensionTests.tt b/Src/ILGPU.Algorithms.Tests/ArrayExtensionTests.tt index 6dde63ab5..2a9fede72 100644 --- a/Src/ILGPU.Algorithms.Tests/ArrayExtensionTests.tt +++ b/Src/ILGPU.Algorithms.Tests/ArrayExtensionTests.tt @@ -1,6 +1,6 @@ // --------------------------------------------------------------------------------------- // ILGPU Algorithms -// Copyright (c) 2021 ILGPU Project +// Copyright (c) 2021-2024 ILGPU Project // www.ilgpu.net // // File: ArrayExtensionTests.tt/ArrayExtensionTests.cs @@ -31,8 +31,8 @@ namespace ILGPU.Algorithms.Tests #region MemberData - public static TheoryData TestDataLength1D => - new TheoryData + public static TheoryData TestDataLength1D => + new TheoryData { <# // TODO: Ignoring Half type, otherwise XUnit complains about an @@ -50,8 +50,8 @@ namespace ILGPU.Algorithms.Tests #> }; - public static TheoryData TestDataLength2D => - new TheoryData + public static TheoryData TestDataLength2D => + new TheoryData { <# foreach (var type in types) { @@ -64,8 +64,8 @@ namespace ILGPU.Algorithms.Tests #> }; - public static TheoryData TestDataLength3D => - new TheoryData + public static TheoryData TestDataLength3D => + new TheoryData { <# foreach (var type in types) { diff --git a/Src/ILGPU.Algorithms.Tests/GroupExtensionTests.tt b/Src/ILGPU.Algorithms.Tests/GroupExtensionTests.tt index e986b6a01..02dbde9fb 100644 --- a/Src/ILGPU.Algorithms.Tests/GroupExtensionTests.tt +++ b/Src/ILGPU.Algorithms.Tests/GroupExtensionTests.tt @@ -1,6 +1,6 @@ // --------------------------------------------------------------------------------------- // ILGPU Algorithms -// Copyright (c) 2021 ILGPU Project +// Copyright (c) 2021-2024 ILGPU Project // www.ilgpu.net // // File: GroupExtensionTests.tt/GroupExtensionTests.cs @@ -62,9 +62,9 @@ namespace ILGPU.Algorithms.Tests <# foreach (var srOp in ScanReduceOperations) { #> - public static TheoryData< object, object, object, object, object, object> + public static TheoryData< object, object, object, object, object, int> <#= srOp.Name #>TestData => - new TheoryData< object, object, object, object, object, object> + new TheoryData< object, object, object, object, object, int> { // Type, ScanReduceOperation, Sequencer, Start of Sequence, // StepSize of Sequence, Fraction of Size diff --git a/Src/ILGPU.Algorithms.Tests/ILGPU.Algorithms.Tests.csproj b/Src/ILGPU.Algorithms.Tests/ILGPU.Algorithms.Tests.csproj index 8f308f573..e822e9597 100644 --- a/Src/ILGPU.Algorithms.Tests/ILGPU.Algorithms.Tests.csproj +++ b/Src/ILGPU.Algorithms.Tests/ILGPU.Algorithms.Tests.csproj @@ -30,7 +30,7 @@ - + diff --git a/Src/ILGPU.Algorithms.Tests/InitializeTests.cs b/Src/ILGPU.Algorithms.Tests/InitializeTests.cs index 917345442..b8a4e2374 100644 --- a/Src/ILGPU.Algorithms.Tests/InitializeTests.cs +++ b/Src/ILGPU.Algorithms.Tests/InitializeTests.cs @@ -1,6 +1,6 @@ // --------------------------------------------------------------------------------------- // ILGPU Algorithms -// Copyright (c) 2021 ILGPU Project +// Copyright (c) 2021-2024 ILGPU Project // www.ilgpu.net // // File: InitializeTests.cs @@ -24,8 +24,8 @@ protected InitializeTests(ITestOutputHelper output, TestContext testContext) #region MemberData - public static TheoryData SimpleTestData => - new TheoryData + public static TheoryData SimpleTestData => + new TheoryData { { sbyte.MinValue, 1 }, { byte.MaxValue, 1 }, diff --git a/Src/ILGPU.Algorithms.Tests/MatrixTests.cs b/Src/ILGPU.Algorithms.Tests/MatrixTests.cs index 0571e1a3d..32fe94866 100644 --- a/Src/ILGPU.Algorithms.Tests/MatrixTests.cs +++ b/Src/ILGPU.Algorithms.Tests/MatrixTests.cs @@ -1,6 +1,6 @@ // --------------------------------------------------------------------------------------- // ILGPU Algorithms -// Copyright (c) 2023 ILGPU Project +// Copyright (c) 2023-2024 ILGPU Project // www.ilgpu.net // // File: MatrixTests.cs @@ -29,8 +29,8 @@ protected MatrixTests(ITestOutputHelper output, TestContext testContext) #region MemberData - public static TheoryData DimensionsData => - new TheoryData + public static TheoryData DimensionsData => + new TheoryData { { 39, 42, 17, 2918291, 0.8f }, { 39, 42, 17, 2918291, 0.5f }, diff --git a/Src/ILGPU.Algorithms.Tests/OptimizationTests.cs b/Src/ILGPU.Algorithms.Tests/OptimizationTests.cs index 2af561b30..0dcdca0d1 100644 --- a/Src/ILGPU.Algorithms.Tests/OptimizationTests.cs +++ b/Src/ILGPU.Algorithms.Tests/OptimizationTests.cs @@ -1,6 +1,6 @@ // --------------------------------------------------------------------------------------- // ILGPU Algorithms -// Copyright (c) 2023 ILGPU Project +// Copyright (c) 2023-2024 ILGPU Project // www.ilgpu.net // // File: OptimizationTests.cs @@ -138,7 +138,7 @@ public void ParticleSwarmOptimization< TElementType, TEvalType, TRandom>( - OptimizerConfig optimizerConfig, + object optimizerConfigObj, TFunc function, TElementType lower, TElementType upper, @@ -154,11 +154,13 @@ public void ParticleSwarmOptimization< where TFunc : struct, IOptimizationFunction { + var optimizerConfig = (OptimizerConfig)optimizerConfigObj; + // Skip larger problems on the CPU Skip.If( Accelerator.AcceleratorType == AcceleratorType.CPU && optimizerConfig.NumIterations * optimizerConfig.NumParticles > 2048); - + const int Seed = 24404699; using var pso = new PSO< TNumericType, diff --git a/Src/ILGPU.Algorithms.Tests/RadixSortExtensionTests.tt b/Src/ILGPU.Algorithms.Tests/RadixSortExtensionTests.tt index cbb39ceb6..c7266c827 100644 --- a/Src/ILGPU.Algorithms.Tests/RadixSortExtensionTests.tt +++ b/Src/ILGPU.Algorithms.Tests/RadixSortExtensionTests.tt @@ -1,6 +1,6 @@ // --------------------------------------------------------------------------------------- // ILGPU Algorithms -// Copyright (c) 2021-2023 ILGPU Project +// Copyright (c) 2021-2024 ILGPU Project // www.ilgpu.net // // File: RadixSortExtensionTests.tt/RadixSortExtensionTests.cs @@ -34,9 +34,9 @@ namespace ILGPU.Algorithms.Tests #region MemberData - public static TheoryData + public static TheoryData AscendingTestData => - new TheoryData + new TheoryData { // Type, RadixSortOperation, Sequencer, Start of Sequencer, // StepSize of Sequencer, BufferLength @@ -53,9 +53,9 @@ namespace ILGPU.Algorithms.Tests #> }; - public static TheoryData + public static TheoryData AscendingPairsTestData => - new TheoryData + new TheoryData { // Type, RadixSortOperation, Sequencer, Start of Sequencer, BufferLength <# @@ -70,9 +70,9 @@ namespace ILGPU.Algorithms.Tests #> }; - public static TheoryData + public static TheoryData DescendingTestData => - new TheoryData + new TheoryData { // Type, RadixSortOperation, Sequencer, Start of Sequencer, // StepSize of Sequencer, BufferLength @@ -88,9 +88,9 @@ namespace ILGPU.Algorithms.Tests #> }; - public static TheoryData + public static TheoryData DescendingPairsTestData => - new TheoryData + new TheoryData { // Type, RadixSortOperation, Sequencer, BufferLength <# @@ -105,9 +105,9 @@ namespace ILGPU.Algorithms.Tests #> }; - public static TheoryData + public static TheoryData ConstantTestData => - new TheoryData + new TheoryData { // Type, RadixSortOperation, Sequencer, Start of Sequencer, // StepSize of Sequencer, BufferLength @@ -434,10 +434,10 @@ namespace ILGPU.Algorithms.Tests partial class WarpExtensionTests { - public static TheoryData + public static TheoryData AscendingTestData => RadixSortExtensionTests.AscendingTestData; - public static TheoryData + public static TheoryData DescendingTestData => RadixSortExtensionTests.DescendingTestData; internal static void WarpWideRadixSort( @@ -561,10 +561,10 @@ namespace ILGPU.Algorithms.Tests partial class GroupExtensionTests { - public static TheoryData + public static TheoryData AscendingTestData => RadixSortExtensionTests.AscendingTestData; - public static TheoryData + public static TheoryData DescendingTestData => RadixSortExtensionTests.DescendingTestData; internal static void GroupWideRadixSort( diff --git a/Src/ILGPU.Algorithms.Tests/RandomTests.tt b/Src/ILGPU.Algorithms.Tests/RandomTests.tt index 2edef84bc..b8d78a868 100644 --- a/Src/ILGPU.Algorithms.Tests/RandomTests.tt +++ b/Src/ILGPU.Algorithms.Tests/RandomTests.tt @@ -1,6 +1,6 @@ // --------------------------------------------------------------------------------------- // ILGPU Algorithms -// Copyright (c) 2021 ILGPU Project +// Copyright (c) 2021-2024 ILGPU Project // www.ilgpu.net // // File: RandomTests.tt/RandomTests.cs @@ -49,8 +49,8 @@ namespace ILGPU.Algorithms.Tests : base(output, testContext) { } - public static TheoryData RandomTestData => - new TheoryData + public static TheoryData RandomTestData => + new TheoryData { <# foreach (var rng in rngs) { #> { default(<#= rng #>), 1024, 16 }, diff --git a/Src/ILGPU.Algorithms.Tests/ReductionExtensionTests.tt b/Src/ILGPU.Algorithms.Tests/ReductionExtensionTests.tt index 4164214ac..698403c94 100644 --- a/Src/ILGPU.Algorithms.Tests/ReductionExtensionTests.tt +++ b/Src/ILGPU.Algorithms.Tests/ReductionExtensionTests.tt @@ -1,6 +1,6 @@ // --------------------------------------------------------------------------------------- // ILGPU Algorithms -// Copyright (c) 2021 ILGPU Project +// Copyright (c) 2021-2024 ILGPU Project // www.ilgpu.net // // File: ReductionExtensionTests.tt/ReductionExtensionTests.cs @@ -38,9 +38,9 @@ namespace ILGPU.Algorithms.Tests #> #region MemberData - public static TheoryData + public static TheoryData AscendingTestData => - new TheoryData + new TheoryData { // Type, IScanReduceOperation, Sequencer, Start of Sequencer, // StepSize of Sequencer, BufferLength @@ -59,9 +59,9 @@ namespace ILGPU.Algorithms.Tests #> }; - public static TheoryData + public static TheoryData DescendingTestData => - new TheoryData + new TheoryData { <# foreach (var type in types) { @@ -78,9 +78,9 @@ namespace ILGPU.Algorithms.Tests #> }; - public static TheoryData + public static TheoryData ConstantTestData => - new TheoryData + new TheoryData { <# foreach (var type in types) { diff --git a/Src/ILGPU.Algorithms.Tests/ReorderExtensionTests.tt b/Src/ILGPU.Algorithms.Tests/ReorderExtensionTests.tt index 730353a49..d5e3b4a60 100644 --- a/Src/ILGPU.Algorithms.Tests/ReorderExtensionTests.tt +++ b/Src/ILGPU.Algorithms.Tests/ReorderExtensionTests.tt @@ -1,6 +1,6 @@ // --------------------------------------------------------------------------------------- // ILGPU Algorithms -// Copyright (c) 2021 ILGPU Project +// Copyright (c) 2021-2024 ILGPU Project // www.ilgpu.net // // File: ReorderExtensionTests.tt/ReorderExtensionTests.cs @@ -36,9 +36,9 @@ namespace ILGPU.Algorithms.Tests #region MemberData - public static TheoryData + public static TheoryData ReorderTestData => - new TheoryData + new TheoryData { // Type, ITransformer, Sequencer, Start of Sequencer, // StepSize of Sequencer, BufferLength @@ -65,9 +65,9 @@ namespace ILGPU.Algorithms.Tests #> }; - public static TheoryData + public static TheoryData ReorderTransformSourceTargetTestData => - new TheoryData + new TheoryData { // Type1, Type2, ITransformer, Sequencer, Start of Sequencer, // StepSize of Sequencer, BufferLength diff --git a/Src/ILGPU.Algorithms.Tests/ScanExtensionTests.tt b/Src/ILGPU.Algorithms.Tests/ScanExtensionTests.tt index b6f1daa22..93febd02c 100644 --- a/Src/ILGPU.Algorithms.Tests/ScanExtensionTests.tt +++ b/Src/ILGPU.Algorithms.Tests/ScanExtensionTests.tt @@ -1,6 +1,6 @@ // --------------------------------------------------------------------------------------- // ILGPU Algorithms -// Copyright (c) 2021 ILGPU Project +// Copyright (c) 2021-2024 ILGPU Project // www.ilgpu.net // // File: ScanExtensionTests.tt/ScanExtensionTests.cs @@ -40,9 +40,9 @@ namespace ILGPU.Algorithms.Tests <# foreach (var srOp in ScanReduceOperations) { #> - public static TheoryData + public static TheoryData Ascending<#= srOp.Name #>TestData => - new TheoryData + new TheoryData { // Type, IScanReduceOperation, Sequencer, Start of Sequencer, // StepSize of Sequencer, BufferSize @@ -59,9 +59,9 @@ namespace ILGPU.Algorithms.Tests #> }; - public static TheoryData + public static TheoryData Descending<#= srOp.Name #>TestData => - new TheoryData + new TheoryData { // Type, IScanReduceOperation, Sequencer, Start of Sequencer, // StepSize of Sequencer, BufferSize @@ -78,9 +78,9 @@ namespace ILGPU.Algorithms.Tests #> }; - public static TheoryData + public static TheoryData Constant<#= srOp.Name #>TestData => - new TheoryData + new TheoryData { // Type, IScanReduceOperation, Sequencer, Start of Sequencer, // StepSize of Sequencer, BufferSize diff --git a/Src/ILGPU.Algorithms.Tests/SequencerTests.tt b/Src/ILGPU.Algorithms.Tests/SequencerTests.tt index 3f0f84f3e..63dff6722 100644 --- a/Src/ILGPU.Algorithms.Tests/SequencerTests.tt +++ b/Src/ILGPU.Algorithms.Tests/SequencerTests.tt @@ -1,6 +1,6 @@ // --------------------------------------------------------------------------------------- // ILGPU Algorithms -// Copyright (c) 2021 ILGPU Project +// Copyright (c) 2021-2024 ILGPU Project // www.ilgpu.net // // File: SequencerTests.tt/SequencerTests.cs @@ -38,8 +38,8 @@ namespace ILGPU.Algorithms.Tests #region MemberData - public static TheoryData TestDataLength => - new TheoryData + public static TheoryData TestDataLength => + new TheoryData { <# foreach (var size in ArraySizes) { diff --git a/Src/ILGPU.Algorithms.Tests/TransformerExtensionTests.tt b/Src/ILGPU.Algorithms.Tests/TransformerExtensionTests.tt index 7fd973892..cfafa5a48 100644 --- a/Src/ILGPU.Algorithms.Tests/TransformerExtensionTests.tt +++ b/Src/ILGPU.Algorithms.Tests/TransformerExtensionTests.tt @@ -1,6 +1,6 @@ // --------------------------------------------------------------------------------------- // ILGPU Algorithms -// Copyright (c) 2021 ILGPU Project +// Copyright (c) 2021-2024 ILGPU Project // www.ilgpu.net // // File: TransformerExtensionTests.tt/TransformerExtensionTests.cs @@ -33,8 +33,8 @@ namespace ILGPU.Algorithms.Tests #region MemberData - public static TheoryData TestDataLength => - new TheoryData + public static TheoryData TestDataLength => + new TheoryData { <# foreach (var size in ArraySizes) { @@ -45,8 +45,8 @@ namespace ILGPU.Algorithms.Tests #> }; - public static TheoryData CastFromIndex1TestData => - new TheoryData + public static TheoryData CastFromIndex1TestData => + new TheoryData { <# var types = AtomicNumericTypes; diff --git a/Src/ILGPU.Algorithms.Tests/VectorTests.cs b/Src/ILGPU.Algorithms.Tests/VectorTests.cs index b2cc42cf3..5639f3816 100644 --- a/Src/ILGPU.Algorithms.Tests/VectorTests.cs +++ b/Src/ILGPU.Algorithms.Tests/VectorTests.cs @@ -1,6 +1,6 @@ // --------------------------------------------------------------------------------------- // ILGPU Algorithms -// Copyright (c) 2021-2023 ILGPU Project +// Copyright (c) 2021-2024 ILGPU Project // www.ilgpu.net // // File: VectorTests.cs @@ -29,8 +29,8 @@ protected VectorTests(ITestOutputHelper output, TestContext testContext) #region MemberData - public static TheoryData Vector2dTestData => - new TheoryData + public static TheoryData Vector2dTestData => + new TheoryData { { 1, default(Vector2Zero) }, { 32, default(Vector2One) }, @@ -38,8 +38,8 @@ protected VectorTests(ITestOutputHelper output, TestContext testContext) { 128, default(Vector2UnitY) }, }; - public static TheoryData Vector3dTestData => - new TheoryData + public static TheoryData Vector3dTestData => + new TheoryData { { 1, default(Vector3Zero) }, { 32, default(Vector3One) }, @@ -48,8 +48,8 @@ protected VectorTests(ITestOutputHelper output, TestContext testContext) { 65, default(Vector3UnitZ) }, }; - public static TheoryData Vector4dTestData => - new TheoryData + public static TheoryData Vector4dTestData => + new TheoryData { { 1, default(Vector4Zero) }, { 32, default(Vector4One) }, diff --git a/Src/ILGPU.Algorithms.Tests/WarpExtensionTests.tt b/Src/ILGPU.Algorithms.Tests/WarpExtensionTests.tt index e17b13aa5..3bd405dbb 100644 --- a/Src/ILGPU.Algorithms.Tests/WarpExtensionTests.tt +++ b/Src/ILGPU.Algorithms.Tests/WarpExtensionTests.tt @@ -1,6 +1,6 @@ // --------------------------------------------------------------------------------------- // ILGPU Algorithms -// Copyright (c) 2021-2022 ILGPU Project +// Copyright (c) 2021-2024 ILGPU Project // www.ilgpu.net // // File: WarpExtensionTests.tt/WarpExtensionTests.cs @@ -63,9 +63,9 @@ namespace ILGPU.Algorithms.Tests <# foreach (var srOp in ScanReduceOperations) { #> - public static TheoryData + public static TheoryData <#= srOp.Name #>TestData => - new TheoryData + new TheoryData { // Type, ScanReduceOperation, Sequencer, Start of Sequence, // StepSize of Sequence, Fraction of Size diff --git a/Src/ILGPU.Analyzers.Tests/ILGPU.Analyzers.Tests.csproj b/Src/ILGPU.Analyzers.Tests/ILGPU.Analyzers.Tests.csproj index d0b60c21b..67193d893 100644 --- a/Src/ILGPU.Analyzers.Tests/ILGPU.Analyzers.Tests.csproj +++ b/Src/ILGPU.Analyzers.Tests/ILGPU.Analyzers.Tests.csproj @@ -6,17 +6,16 @@ - all runtime; build; native; contentfiles; analyzers; buildtransitive - - - - - - + + + + + + all runtime; build; native; contentfiles; analyzers; buildtransitive diff --git a/Src/ILGPU.Analyzers.Tests/InterleaveFields.cs b/Src/ILGPU.Analyzers.Tests/InterleaveFields.cs index ca0b5705b..5cc1b135a 100644 --- a/Src/ILGPU.Analyzers.Tests/InterleaveFields.cs +++ b/Src/ILGPU.Analyzers.Tests/InterleaveFields.cs @@ -18,7 +18,6 @@ namespace ILGPU.Analyzers.Tests { - [UsesVerify] public class InterleaveFields { [Fact] diff --git a/Src/ILGPU.Analyzers.Tests/Snapshots/InterleaveFields.NestedNamespaceClassNotPartial.verified.txt b/Src/ILGPU.Analyzers.Tests/Snapshots/InterleaveFields.NestedNamespaceClassNotPartial.verified.txt index f20b4d029..028848c74 100644 --- a/Src/ILGPU.Analyzers.Tests/Snapshots/InterleaveFields.NestedNamespaceClassNotPartial.verified.txt +++ b/Src/ILGPU.Analyzers.Tests/Snapshots/InterleaveFields.NestedNamespaceClassNotPartial.verified.txt @@ -6,8 +6,6 @@ Severity: Error, WarningLevel: 0, Location: : (5,10)-(5,15), - Description: , - HelpLink: , MessageFormat: The type '{0}' containing '{1}' must be partial, Message: The type 'Gamma' containing 'MyPoint4' must be partial, Category: Usage diff --git a/Src/ILGPU.Analyzers.Tests/Snapshots/InterleaveFields.SimpleNotPartial.verified.txt b/Src/ILGPU.Analyzers.Tests/Snapshots/InterleaveFields.SimpleNotPartial.verified.txt index 4c91618e0..07b715eef 100644 --- a/Src/ILGPU.Analyzers.Tests/Snapshots/InterleaveFields.SimpleNotPartial.verified.txt +++ b/Src/ILGPU.Analyzers.Tests/Snapshots/InterleaveFields.SimpleNotPartial.verified.txt @@ -6,8 +6,6 @@ Severity: Error, WarningLevel: 0, Location: : (10,7)-(10,15), - Description: , - HelpLink: , MessageFormat: The struct '{0}' must be partial, Message: The struct 'MyPoint4' must be partial, Category: Usage diff --git a/Src/ILGPU.Analyzers/ILGPU.Analyzers.csproj b/Src/ILGPU.Analyzers/ILGPU.Analyzers.csproj index 41a525958..8efc56628 100644 --- a/Src/ILGPU.Analyzers/ILGPU.Analyzers.csproj +++ b/Src/ILGPU.Analyzers/ILGPU.Analyzers.csproj @@ -26,7 +26,7 @@ --> - + diff --git a/Src/ILGPU.Tests.CPU/ILGPU.Tests.CPU.csproj b/Src/ILGPU.Tests.CPU/ILGPU.Tests.CPU.csproj index de3775035..384056531 100644 --- a/Src/ILGPU.Tests.CPU/ILGPU.Tests.CPU.csproj +++ b/Src/ILGPU.Tests.CPU/ILGPU.Tests.CPU.csproj @@ -17,8 +17,8 @@ - - + + all runtime; build; native; contentfiles; analyzers; buildtransitive diff --git a/Src/ILGPU.Tests.Cuda/ILGPU.Tests.Cuda.csproj b/Src/ILGPU.Tests.Cuda/ILGPU.Tests.Cuda.csproj index e8bb9469d..cd6c14ab3 100644 --- a/Src/ILGPU.Tests.Cuda/ILGPU.Tests.Cuda.csproj +++ b/Src/ILGPU.Tests.Cuda/ILGPU.Tests.Cuda.csproj @@ -16,8 +16,8 @@ - - + + all runtime; build; native; contentfiles; analyzers; buildtransitive diff --git a/Src/ILGPU.Tests.OpenCL/ILGPU.Tests.OpenCL.csproj b/Src/ILGPU.Tests.OpenCL/ILGPU.Tests.OpenCL.csproj index e8bb9469d..cd6c14ab3 100644 --- a/Src/ILGPU.Tests.OpenCL/ILGPU.Tests.OpenCL.csproj +++ b/Src/ILGPU.Tests.OpenCL/ILGPU.Tests.OpenCL.csproj @@ -16,8 +16,8 @@ - - + + all runtime; build; native; contentfiles; analyzers; buildtransitive diff --git a/Src/ILGPU.Tests.Velocity/ILGPU.Tests.Velocity.csproj b/Src/ILGPU.Tests.Velocity/ILGPU.Tests.Velocity.csproj index 238adb51c..71269843a 100644 --- a/Src/ILGPU.Tests.Velocity/ILGPU.Tests.Velocity.csproj +++ b/Src/ILGPU.Tests.Velocity/ILGPU.Tests.Velocity.csproj @@ -16,8 +16,8 @@ - - + + all runtime; build; native; contentfiles; analyzers; buildtransitive diff --git a/Src/ILGPU.Tests/ArrayViews.cs b/Src/ILGPU.Tests/ArrayViews.cs index 6fcf58c77..498b36901 100644 --- a/Src/ILGPU.Tests/ArrayViews.cs +++ b/Src/ILGPU.Tests/ArrayViews.cs @@ -1,6 +1,6 @@ // --------------------------------------------------------------------------------------- // ILGPU -// Copyright (c) 2021 ILGPU Project +// Copyright (c) 2021-2024 ILGPU Project // www.ilgpu.net // // File: ArrayViews.cs @@ -863,8 +863,8 @@ internal static void ArrayViewAlignmentKernel( } } - public static TheoryData AlignToData => - new TheoryData + public static TheoryData AlignToData => + new TheoryData { { 8, int.MaxValue }, { 16, int.MaxValue }, diff --git a/Src/ILGPU.Tests/CompareFloatOperations.tt b/Src/ILGPU.Tests/CompareFloatOperations.tt index 22840ca68..d8007f195 100644 --- a/Src/ILGPU.Tests/CompareFloatOperations.tt +++ b/Src/ILGPU.Tests/CompareFloatOperations.tt @@ -1,6 +1,6 @@ // --------------------------------------------------------------------------------------- // ILGPU -// Copyright (c) 2021-2023 ILGPU Project +// Copyright (c) 2021-2024 ILGPU Project // www.ilgpu.net // // File: CompareFloatOperations.tt/CompareFloatOperations.cs @@ -74,8 +74,9 @@ namespace ILGPU.Tests c[index] = result ? 1 : 0; } - public static TheoryData <#= testName #>Data => - new TheoryData + public static TheoryData<<#= type.Type #>, <#= type.Type #>> + <#= testName #>Data => + new TheoryData<<#= type.Type #>, <#= type.Type #>> { <# foreach (var range in floatRanges) { #> <# foreach (var range2 in floatRanges) { #> diff --git a/Src/ILGPU.Tests/ILGPU.Tests.csproj b/Src/ILGPU.Tests/ILGPU.Tests.csproj index eb5498c33..90d513cba 100644 --- a/Src/ILGPU.Tests/ILGPU.Tests.csproj +++ b/Src/ILGPU.Tests/ILGPU.Tests.csproj @@ -34,7 +34,7 @@ - + diff --git a/Src/ILGPU.Tests/PageLockedMemory.cs b/Src/ILGPU.Tests/PageLockedMemory.cs index 935ead078..7692b8503 100644 --- a/Src/ILGPU.Tests/PageLockedMemory.cs +++ b/Src/ILGPU.Tests/PageLockedMemory.cs @@ -25,7 +25,7 @@ protected PageLockedMemory(ITestOutputHelper output, TestContext testContext) private const int Length = 1024; - public static TheoryData Numbers => new TheoryData + public static TheoryData Numbers => new TheoryData { { 10 }, { -10 }, diff --git a/Src/ILGPU.Tests/UnaryFloatOperations.cs b/Src/ILGPU.Tests/UnaryFloatOperations.cs index a59a358c2..4c9b862c2 100644 --- a/Src/ILGPU.Tests/UnaryFloatOperations.cs +++ b/Src/ILGPU.Tests/UnaryFloatOperations.cs @@ -1,6 +1,6 @@ // --------------------------------------------------------------------------------------- // ILGPU -// Copyright (c) 2021-2023 ILGPU Project +// Copyright (c) 2021-2024 ILGPU Project // www.ilgpu.net // // File: UnaryFloatOperations.cs @@ -23,12 +23,12 @@ protected UnaryFloatOperations( : base(output, testContext) { } - public static TheoryData HalfData => - new TheoryData + public static TheoryData HalfData => + new TheoryData { { Half.PositiveInfinity, false, false, true, false }, { Half.NegativeInfinity, false, false, false, true }, - { 0.0f, true, false, false, false }, + { Half.Zero, true, false, false, false }, { Half.MaxValue, true, false, false, false }, { Half.MinValue, true, false, false, false }, { Half.NaN, false, true, false, false },