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

integer division error creating CuVector of missing and nothing #1251

Closed
guyvdbroeck opened this issue Nov 29, 2021 · 0 comments · Fixed by #1255
Closed

integer division error creating CuVector of missing and nothing #1251

guyvdbroeck opened this issue Nov 29, 2021 · 0 comments · Fixed by #1255
Assignees
Labels
bug Something isn't working

Comments

@guyvdbroeck
Copy link
Contributor

guyvdbroeck commented Nov 29, 2021

With CUDA.jl 3.5.0:

julia> CuVector([missing,nothing])
ERROR: DivideError: integer division error
Stacktrace:
  [1] div
    @ ./int.jl:261 [inlined]
  [2] typetagdata
    @ ~/.julia/packages/CUDA/YpW0k/src/array.jl:335 [inlined]
  [3] macro expansion
    @ ~/.julia/packages/CUDA/YpW0k/src/array.jl:395 [inlined]
  [4] macro expansion
    @ ~/.julia/packages/CUDA/YpW0k/src/state.jl:182 [inlined]
  [5] unsafe_copyto!(dest::CuArray{Union{Missing, Nothing}, 1, CUDA.Mem.DeviceBuffer}, doffs::Int64, src::Vector{Union{Missing, Nothing}}, soffs::Int64, n::Int64)
    @ CUDA ~/.julia/packages/CUDA/YpW0k/src/array.jl:387
  [6] copyto!
    @ ~/.julia/packages/CUDA/YpW0k/src/array.jl:345 [inlined]
  [7] copyto!
    @ ~/.julia/packages/CUDA/YpW0k/src/array.jl:349 [inlined]
  [8] CuArray
    @ ~/.julia/packages/CUDA/YpW0k/src/array.jl:291 [inlined]
  [9] CuArray
    @ ~/.julia/packages/CUDA/YpW0k/src/array.jl:295 [inlined]
 [10] (CuArray{T, 1, B} where {T, B})(x::Vector{Union{Missing, Nothing}})
    @ CUDA ~/.julia/packages/CUDA/YpW0k/src/array.jl:303
 [11] top-level scope
    @ REPL[294]:1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants