Skip to content

spawn should try not to spawn local indexing operations #89

@JeffBezanson

Description

@JeffBezanson

In a statement like

@spawn f(A[I,J], B[I,K])

if A is a local array the indexing should be done locally so only part of the array is sent elsewhere.
A good approach might be to lower this as follows:

if isa(A, Array)
    sub = A[I,J]
    thk = ()->sub
else
    thk = ()->A[I,J]
end
@spawn f(thk(), ...)

Metadata

Metadata

Assignees

Labels

parallelismParallel or distributed computationperformanceMust go fasterspeculativeWhether the change will be implemented is speculative

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions