From b944781a73d07909c5516443e289cb0bd8d7af09 Mon Sep 17 00:00:00 2001 From: "Navid C. Constantinou" Date: Tue, 30 Jul 2024 10:39:04 +1000 Subject: [PATCH] fix gpu tests --- test/runtests.jl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/runtests.jl b/test/runtests.jl index 1aecfc75..16abc855 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -387,9 +387,9 @@ for dev in devices @test repr(diag) == "Diagnostic\n ├─── calc: get_sol\n ├─── prob: FourierFlows.Problem{DataType, Vector{ComplexF64}, Float64, Vector{Float64}}\n ├─── data: 101-element Vector{Vector{ComplexF64}}\n ├────── t: 101-element Vector{Float64}\n ├── steps: 101-element Vector{Int64}\n ├─── freq: 1\n └────── i: 1" @test repr(out) == "Output\n ├──── prob: FourierFlows.Problem{DataType, Vector{ComplexF64}, Float64, Vector{Float64}}\n ├──── path: output.jld2\n └── fields: Dict{Symbol, Function}()" else - @test repr(prob.vars) == "Variables\n ├───── variable: c -> 128-element CuArray{Float64, 1, CUDA.Mem.DeviceBuffer}\n ├───── variable: cx -> 128-element CuArray{Float64, 1, CUDA.Mem.DeviceBuffer}\n ├───── variable: ch -> 65-element CuArray{ComplexF64, 1, CUDA.Mem.DeviceBuffer}\n └───── variable: cxh -> 65-element CuArray{ComplexF64, 1, CUDA.Mem.DeviceBuffer}\n" - @test repr(diag) == "Diagnostic\n ├─── calc: get_sol\n ├─── prob: FourierFlows.Problem{DataType, CuArray{ComplexF64, 1, CUDA.Mem.DeviceBuffer}, Float64, CuArray{Float64, 1, CUDA.Mem.DeviceBuffer}}\n ├─── data: 101-element Vector{CuArray{ComplexF64, 1, CUDA.Mem.DeviceBuffer}}\n ├────── t: 101-element Vector{Float64}\n ├── steps: 101-element Vector{Int64}\n ├─── freq: 1\n └────── i: 1" - @test repr(out) == "Output\n ├──── prob: FourierFlows.Problem{DataType, CuArray{ComplexF64, 1, CUDA.Mem.DeviceBuffer}, Float64, CuArray{Float64, 1, CUDA.Mem.DeviceBuffer}}\n ├──── path: output.jld2\n └── fields: Dict{Symbol, Function}()" + @test repr(prob.vars) == "Variables\n ├───── variable: c -> 128-element CuArray{Float64, 1, CUDA.DeviceMemory}\n ├───── variable: cx -> 128-element CuArray{Float64, 1, CUDA.DeviceMemory}\n ├───── variable: ch -> 65-element CuArray{ComplexF64, 1, CUDA.DeviceMemory}\n └───── variable: cxh -> 65-element CuArray{ComplexF64, 1, CUDA.DeviceMemory}\n" + @test repr(diag) == "Diagnostic\n ├─── calc: get_sol\n ├─── prob: FourierFlows.Problem{DataType, CuArray{ComplexF64, 1, CUDA.DeviceMemory}, Float64, CuArray{Float64, 1, CUDA.DeviceMemory}}\n ├─── data: 101-element Vector{CuArray{ComplexF64, 1, CUDA.DeviceMemory}}\n ├────── t: 101-element Vector{Float64}\n ├── steps: 101-element Vector{Int64}\n ├─── freq: 1\n └────── i: 1" + @test repr(out) == "Output\n ├──── prob: FourierFlows.Problem{DataType, CuArray{ComplexF64, 1, CUDA.DeviceMemory}, Float64, CuArray{Float64, 1, CUDA.DeviceMemory}}\n ├──── path: output.jld2\n └── fields: Dict{Symbol, Function}()" end @test repr(prob.eqn) == "Equation\n ├──────── linear coefficients: L\n │ ├───type: Float64\n │ └───size: (65,)\n ├───────────── nonlinear term: calcN!()\n └─── type of state vector sol: ComplexF64"