Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
bob
bob.bio.vein
Commits
29f0013e
Commit
29f0013e
authored
Oct 22, 2020
by
Yannick DAYER
Browse files
[py] Remove grid configs
parent
ec47224a
Changes
3
Hide whitespace changes
Inline
Side-by-side
bob/bio/vein/config/gridio4g48.py
deleted
100644 → 0
View file @
ec47224a
#!/usr/bin/env python
# vim: set fileencoding=utf-8 :
'''Grid configurations for bob.bio.vein'''
import
bob.bio.base
grid
=
bob
.
bio
.
base
.
grid
.
Grid
(
number_of_preprocessing_jobs
=
48
,
number_of_extraction_jobs
=
48
,
number_of_projection_jobs
=
48
,
number_of_enrollment_jobs
=
48
,
number_of_scoring_jobs
=
48
,
training_queue
=
'4G-io-big'
,
preprocessing_queue
=
'4G-io-big'
,
extraction_queue
=
'4G-io-big'
,
projection_queue
=
'4G-io-big'
,
enrollment_queue
=
'4G-io-big'
,
scoring_queue
=
'4G-io-big'
)
'''Defines an SGE grid configuration for running at Idiap
This grid configuration will use 48 slots for each of the stages defined below.
The queue ``4G-io-big`` corresponds to the following settings:
* ``queue``: ``q1d`` (in this queue you have a maximum of 48 slots according
to: https://secure.idiap.ch/intranet/system/computing/ComputationGrid
* ``memfree``: ``4G`` (this is the minimum amount of memory you can take -
the lower, the more probable your job will be allocated faster)
* ``io_big``: SET (this flag must be set so your job runs downstairs and not
on people's workstations
Notice the queue names do not directly correspond SGE grid queue names. These
are names only known to :py:mod:`bob.bio.base.grid` and are translated
from there to settings which are finally passed to ``gridtk``.
To use this configuration file, just add it to your ``verify.py`` commandline.
For example::
$ verify.py <other-options> gridio4g48
'''
bob/bio/vein/config/parallel.py
deleted
100644 → 0
View file @
ec47224a
#!/usr/bin/env python
# vim: set fileencoding=utf-8 :
"""Sets-up parallel processing using all available processors"""
import
multiprocessing
parallel
=
multiprocessing
.
cpu_count
()
"""The number of processes to spawn for a given run
The default is the value returned by :py:func:`multiprocessing.cpu_count` on
**your** machine (disregard the value above). If you want to tune it, using the
``--parallel`` command-line option or the attribute ``parallel`` on a
configuration file read **after** this one.
"""
nice
=
10
"""Operating system priority (the higher the smaller)
This value controls the execution priority for jobs launched by a run of
the verification scripts. By default, jobs would be launched with priority of
zero if this setting is not in place. By increasing the value (i.e., reducing
the priority of spawn processes), existing programs already running on your
desktop (such as your web browser) will have more priority and won't become
irresponsive.
Setting this value is optional, but you cannot set it to value smaller than
zero (the default). The maximum is 19. You may read the manual for `renice` for
more information about this setting.
"""
doc/resources.rst
View file @
29f0013e
...
...
@@ -101,27 +101,3 @@ Wide-Line Detector and Miura Matching
.. automodule:: bob.bio.vein.config.wide_line_detector
:members:
Other Resources
---------------
Other resources which include configuration parameters for circumstantial
usage.
.. _bob.bio.vein.resources.parallel:
Parallel Running
================
.. automodule:: bob.bio.vein.config.parallel
:members:
Using SGE at Idiap
==================
.. automodule:: bob.bio.vein.config.gridio4g48
:members:
Write
Preview
Supports
Markdown
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