Skip to content

Commit 352e491

Browse files
Merge pull request #330 from JuliaArrays/ChrisRackauckas-patch-1
Don't forget to use linear algebra
2 parents b0d818d + 5478877 commit 352e491

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/ArrayInterfaceGPUArrays/src/ArrayInterfaceGPUArrays.jl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ module ArrayInterfaceGPUArrays
33
using Adapt
44
using ArrayInterfaceCore
55
using GPUArraysCore
6+
using LinearAlgebra: lu
67

78
ArrayInterfaceCore.fast_scalar_indexing(::Type{<:GPUArraysCore.AbstractGPUArray}) = false
89
@inline ArrayInterfaceCore.allowed_getindex(x::GPUArraysCore.AbstractGPUArray, i...) = GPUArraysCore.@allowscalar(x[i...])
@@ -19,10 +20,10 @@ function ArrayInterfaceCore.restructure(x::GPUArraysCore.AbstractGPUArray, y)
1920
end
2021

2122
function ArrayInterfaceCore.lu_instance(A::GPUArraysCore.AbstractGPUMatrix{T}) where {T}
22-
qr(similar(A, 1, 1))
23+
lu(similar(A, 1, 1))
2324
end
2425

2526
# Doesn't do much, but makes a gigantic change to the dependency chain.
2627
# ArrayInterface.device(::Type{<:GPUArraysCore.AbstractGPUArray}) = ArrayInterface.GPU()
2728

28-
end
29+
end

0 commit comments

Comments
 (0)