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

Weird behaviors of pmap across version of julia #10640

Closed
rszoh opened this issue Mar 26, 2015 · 4 comments
Closed

Weird behaviors of pmap across version of julia #10640

rszoh opened this issue Mar 26, 2015 · 4 comments
Labels
domain:parallelism Parallel or distributed computation

Comments

@rszoh
Copy link

rszoh commented Mar 26, 2015

When I run a piece of code in Julia 0.3.5 it runs perfectly but in other version like0 .3.6 and 0.3.7 it does not. I get this error:
convert has no method matching convert(::Type{Int64...}, ::Int64), which makes not sense to me, since convert has a method like that!

@kmsquire
Copy link
Member

@rszoh, thanks for the issue. However, without some code demonstrating your problem, it's impossible to debug. Can you post a code snippet and the exact output that it produces? A small example would be appreciated. Thanks!

@rszoh
Copy link
Author

rszoh commented Mar 26, 2015

I made a post before reporting the issue and here is the link https://groups.google.com/forum/#!topic/julia-users/bWvsJqCCEEk

when it works I get:

Warning: could not import Base.add! into NumericExtensions
Done!
Start here ... 
Warning: could not import Base.add! into NumericExtensions
Warning: could not import Base.add! into NumericExtensions
    From worker 2:  Done!
    From worker 3:  Done!
Done!!
2x12 DataFrame
| Row | n1   | n2   | p     | k   | m    | kap0 | pct | mu  | Log_bay  | pos | stron | ver_strg |
|-----|------|------|-------|-----|------|------|-----|-----|----------|-----|-------|----------|
| 1   | 50.0 | 50.0 | 200.0 | 0.0 | 24.0 | 0.1  | 1.0 | 1.0 | -58.6029 | 0.0 | 0.0   | 0.0      |
| 2   | 50.0 | 50.0 | 200.0 | 1.0 | 24.0 | 0.1  | 1.0 | 1.0 | -58.4965 | 0.0 | 0.0   | 0.0      |

julia> versioninfo()
Julia Version 0.3.5
Platform Info:
  System: Linux (x86_64-redhat-linux)
  CPU: Intel(R) Xeon(R) CPU           E5520  @ 2.27GHz
  WORD_SIZE: 64
  BLAS: libopenblas (DYNAMIC_ARCH NO_AFFINITY Nehalem)
  LAPACK: libopenblasp.so.0
  LIBM: libopenlibm
  LLVM: libLLVM-3.4.2

However, when it fails on Julia 0.3.6 and 0.3.7 I get the following error:

fatal error on fatal error on 2: 3: ERROR: `convert` has no method matching conv
ert(::Type{Int64...}, ::Int64)
 in convert at base.jl:13
 in convert at base.jl:21
 in deserialize at serialize.jl:447
 in handle_deserialize at serialize.jl:351
 in deserialize at serialize.jl:334
 in anonymous at serialize.jl:354
 in ntuple at tuple.jl:30
 in deserialize_tuple at serialize.jl:354
 in handle_deserialize at serialize.jl:346
 in anonymous at task.jl:853

I hope that's not too much,

Many thanks!

@ihnorton ihnorton added the domain:parallelism Parallel or distributed computation label Mar 28, 2015
@ihnorton
Copy link
Member

Is this still an issue on 0.3.8 with the latest updates to Devectorize and NumericExtensions?

Reduced case (from that email thread, thanks to @binarybana)

test.jl:

using Devectorize
function myfun(pam) 
  println("Entering myfun")
  foo = ones(5)
    @devec x = sum(foo)
  println("exiting myfun")
  return x
end

test with:

parm = rand(10,10)
M = { parm[i,:] for i in 1:2} # size(parm,1)}
require("test.jl")
pmap(myfun,M)

@malmaud
Copy link
Contributor

malmaud commented Oct 14, 2015

I can't reproduce this problem on the current Julia master (b6c0d95) and Devectorize (754cc06), so I'll close for now. @rszoh, please reopen if this is still an issue for you.

@malmaud malmaud closed this as completed Oct 14, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
domain:parallelism Parallel or distributed computation
Projects
None yet
Development

No branches or pull requests

4 participants