-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
buildkite for GNNlib + get_graph_type (#530)
- Loading branch information
1 parent
3ed702b
commit 49b6398
Showing
19 changed files
with
658 additions
and
200 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
module GNNlibAMDGPUExt | ||
|
||
using AMDGPU: AnyROCMatrix | ||
using Random, Statistics, LinearAlgebra | ||
using GNNlib: GNNlib, propagate, copy_xj, e_mul_xj, w_mul_xj | ||
using GNNGraphs: GNNGraph, COO_T, SPARSE_T | ||
|
||
###### PROPAGATE SPECIALIZATIONS #################### | ||
|
||
## COPY_XJ | ||
|
||
## avoid the fast path on gpu until we have better cuda support | ||
function GNNlib.propagate(::typeof(copy_xj), g::GNNGraph{<:Union{COO_T, SPARSE_T}}, ::typeof(+), | ||
xi, xj::AnyROCMatrix, e) | ||
propagate((xi, xj, e) -> copy_xj(xi, xj, e), g, +, xi, xj, e) | ||
end | ||
|
||
## E_MUL_XJ | ||
|
||
## avoid the fast path on gpu until we have better cuda support | ||
function GNNlib.propagate(::typeof(e_mul_xj), g::GNNGraph{<:Union{COO_T, SPARSE_T}}, ::typeof(+), | ||
xi, xj::AnyROCMatrix, e::AbstractVector) | ||
propagate((xi, xj, e) -> e_mul_xj(xi, xj, e), g, +, xi, xj, e) | ||
end | ||
|
||
## W_MUL_XJ | ||
|
||
## avoid the fast path on gpu until we have better support | ||
function GNNlib.propagate(::typeof(w_mul_xj), g::GNNGraph{<:Union{COO_T, SPARSE_T}}, ::typeof(+), | ||
xi, xj::AnyROCMatrix, e::Nothing) | ||
propagate((xi, xj, e) -> w_mul_xj(xi, xj, e), g, +, xi, xj, e) | ||
end | ||
|
||
end #module |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
[deps] | ||
FiniteDifferences = "26cc04aa-876d-5657-8c51-4c34ba976000" | ||
Flux = "587475ba-b771-5e3f-ad9e-33799f191a9c" | ||
Functors = "d9f16b24-f501-4c13-a1f2-28368ffc5196" | ||
GNNGraphs = "aed8fd31-079b-4b5a-b342-a13352159b8c" | ||
GNNlib = "a6a84749-d869-43f8-aacc-be26a1996e48" | ||
GPUArraysCore = "46192b85-c4d5-4398-a991-12ede77f4527" | ||
Graphs = "86223c79-3864-5bf0-83f7-82e725a168b6" | ||
MLDataDevices = "7e8f7934-dd98-4c1a-8fe8-92b47a384d40" | ||
MLUtils = "f1d291b0-491e-4a28-83b9-f70985020b54" | ||
NNlib = "872c559c-99b0-510c-b3b7-b6c96a88d5cd" | ||
Pkg = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f" | ||
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c" | ||
Reexport = "189a3867-3050-52da-a836-e630ba90ab69" | ||
SparseArrays = "2f01184e-e22b-5df5-ae63-d93ebab69eaf" | ||
Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2" | ||
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" | ||
TestItemRunner = "f8b46487-2199-4994-9208-9a1283c18c0a" | ||
Zygote = "e88e6eb3-aa80-5325-afca-941959d7151f" | ||
|
||
[compat] | ||
GPUArraysCore = "0.1" |
Oops, something went wrong.