Skip to content

Commit

Permalink
🤖 Format .jl files
Browse files Browse the repository at this point in the history
  • Loading branch information
dpo committed Oct 10, 2024
1 parent eb5d957 commit c92fb0a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ext/LinearOperatorsCUDAExt.jl
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
module LinearOperatorsCUDAExt

using LinearOperators
isdefined(Base, :get_extension) ? (using CUDA; using CUDA.CUSPARSE) : (using ..CUDA; using ..CUDA.CUSPARSE)
isdefined(Base, :get_extension) ? (using CUDA; using CUDA.CUSPARSE) :
(using ..CUDA; using ..CUDA.CUSPARSE)

LinearOperators.storage_type(::CuArray{T, 2, D}) where {T, D} = CuArray{T, 1, D}
LinearOperators.storage_type(::AbstractCuSparseMatrix{T}) where {T} = CuArray{T, 1, CUDA.DeviceMemory}
LinearOperators.storage_type(::AbstractCuSparseMatrix{T}) where {T} =
CuArray{T, 1, CUDA.DeviceMemory}

end # module

0 comments on commit c92fb0a

Please sign in to comment.