Skip to content

Commit 7dde9d2

Browse files
tests should pass
1 parent ae5e965 commit 7dde9d2

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

test/FixedSizeDiffCache/gpu_all.jl

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -43,23 +43,3 @@ cache = FixedSizeDiffCache(A)
4343
prob = ODEProblem(foo, u0, (0.0f0, 1.0f0), (A, cache))
4444
sol = solve(prob, TRBDF2())
4545
@test sol.retcode == ReturnCode.Success
46-
47-
randmat = cu(rand(10, 2))
48-
sto = similar(randmat)
49-
stod = FixedSizeDiffCache(sto)
50-
51-
function claytonsample!(sto, τ; randmat = randmat)
52-
sto = get_tmp(sto, τ)
53-
sto .= randmat
54-
τ == 0 && return sto
55-
56-
n = size(sto, 1)
57-
for i in 1:n
58-
v = sto[i, 2]
59-
u = sto[i, 1]
60-
sto[i, 2] = (1 - u^(-τ) + u^(-τ) * v^(-/ (1 + τ))))^(-1 / τ)
61-
end
62-
return sto
63-
end
64-
65-
ForwardDiff.derivative-> claytonsample!(stod, τ), 0.3)

0 commit comments

Comments
 (0)