Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
bob
bob.pipelines
Commits
85476238
Commit
85476238
authored
Apr 24, 2020
by
Tiago de Freitas Pereira
Browse files
[sphinx] Updated documentation
parent
ee8cbfbd
Pipeline
#39148
passed with stage
in 4 minutes and 19 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
doc/python/pipeline_example_dask_sge.py
View file @
85476238
...
...
@@ -75,11 +75,11 @@ Q_1DAY_GPU_SPEC = {
},
}
from
bob.pipelines.distributed.sge
import
SGE
Idiap
Cluster
from
bob.pipelines.distributed.sge
import
SGE
MultipleQueues
Cluster
from
dask.distributed
import
Client
cluster
=
SGE
IdiapCluster
(
sge_job_spec
=
Q_1DAY_GPU_SPEC
)
cluster
.
scale
(
1
,
sge_job_spec_key
=
"gpu"
)
# Submitting 1 job in the q_gpu queue
cluster
=
SGE
MultipleQueuesCluster
(
)
cluster
.
scale
(
1
,
sge_job_spec_key
=
"
q_
gpu"
)
# Submitting 1 job in the q_gpu queue
cluster
.
scale
(
10
)
# Submitting 9 jobs in the q_1day queue
client
=
Client
(
cluster
)
# Creating the scheduler
...
...
doc/python/pipeline_example_dask_sge_adaptive.py
View file @
85476238
...
...
@@ -75,10 +75,10 @@ Q_1DAY_GPU_SPEC = {
},
}
from
bob.pipelines.distributed.sge
import
SGE
Idiap
Cluster
from
bob.pipelines.distributed.sge
import
SGE
MultipleQueues
Cluster
from
dask.distributed
import
Client
cluster
=
SGE
Idiap
Cluster
(
sge_job_spec
=
Q_1DAY_GPU_SPEC
)
cluster
=
SGE
MultipleQueues
Cluster
(
sge_job_spec
=
Q_1DAY_GPU_SPEC
)
cluster
.
scale
(
1
)
# Submitting 1 job in the q_gpu queue
cluster
.
adapt
(
minimum
=
1
,
maximum
=
10
)
client
=
Client
(
cluster
)
# Creating the scheduler
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment