Skip to content

Commit 6029d0c

Browse files
committed
fixed aliasing of matrices in mul! call.
1 parent ae015fc commit 6029d0c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/gpu_all.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,15 @@ end
3535
chunk_size = 10
3636
u0 = cu(rand(10,10)) #example kept small for test purposes.
3737
A = cu(-randn(10,10))
38-
cache = dualcache(cu(zeros(10,10)), chunk_size)
39-
prob = ODEProblem(foo, u0, (0.0f0,1.0f0), (A, cache))
38+
cache = dualcache(cu(zeros(10, 10)), chunk_size)
39+
prob = ODEProblem(foo, u0, (0.0f0, 1.0f0), (A, cache))
4040
sol = solve(prob, TRBDF2(chunk_size = chunk_size))
4141
@test sol.retcode == :Success
4242

4343
#with auto-detected chunk_size
4444
u0 = cu(rand(10,10)) #example kept small for test purposes.
4545
A = cu(-randn(10,10))
46-
cache = dualcache(A)
46+
cache = dualcache(cu(zeros(10, 10)))
4747
prob = ODEProblem(foo, u0, (0.0f0,1.0f0), (A, cache))
4848
sol = solve(prob, TRBDF2())
4949
@test sol.retcode == :Success

0 commit comments

Comments
 (0)