Skip to content

Commit

Permalink
update gpu tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nefrathenrici committed Jan 18, 2024
1 parent 154f66b commit f000360
Showing 1 changed file with 5 additions and 12 deletions.
17 changes: 5 additions & 12 deletions test/runtests_gpu.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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))
Expand Down

0 comments on commit f000360

Please sign in to comment.