Skip to content

Commit

Permalink
Adapted ILGPU.Algorithms tests contexts to turn off assertion checks …
Browse files Browse the repository at this point in the history
…in O1 and O2 builds on Cuda and OpenCL platforms.
  • Loading branch information
m4rs-mt committed Oct 18, 2023
1 parent b559909 commit b4a4533
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
4 changes: 3 additions & 1 deletion Src/ILGPU.Algorithms.Tests.CPU/Configurations.tt
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -44,6 +44,8 @@ namespace ILGPU.Algorithms.Tests.CPU
public CPUTestContext<#= config #>()
: base(
OptimizationLevel.<#= level #>,
enableAssertions: true,
forceDebugConfig: true,
builder => builder.EnableAlgorithms())
{ }
}
Expand Down
4 changes: 3 additions & 1 deletion Src/ILGPU.Algorithms.Tests.Cuda/Configurations.tt
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -44,6 +44,8 @@ namespace ILGPU.Algorithms.Tests.Cuda
public CudaTestContext<#= config #>()
: base(
OptimizationLevel.<#= level #>,
enableAssertions: false,
forceDebugConfig: false,
builder => builder.EnableAlgorithms())
{ }
}
Expand Down
4 changes: 3 additions & 1 deletion Src/ILGPU.Algorithms.Tests.OpenCL/Configurations.tt
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -44,6 +44,8 @@ namespace ILGPU.Algorithms.Tests.OpenCL
public CLTestContext<#= config #>()
: base(
OptimizationLevel.<#= level #>,
enableAssertions: false,
forceDebugConfig: false,
builder => builder.EnableAlgorithms())
{ }
}
Expand Down

0 comments on commit b4a4533

Please sign in to comment.