Skip to content

Commit d9cc84e

Browse files
Unnecessary cu call
Since `similar` will make a CuMatrix
1 parent 0332964 commit d9cc84e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/ArrayInterfaceCUDA/src/ArrayInterfaceCUDA.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ function ArrayInterface.lu_instance(A::CuMatrix{T}) where {T}
1111
if VERSION >= v"1.8-"
1212
ipiv = cu(Vector{Int32}(undef, 0))
1313
info = zero(Int)
14-
return LinearAlgebra.LU(cu(similar(A, 0, 0)), ipiv, info)
14+
return LinearAlgebra.LU(similar(A, 0, 0), ipiv, info)
1515
else
1616
LinearAlgebra.lu(A; check = false)
1717
end

0 commit comments

Comments
 (0)