Skip to content

Commit 5442bc1

Browse files
authored
README: Remove an old SGE (qsub) example (#8)
This package is going to focus only on LSF, and thus other schedulers (such as SGE via `qsub`) are not within scope for this package.
1 parent a12ecb0 commit 5442bc1

File tree

1 file changed

+0
-54
lines changed

1 file changed

+0
-54
lines changed

README.md

-54
Original file line numberDiff line numberDiff line change
@@ -10,57 +10,3 @@ Implemented in this package (the `LSFClusterManager.jl` package):
1010
| Job queue system | Command to add processors |
1111
| ---------------- | ------------------------- |
1212
| Load Sharing Facility (LSF) | `addprocs_lsf(np::Integer; bsub_flags=``, ssh_cmd=``)` or `addprocs(LSFManager(np, bsub_flags, ssh_cmd, retry_delays, throttle))` |
13-
14-
### LSF: a simple interactive example
15-
16-
```julia
17-
julia> using LSFClusterManager
18-
19-
julia> LSFClusterManager.addprocs_sge(5; qsub_flags=`-q queue_name`)
20-
job id is 961, waiting for job to start .
21-
5-element Array{Any,1}:
22-
2
23-
3
24-
4
25-
5
26-
6
27-
28-
julia> @parallel for i=1:5
29-
run(`hostname`)
30-
end
31-
32-
julia> From worker 2: compute-6
33-
From worker 4: compute-6
34-
From worker 5: compute-6
35-
From worker 6: compute-6
36-
From worker 3: compute-6
37-
```
38-
39-
Some clusters require the user to specify a list of required resources.
40-
For example, it may be necessary to specify how much memory will be needed by the job - see this [issue](https://github.com/JuliaLang/julia/issues/10390).
41-
The keyword `qsub_flags` can be used to specify these and other options.
42-
Additionally the keyword `wd` can be used to specify the working directory (which defaults to `ENV["HOME"]`).
43-
44-
```julia
45-
julia> using Distributed, LSFClusterManager
46-
47-
julia> addprocs_sge(5; qsub_flags=`-q queue_name -l h_vmem=4G,tmem=4G`, wd=mktempdir())
48-
Job 5672349 in queue.
49-
Running.
50-
5-element Array{Int64,1}:
51-
2
52-
3
53-
4
54-
5
55-
6
56-
57-
julia> pmap(x->run(`hostname`),workers());
58-
59-
julia> From worker 26: lum-7-2.local
60-
From worker 23: pace-6-10.local
61-
From worker 22: chong-207-10.local
62-
From worker 25: cheech-207-16.local
63-
64-
julia> rmprocs(workers())
65-
Task (done)
66-
```

0 commit comments

Comments
 (0)