Skip to content

Commit 778ea82

Browse files
authored
Merge pull request #107 from yuehhua/develop
Bump CUDA to v2.0
2 parents 133310e + 04c4084 commit 778ea82

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Zygote = "e88e6eb3-aa80-5325-afca-941959d7151f"
2525
ZygoteRules = "700de1a5-db45-46bc-99cf-38207098b444"
2626

2727
[compat]
28-
CUDA = "1.2"
28+
CUDA = "1.2 - 2.0"
2929
DataStructures = "0.17 - 0.18"
3030
FillArrays = "0.8 - 0.9"
3131
Flux = "0.10 - 0.11"

src/cuda/msgpass.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
@inline function update_batch_edge(mp::T, adj, E::AbstractMatrix, X::CuMatrix) where {T<:MessagePassing}
2-
E = convert(typeof(X), E)
2+
E = convert(typeof(X), Matrix(E))
33
update_batch_edge(mp, adj, E, X)
44
end
55

test/layers/msgpass.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ l = NewLayer(out_channel, in_channel)
2525
@testset "no message or update" begin
2626
fg_ = l(fg)
2727

28-
@test graph(fg_) === adj
28+
@test graph(fg_) == adj
2929
@test size(node_feature(fg_)) == (in_channel, num_V)
3030
@test size(edge_feature(fg_)) == (in_channel, 2*num_E)
3131
@test size(global_feature(fg_)) == (0,)
@@ -35,7 +35,7 @@ l = NewLayer(out_channel, in_channel)
3535
@testset "message function" begin
3636
fg_ = l(fg)
3737

38-
@test graph(fg_) === adj
38+
@test graph(fg_) == adj
3939
@test size(node_feature(fg_)) == (out_channel, num_V)
4040
@test size(edge_feature(fg_)) == (out_channel, 2*num_E)
4141
@test size(global_feature(fg_)) == (0,)
@@ -45,7 +45,7 @@ l = NewLayer(out_channel, in_channel)
4545
@testset "message and update" begin
4646
fg_ = l(fg)
4747

48-
@test graph(fg_) === adj
48+
@test graph(fg_) == adj
4949
@test size(node_feature(fg_)) == (out_channel, num_V)
5050
@test size(edge_feature(fg_)) == (out_channel, 2*num_E)
5151
@test size(global_feature(fg_)) == (0,)

0 commit comments

Comments
 (0)