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

spawn should try not to spawn local indexing operations #89

Closed
JeffBezanson opened this issue Jun 28, 2011 · 1 comment
Closed

spawn should try not to spawn local indexing operations #89

JeffBezanson opened this issue Jun 28, 2011 · 1 comment
Assignees
Labels
parallelism Parallel or distributed computation performance Must go faster speculative Whether the change will be implemented is speculative

Comments

@JeffBezanson
Copy link
Member

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(), ...)
@ghost ghost assigned JeffBezanson Jun 28, 2011
@jakebolewski jakebolewski added the parallelism Parallel or distributed computation label Aug 11, 2015
cmcaine pushed a commit to cmcaine/julia that referenced this issue Sep 24, 2020
* Implement Grains exercise

Contributes to exercism/julia#87. Loosely based on Python
implementation.

* Revert to pre-0.7 feature set

In v0.6-, `DomainError` takes no arguments.

* Add exercise to config.json

Update README according to specification.

* Add exercise dependency and fix README

* Fix bug and add backwards compatibility
LilithHafner pushed a commit to LilithHafner/julia that referenced this issue Oct 11, 2021
@vtjnash vtjnash closed this as completed Jul 29, 2023
@vtjnash
Copy link
Member

vtjnash commented Jul 29, 2023

Seems not an issue for here anymore

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
parallelism Parallel or distributed computation performance Must go faster speculative Whether the change will be implemented is speculative
Projects
None yet
Development

No branches or pull requests

3 participants