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

SharedArray does not support convert #27389

Closed
dlfivefifty opened this issue Jun 2, 2018 · 1 comment
Closed

SharedArray does not support convert #27389

dlfivefifty opened this issue Jun 2, 2018 · 1 comment
Labels
domain:parallelism Parallel or distributed computation

Comments

@dlfivefifty
Copy link
Contributor

   _       _ _(_)_     |  A fresh approach to technical computing
  (_)     | (_) (_)    |  Documentation: https://docs.julialang.org
   _ _   _| |_  __ _   |  Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 0.7.0-alpha.20 (2018-06-02 06:26 UTC)
 _/ |\__'_|_|_|\__'_|  |  Commit c8ce43ad17 (0 days old master)
|__/                   |  x86_64-apple-darwin17.5.0


julia> convert(SharedArray{Int32,1},A)
ERROR: MethodError: Cannot `convert` an object of type SharedArray{Int64,1} to an object of type SharedArray{Int32,1}
Closest candidates are:
  convert(::Type{#s624} where #s624<:SharedArray, ::Array) at /Users/solver/Projects/julia7/usr/share/julia/stdlib/v0.7/SharedArrays/src/SharedArrays.jl:361
  convert(::Type{T<:AbstractArray}, ::T<:AbstractArray) where T<:AbstractArray at abstractarray.jl:14
  convert(::Type{T<:AbstractArray}, ::Factorization) where T<:AbstractArray at /Users/solver/Projects/julia7/usr/share/julia/stdlib/v0.7/LinearAlgebra/src/factorization.jl:51
  ...
@vtjnash
Copy link
Sponsor Member

vtjnash commented Feb 10, 2024

Since converting it would break the sharing, I think it makes sense that this is an error

@vtjnash vtjnash closed this as not planned Won't fix, can't repro, duplicate, stale Feb 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
domain:parallelism Parallel or distributed computation
Projects
None yet
Development

No branches or pull requests

3 participants