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

Addressing my own review on monodevec PR #1

Closed
wants to merge 2 commits into from

Conversation

tkelman
Copy link

@tkelman tkelman commented Dec 31, 2016

hiya @Sacha0, figured it'd be easier to write the patch myself addressing my comments on JuliaLang#19791

recommend "rebase and merge" if you agree

so type argument does not have to be <:Integer

example: round(Float32, rand(1:5,5,5) .// rand(1:5,5,5))
@tkelman
Copy link
Author

tkelman commented Dec 31, 2016

Ah I see why you tightened the signature, that introduces ambiguities. Will fix and replace the second commit.

was previously defined for AbstractSparseVector, and
there was a typo that was giving a method redefinition warning
because Sparse should have been Strided

fix ambiguity
@tkelman
Copy link
Author

tkelman commented Dec 31, 2016

fixed, commit replaced

@tkelman
Copy link
Author

tkelman commented Dec 31, 2016

moved to JuliaLang#19798

@tkelman tkelman closed this Dec 31, 2016
@tkelman tkelman deleted the tk/monodevec branch January 1, 2017 00:12
Sacha0 pushed a commit that referenced this pull request Apr 26, 2017
This changes nprocs (and therefore nworkers) report only workers in `W_CONNECTED` state.

This is to avoid issue with `@everywhere` or other similar methods that broadcast
messages to all workers.

To simulate:
- introduce an artificial delay at https://github.com/JuliaLang/julia/blob/2c4f6d74577a1b7606ed5e74e96158810f4f7af4/base/distributed/cluster.jl#L443 with `sleep(10)`
- start a master with:
```
using ClusterManagers

ElasticManager(;addr=IPv4("0.0.0.0"), port=9009, cookie="cookie", topology=:master_slave)

while nworkers() < 4
    sleep(1)
end

@Everywhere println(myid())
```
- start 4 workers with:
```
using ClusterManagers
ClusterManagers.elastic_worker("cookie", "127.0.0.1", 9009; stdout_to_master=false)
```

Without this change, this will often result in:

```
ERROR: LoadError: peer 3 is not connected to 1. Topology : master_slave
check_worker_state(::Base.Distributed.Worker) at ./distributed/cluster.jl:115
send_msg_(::Base.Distributed.Worker, ::Base.Distributed.MsgHeader, ::Base.Distributed.CallMsg{:call_fetch}, ::Bool) at ./distributed/messages.jl:180
remotecall_fetch(::Function, ::Base.Distributed.Worker, ::Expr, ::Vararg{Expr,N} where N) at ./distributed/remotecall.jl:346
remotecall_fetch(::Function, ::Int64, ::Expr, ::Vararg{Expr,N} where N) at ./distributed/remotecall.jl:367
(::##1#3)() at ./distributed/macros.jl:84
```
Sacha0 pushed a commit that referenced this pull request May 5, 2018
Support Julia 0.6.0 release
Sacha0 pushed a commit that referenced this pull request May 5, 2018
Add config, unicode/ascii, scroll wrap
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant