Skip to content

Commit

Permalink
split cuda tests and fix GraphSignals.adjacency_matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
yuehhua committed Sep 13, 2023
1 parent dbf640e commit b38166f
Show file tree
Hide file tree
Showing 8 changed files with 366 additions and 353 deletions.
7 changes: 5 additions & 2 deletions ext/GraphSignalsCUDAExt/linalg.jl
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,12 @@ function GraphSignals.adjacency_matrix(adj::CuSparseMatrixCSC)
return CuMatrix(adj)
end

adjacency_matrix(adj::CuMatrix{T}, ::Type{T}) where {T} = adjacency_matrix(adj)
function GraphSignals.adjacency_matrix(adj::CuMatrix{T}, ::Type{S}) where {T,S}
GraphSignals._dim_check(adj)
return CuMatrix{S}(adj)
end

function adjacency_matrix(adj::CuMatrix)
function GraphSignals.adjacency_matrix(adj::CuMatrix)
GraphSignals._dim_check(adj)
return adj
end
Expand Down
350 changes: 0 additions & 350 deletions test/cuda.jl

This file was deleted.

Loading

0 comments on commit b38166f

Please sign in to comment.