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 undef constructors #27388

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

SharedArray does not support undef constructors #27388

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

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> using SharedArrays

julia> A = SharedArray{Int,1}(undef,10)
ERROR: MethodError: no method matching SharedArray{Int64,1}(::UndefInitializer, ::Int64)
Closest candidates are:
  SharedArray{Int64,1}(::Any, ::Any, ::Any, ::Any, ::Any) where {T, N} at /Users/solver/Projects/julia7/usr/share/julia/stdlib/v0.7/SharedArrays/src/SharedArrays.jl:46
  SharedArray{Int64,1}(::Integer...; kwargs...) where {T, N} at /Users/solver/Projects/julia7/usr/share/julia/stdlib/v0.7/SharedArrays/src/SharedArrays.jl:163
  SharedArray{Int64,1}(::Any) where T<:AbstractArray at abstractarray.jl:22

julia> A = SharedArray{Int,1}(10)
10-element SharedArray{Int64,1}:
 0
 0
 0
 0
 0
 0
 0
 0
 0
 0
@nalimilan nalimilan changed the title SharedArray does not support undef SharedArray does not support undef constructors Jun 2, 2018
@timholy timholy added this to the 2.0 milestone Jan 20, 2020
@timholy
Copy link
Sponsor Member

timholy commented Jan 20, 2020

Not only that, we should eliminate the one that doesn't take an initializer.

@brenhinkeller brenhinkeller added the domain:parallelism Parallel or distributed computation label Nov 21, 2022
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