From b4a45334745dd4cf4a580c2e77fecfeeedd7cfc7 Mon Sep 17 00:00:00 2001 From: Marcel Koester Date: Mon, 2 Oct 2023 14:21:18 +0200 Subject: [PATCH] Adapted ILGPU.Algorithms tests contexts to turn off assertion checks in O1 and O2 builds on Cuda and OpenCL platforms. --- Src/ILGPU.Algorithms.Tests.CPU/Configurations.tt | 4 +++- Src/ILGPU.Algorithms.Tests.Cuda/Configurations.tt | 4 +++- Src/ILGPU.Algorithms.Tests.OpenCL/Configurations.tt | 4 +++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/Src/ILGPU.Algorithms.Tests.CPU/Configurations.tt b/Src/ILGPU.Algorithms.Tests.CPU/Configurations.tt index f59a7bbe8..b9dd0b2b5 100644 --- a/Src/ILGPU.Algorithms.Tests.CPU/Configurations.tt +++ b/Src/ILGPU.Algorithms.Tests.CPU/Configurations.tt @@ -1,6 +1,6 @@ // --------------------------------------------------------------------------------------- // ILGPU Algorithms -// Copyright (c) 2021 ILGPU Project +// Copyright (c) 2021-2023 ILGPU Project // www.ilgpu.net // // File: Configurations.tt/Configurations.cs @@ -44,6 +44,8 @@ namespace ILGPU.Algorithms.Tests.CPU public CPUTestContext<#= config #>() : base( OptimizationLevel.<#= level #>, + enableAssertions: true, + forceDebugConfig: true, builder => builder.EnableAlgorithms()) { } } diff --git a/Src/ILGPU.Algorithms.Tests.Cuda/Configurations.tt b/Src/ILGPU.Algorithms.Tests.Cuda/Configurations.tt index 2e4ac9f33..c1d574c15 100644 --- a/Src/ILGPU.Algorithms.Tests.Cuda/Configurations.tt +++ b/Src/ILGPU.Algorithms.Tests.Cuda/Configurations.tt @@ -1,6 +1,6 @@ // --------------------------------------------------------------------------------------- // ILGPU Algorithms -// Copyright (c) 2021 ILGPU Project +// Copyright (c) 2021-2023 ILGPU Project // www.ilgpu.net // // File: Configurations.tt/Configurations.cs @@ -44,6 +44,8 @@ namespace ILGPU.Algorithms.Tests.Cuda public CudaTestContext<#= config #>() : base( OptimizationLevel.<#= level #>, + enableAssertions: false, + forceDebugConfig: false, builder => builder.EnableAlgorithms()) { } } diff --git a/Src/ILGPU.Algorithms.Tests.OpenCL/Configurations.tt b/Src/ILGPU.Algorithms.Tests.OpenCL/Configurations.tt index 82ce292f5..191d583b8 100644 --- a/Src/ILGPU.Algorithms.Tests.OpenCL/Configurations.tt +++ b/Src/ILGPU.Algorithms.Tests.OpenCL/Configurations.tt @@ -1,6 +1,6 @@ // --------------------------------------------------------------------------------------- // ILGPU Algorithms -// Copyright (c) 2021 ILGPU Project +// Copyright (c) 2021-2023 ILGPU Project // www.ilgpu.net // // File: Configurations.tt/Configurations.cs @@ -44,6 +44,8 @@ namespace ILGPU.Algorithms.Tests.OpenCL public CLTestContext<#= config #>() : base( OptimizationLevel.<#= level #>, + enableAssertions: false, + forceDebugConfig: false, builder => builder.EnableAlgorithms()) { } }