Skip to content

Commit 1b36d38

Browse files
Merge pull request #350 from JuliaArrays/ChrisRackauckas-patch-1-1
Unnecessary `cu` call
2 parents 0332964 + d9cc84e commit 1b36d38

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)