Skip to content

Commit

Permalink
Merge pull request #142 from yuehhua/test
Browse files Browse the repository at this point in the history
Split cuda tests and fix GraphSignals.adjacency_matrix
  • Loading branch information
yuehhua authored Sep 15, 2023
2 parents dbf640e + e332b4d commit 48fab4f
Show file tree
Hide file tree
Showing 8 changed files with 367 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 48fab4f

Please sign in to comment.