Skip to content

Commit 3dc0063

Browse files
Merge pull request #137 from JuliaDiff/depwarn
fix depwarn
2 parents 58b4e72 + 094e5d0 commit 3dc0063

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

src/SparseDiffTools.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ using LinearAlgebra
1313
using SparseArrays, ArrayInterface
1414

1515
using ForwardDiff: Dual, jacobian, partials, DEFAULT_CHUNK_THRESHOLD
16-
using DataStructures: DisjointSets, find_root, union!
16+
using DataStructures: DisjointSets, find_root!, union!
1717

1818
using ArrayInterface: matrix_colors
1919

src/coloring/acyclic_coloring.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ function find(w::Integer,
192192
g::LightGraphs.AbstractGraph,
193193
two_colored_forest::DisjointSets{<:Integer})
194194
edge_index = find_edge_index(w, x, g)
195-
return find_root(two_colored_forest, edge_index)
195+
return find_root!(two_colored_forest, edge_index)
196196
end
197197

198198

test/gpu/Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
[deps]
2-
CuArrays = "3a865a2d-5b23-5a0f-bc46-62713ec82fae"
2+
CUDA = "052768ef-5323-5732-b1bb-66c8b64840ba"

test/test_gpu_ad.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using SparseDiffTools, CuArrays, Test, LinearAlgebra
1+
using SparseDiffTools, CUDA, Test, LinearAlgebra
22
using ArrayInterface: allowed_getindex, allowed_setindex!
33
function f(dx,x)
44
dx[2:end-1] = x[1:end-2] - 2x[2:end-1] + x[3:end]
@@ -10,7 +10,7 @@ end
1010
_J1 = similar(rand(30,30))
1111
_denseJ1 = cu(collect(_J1))
1212
x = cu(rand(30))
13-
CuArrays.allowscalar(false)
13+
CUDA.allowscalar(false)
1414
forwarddiff_color_jacobian!(_denseJ1, f, x)
1515
@test_broken forwarddiff_color_jacobian!(_denseJ1, f, x, sparsity = _J1) isa Nothing
1616
@test_broken forwarddiff_color_jacobian!(_denseJ1, f, x, colorvec = repeat(1:3,10), sparsity = _J1) isa Nothing

0 commit comments

Comments
 (0)