Skip to content

Commit

Permalink
compat with GPUArrays v11
Browse files Browse the repository at this point in the history
  • Loading branch information
maximilian-gelbrecht committed Oct 25, 2024
1 parent 27b2f2e commit 87bc15d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ Dates = "1.10"
DocStringExtensions = "0.9"
FFTW = "1"
FastGaussQuadrature = "0.4, 0.5, 1"
GPUArrays = "10, 11"
GPUArrays = "11"
GenericFFT = "0.1"
JLArrays = "0.1"
JLD2 = "0.4, 0.5"
Expand Down
4 changes: 2 additions & 2 deletions src/LowerTriangularMatrices/lower_triangular_array.jl
Original file line number Diff line number Diff line change
Expand Up @@ -631,10 +631,10 @@ function Base.similar(
return LowerTriangularArray{T, N, ArrayType{T,N}}(undef, size(L; as=Matrix))
end

function GPUArrays.backend(
function GPUArrays.get_backend(
::Type{LowerTriangularArray{T, N, ArrayType}}
) where {T, N, ArrayType <: GPUArrays.AbstractGPUArray}
return GPUArrays.backend(ArrayType)
return GPUArrays.get_backend(ArrayType)
end

Adapt.adapt_structure(to, L::LowerTriangularArray) =
Expand Down

0 comments on commit 87bc15d

Please sign in to comment.