Matrix-vector multiplication with CuArray does not work (unsafe_convert
error)
#286
Labels
bug
Something isn't working
unsafe_convert
error)
#286
Describe the bug 🐞
When performing matrix-vector multiplication with a
CuArray
(GPU array) wrapped inside aComponentArray
, I encounter aMethodError: no method matching unsafe_convert(::Type{Ptr{Float64}}, ::CuPtr{Float64})
. This error seems to occur because the customunsafe_convert
method forComponentArray
does not handle GPU arrays (CuArray
), causing a failure when trying to perform operations that require conversion to a raw pointer (e.g., matrix-vector multiplication).Expected behavior
A clear and concise description of what you expected to happen.
Minimal Reproducible Example 👇
Error & Stacktrace⚠️
Environment (please complete the following information):
using Pkg; Pkg.status()
using Pkg; Pkg.status(; mode = PKGMODE_MANIFEST)
versioninfo()
The text was updated successfully, but these errors were encountered: