Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support LU factorizations #1193

Closed
ChrisRackauckas opened this issue Oct 7, 2021 · 1 comment
Closed

Support LU factorizations #1193

ChrisRackauckas opened this issue Oct 7, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@ChrisRackauckas
Copy link
Member

MWE:

using CUDA
lu(cu(rand(2,2)))
ArgumentError: cannot take the CPU address of a CuArray{Float32, 2, CUDA.Mem.DeviceBuffer}
unsafe_convert(#unused#::Type{Ptr{Float32}}, x::CuArray{Float32, 2, CUDA.Mem.DeviceBuffer}) at array.jl:318
getrf!(A::CuArray{Float32, 2, CUDA.Mem.DeviceBuffer}) at lapack.jl:575
lu!(A::CuArray{Float32, 2, CUDA.Mem.DeviceBuffer}, ::RowMaximum; check::Bool) at lu.jl:81
(::LinearAlgebra.var"#lu!##kw")(::NamedTuple{(:check,), Tuple{Bool}}, ::typeof(lu!), A::CuArray{Float32, 2, CUDA.Mem.DeviceBuffer}, ::RowMaximum) at lu.jl:81
lu(A::CuArray{Float32, 2, CUDA.Mem.DeviceBuffer}, pivot::RowMaximum; check::Bool) at lu.jl:279
lu(A::CuArray{Float32, 2, CUDA.Mem.DeviceBuffer}, pivot::RowMaximum) at lu.jl:278
lu(A::CuArray{Float32, 2, CUDA.Mem.DeviceBuffer}) at lu.jl:278
top-level scope at test.jl:42
eval at boot.jl:373 [inlined]

It would be good to then make the ldiv! supported as well, similar to #1192

@ChrisRackauckas ChrisRackauckas added the enhancement New feature or request label Oct 7, 2021
kshyatt added a commit that referenced this issue Mar 13, 2022
@maleadt
Copy link
Member

maleadt commented Mar 23, 2022

Should be fixed by #1449

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants