From f000360a76391d3f3099f1f28cc711be56750368 Mon Sep 17 00:00:00 2001 From: nefrathenrici Date: Thu, 18 Jan 2024 12:48:54 -0800 Subject: [PATCH] update gpu tests --- test/runtests_gpu.jl | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/test/runtests_gpu.jl b/test/runtests_gpu.jl index 60d39ff0..f29c5d90 100644 --- a/test/runtests_gpu.jl +++ b/test/runtests_gpu.jl @@ -5,16 +5,12 @@ using CUDA using KernelAbstractions # Physics -import Thermodynamics -using SurfaceFluxes -const SF = SurfaceFluxes -const SFP = SF.Parameters -const TD = Thermodynamics +import Thermodynamics as TD +import SurfaceFluxes as SF +import SurfaceFluxes.Parameters as SFP +import SurfaceFluxes.UniversalFunctions.BusingerParams import CLIMAParameters as CP -# Create Parameters -include(joinpath(pkgdir(SurfaceFluxes), "parameters", "create_parameters.jl")) - ArrayType = CUDA.CuArray @info "GPU Compatibility Tests" @@ -53,10 +49,7 @@ ArrayType = CUDA.CuArray end function test_surfacefluxes_gpu(FT) - toml_dict = CP.create_toml_dict(FT) - param_set = create_parameters(toml_dict, UF.BusingerType()) - thermo_params = SFP.thermodynamics_params(param_set) - uft = SFP.universal_func_type(param_set) + param_set = SFP.SurfaceFluxesParameters(FT, BusingerParams) data_length = 4 output = ArrayType{FT}(undef, 1, data_length) fill!(output, FT(-99999.99))