Skip to content

promotion to SharedArray #15002

Open
Open
@skariel

Description

@skariel

so the following code eventually produces a non-shared array and for me it was a surprise:

a = SharedArray(Float32, 3)
a[:] = 0
a += 1

I have a function that sometimes gets an Array and other times a SharedArray. Now it has a different behaviour depending on the type used.

Is this behaviour intended?

Metadata

Metadata

Assignees

No one assigned

    Labels

    parallelismParallel or distributed computation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions