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

Document usage #16

Closed
GlenHertz opened this issue Nov 14, 2014 · 4 comments
Closed

Document usage #16

GlenHertz opened this issue Nov 14, 2014 · 4 comments
Labels

Comments

@GlenHertz
Copy link

Hi,

I'm interested in using this with SGE but I'm not sure how to use it. The documentation covers how to write a new manager but has no examples about how to use the existing ones. It seems like this is for starting new Julia workers and not for lunching Cmds. That is fine but it would be nice to have some examples of the typical usage.

Glen

@bjarthur
Copy link
Collaborator

+1

@jakebolewski
Copy link
Member

I've used ClusterManagers.jl successfully with SGE, I could write something up when I get a chance. Here is a quick example.

julia> Pkg.add("ClusterManagers")
julia> using ClusterManagers

julia> ClusterManagers.addprocs_sge(5)
job id is 961, waiting for job to start .
5-element Array{Any,1}:
2
3
4
5
6

julia> @parallel for i=1:5
       run(`hostname`)
       end

julia>  From worker 2:  compute-6
        From worker 4:  compute-6
        From worker 5:  compute-6
        From worker 6:  compute-6
        From worker 3:  compute-6

@diegopenhanut
Copy link

Thank you @jakebolewski ! I really missed an example like this.

@ViralBShah
Copy link
Member

Could this be contributed back into the README?

@jiahao jiahao added the doc label Apr 4, 2015
@jiahao jiahao closed this as completed in 3a88ebb Apr 12, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants