From 93edb98d96279aa8b9373261b85c7f6d6e980a77 Mon Sep 17 00:00:00 2001 From: Marcel Koester Date: Thu, 1 Feb 2024 09:16:32 +0100 Subject: [PATCH] Adjusted CPU-based SGO optimizer tests. --- ...taOptimizerTests.cs => CPUSGOOptimizerTests.cs} | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) rename Src/ILGPU.Algorithms.Tests.CPU/{CPUMetaOptimizerTests.cs => CPUSGOOptimizerTests.cs} (97%) diff --git a/Src/ILGPU.Algorithms.Tests.CPU/CPUMetaOptimizerTests.cs b/Src/ILGPU.Algorithms.Tests.CPU/CPUSGOOptimizerTests.cs similarity index 97% rename from Src/ILGPU.Algorithms.Tests.CPU/CPUMetaOptimizerTests.cs rename to Src/ILGPU.Algorithms.Tests.CPU/CPUSGOOptimizerTests.cs index d66ac0f2c0..a59625641c 100644 --- a/Src/ILGPU.Algorithms.Tests.CPU/CPUMetaOptimizerTests.cs +++ b/Src/ILGPU.Algorithms.Tests.CPU/CPUSGOOptimizerTests.cs @@ -1,9 +1,9 @@ // --------------------------------------------------------------------------------------- // ILGPU Algorithms -// Copyright (c) 2023 ILGPU Project +// Copyright (c) 2023-2024 ILGPU Project // www.ilgpu.net // -// File: CPUMetaOptimizerTests.cs +// File: CPUSGOOptimizerTests.cs // // This file is part of ILGPU and is distributed under the University of Illinois Open // Source License. See LICENSE.txt for details. @@ -24,9 +24,9 @@ namespace ILGPU.Algorithms.Tests.CPU { /// /// Contains tests to verify the functionality of the CPU-specialized - /// class. + /// class. /// - public class CPUMetaOptimizerTests + public class CPUSGOOptimizerTests { #region CPU Functions @@ -190,7 +190,7 @@ public void MetaOptimizationScalar( int numDimensions = objective.LowerBounds.Length; var random = new System.Random(13377331); - using var optimizer = MetaOptimizer.CreateScalar< + using var optimizer = SGOOptimizer.CreateScalar< float, float, RandomRanges.RandomRangeFloatProvider>( @@ -232,7 +232,7 @@ public void MetaOptimizationVectorized( int numDimensions = objective.LowerBounds.Length; var random = new System.Random(13377331); - using var optimizer = MetaOptimizer.CreateVectorized< + using var optimizer = SGOOptimizer.CreateVectorized< float, float, RandomRanges.RandomRangeFloatProvider>( @@ -276,7 +276,7 @@ public void MetaOptimizationScalarRaw( int numDimensions = objective.LowerBounds.Length; var random = new System.Random(13377331); - using var optimizer = MetaOptimizer.CreateScalar< + using var optimizer = SGOOptimizer.CreateScalar< float, float, RandomRanges.RandomRangeFloatProvider>(