Skip to content

Commit 2be1308

Browse files
format
1 parent db1dcf9 commit 2be1308

File tree

2 files changed

+10
-12
lines changed

2 files changed

+10
-12
lines changed

test/gpu.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
using CUDA, NonlinearSolve
22

3-
A = cu(rand(4,4))
3+
A = cu(rand(4, 4))
44
u0 = cu(rand(4))
55
b = cu(rand(4))
66

7-
function f(du,u,p)
8-
du .= A*u .+ b
7+
function f(du, u, p)
8+
du .= A * u .+ b
99
end
1010

1111
prob = NonlinearProblem(f, u0)

test/runtests.jl

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,12 @@ const GROUP = get(ENV, "GROUP", "All")
66
const is_APPVEYOR = Sys.iswindows() && haskey(ENV, "APPVEYOR")
77

88
@time begin
9+
if GROUP == "All" || GROUP == "Core"
10+
@time @safetestset "Basic Tests + Some AD" begin include("basictests.jl") end
11+
@time @safetestset "Sparsity Tests" begin include("sparse.jl") end
12+
end
913

10-
if GROUP == "All" || GROUP == "Core"
11-
@time @safetestset "Basic Tests + Some AD" begin include("basictests.jl") end
12-
@time @safetestset "Sparsity Tests" begin include("sparse.jl") end
13-
end
14-
15-
if GROUP == "GPU"
16-
@time @safetestset "GPU Tests" begin include("gpu.jl") end
17-
end
18-
14+
if GROUP == "GPU"
15+
@time @safetestset "GPU Tests" begin include("gpu.jl") end
16+
end
1917
end

0 commit comments

Comments
 (0)