-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Parallel Julia crashes with composite datatype containing SparseMatrixCSC #12848
Comments
I can confirm that this works fine when fields A and B of Two refer to two different
|
Reduced case:
results in
@JeffBezanson , do you think 78b999f in the context of SparseMatrix could be the cause? |
I'm getting the same kind of error without any sparse matrices at all. In particular I have a @parallel for loop that looks something like, Npts = size(deltaq,1)
pout = SharedArray(Float64,Npts)
xmitantpos = copy(xmitprams.xmitantpos)
@sync @parallel for n=1:Npts
# theoretically this is a copied version of xmitantpos and so I can write to it
#xmitantpos[qq,:] = deltaq[n,:]
pout[n] = perfmet(rcons, wgts, xmitprams, xmitprams.xmitantpos)
end
# extract data from shared array
pret = sdata(pout) So xmitprams is a composite type and there are two references to it in the input arguments. However I'll try to get a standalone simpler test case running later. Right now though it's a show stopper since I can't see how to parallelize calls to my function perfmet. The same error occurs if I configure it to use pmap instead. By the way this is happening on 0.3.11 in a linux 64 bit OS. |
given that there's a PR #13134 for this, moving the backport label over there |
Julia crashes when trying to copy a composite datatype containing two copies of a reference to the same SparseMatrixCSC object from the master process to a parallel worker. This problem occurs for Julia 0.4 starting late June 2015. The following code reproduces the error if running in parallel (
julia -p N
with N >= 1):Screen output from Julia 0.3 and old Julia 0.4 (commit 75432c9*, e.g.):
Screen output from recent Julia 0.4 (commit f42b222*, e.g.):
The Julia and OS version that I'm using is (
versioninfo()
)The text was updated successfully, but these errors were encountered: