Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

@spawnat not functioning with variable target processor #1482

Closed
class4kayaker opened this Issue Oct 31, 2012 · 0 comments

Comments

Projects
None yet
2 participants

commit fd2539c

Attempting to use the @spawnat macro to run a computation on any variable defined process, complains that any variable used to indicate the target processor is not defined.

For example,

a=dzeros(Int,(10,2),1)
for np=1:nprocs()
  @spawnat np a[np,1]=np
end

generates the following np not defined error.

 in anonymous at no file:2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment