Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
bob.pipelines
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
bob
bob.pipelines
Commits
08f776d0
Commit
08f776d0
authored
4 years ago
by
Yannick DAYER
Browse files
Options
Downloads
Patches
Plain Diff
[py] Added a gpu queue that defaults to short_gpu.
parent
7313bb39
No related branches found
No related tags found
1 merge request
!41
Added a GPU queue that defaults to short_gpu
Pipeline
#44640
passed
4 years ago
Stage: build
Changes
3
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
bob/pipelines/config/distributed/sge_gpu.py
+2
-2
2 additions, 2 deletions
bob/pipelines/config/distributed/sge_gpu.py
bob/pipelines/distributed/sge_queues.py
+6
-7
6 additions, 7 deletions
bob/pipelines/distributed/sge_queues.py
setup.py
+1
-1
1 addition, 1 deletion
setup.py
with
9 additions
and
10 deletions
bob/pipelines/config/distributed/sge_
light
.py
→
bob/pipelines/config/distributed/sge_
gpu
.py
+
2
−
2
View file @
08f776d0
from
dask.distributed
import
Client
from
bob.pipelines.distributed.sge
import
SGEMultipleQueuesCluster
from
bob.pipelines.distributed.sge_queues
import
QUEUE_
LIGHT
from
bob.pipelines.distributed.sge_queues
import
QUEUE_
GPU
cluster
=
SGEMultipleQueuesCluster
(
min_jobs
=
20
,
sge_job_spec
=
QUEUE_
LIGHT
)
cluster
=
SGEMultipleQueuesCluster
(
min_jobs
=
20
,
sge_job_spec
=
QUEUE_
GPU
)
dask_client
=
Client
(
cluster
)
This diff is collapsed.
Click to expand it.
bob/pipelines/distributed/sge_queues.py
+
6
−
7
View file @
08f776d0
...
...
@@ -50,14 +50,14 @@ default
"""
QUEUE_
LIGHT
=
{
QUEUE_
GPU
=
{
"
default
"
:
{
"
queue
"
:
"
q_
1day
"
,
"
memory
"
:
"
4
GB
"
,
"
queue
"
:
"
q_
short_gpu
"
,
"
memory
"
:
"
30
GB
"
,
"
io_big
"
:
False
,
"
resource_spec
"
:
""
,
"
max_jobs
"
:
96
,
"
resources
"
:
""
,
"
max_jobs
"
:
45
,
"
resources
"
:
{
"
q_short_gpu
"
:
1
}
,
},
"
q_1day
"
:
{
"
queue
"
:
"
q_1day
"
,
...
...
@@ -98,6 +98,5 @@ QUEUE_LIGHT = {
},
}
"""
This queue setup has a light arrangement.
For CPU jobs, it prioritizes all.q and not io_big
This queue setup uses the q_short_gpu queue of the SGE.
"""
This diff is collapsed.
Click to expand it.
setup.py
+
1
−
1
View file @
08f776d0
...
...
@@ -46,7 +46,7 @@ setup(
'
dask.client
'
:
[
'
local-parallel = bob.pipelines.config.distributed.local_parallel
'
,
'
sge = bob.pipelines.config.distributed.sge_default
'
,
'
sge-
light
= bob.pipelines.config.distributed.sge_
light
'
,
'
sge-
gpu
= bob.pipelines.config.distributed.sge_
gpu
'
,
],
},
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment