Skip to content

Commit 8f0b0b8

Browse files
Merge pull request #351 from JuliaArrays/ChrisRackauckas-patch-2
Make the GPU-generic lu_instance creation non-singular
2 parents 1b36d38 + 21fab64 commit 8f0b0b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/ArrayInterfaceGPUArrays/src/ArrayInterfaceGPUArrays.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ function ArrayInterfaceCore.restructure(x::GPUArraysCore.AbstractGPUArray, y)
2020
end
2121

2222
function ArrayInterfaceCore.lu_instance(A::GPUArraysCore.AbstractGPUMatrix{T}) where {T}
23-
lu(similar(A, 1, 1))
23+
lu(Adapt.adapt(ArrayInterfaceCore.parameterless_type(A), ones(T, 0, 0)))
2424
end
2525

2626
# Doesn't do much, but makes a gigantic change to the dependency chain.

0 commit comments

Comments
 (0)