Skip to content
Snippets Groups Projects
Commit daa824f4 authored by Manuel Günther's avatar Manuel Günther
Browse files

Added demanding grid config

parent fc7f0908
No related branches found
No related tags found
No related merge requests found
import bob.bio.base
# define a queue with demanding parameters
grid = bob.bio.base.grid.Grid(
training_queue = '32G',
# preprocessing
preprocessing_queue = '4G',
# feature extraction
extraction_queue = '8G',
# feature projection
projection_queue = '8G',
# model enrollment
enrollment_queue = '8G',
# scoring
scoring_queue = '8G'
)
from . import dummy
...@@ -26,6 +26,8 @@ def test_grid(): ...@@ -26,6 +26,8 @@ def test_grid():
# try to load the grid configurations # try to load the grid configurations
g = bob.bio.base.load_resource("grid", "grid") g = bob.bio.base.load_resource("grid", "grid")
assert not g.is_local() assert not g.is_local()
g = bob.bio.base.load_resource("demanding", "grid")
assert not g.is_local()
g = bob.bio.base.load_resource("local-p4", "grid") g = bob.bio.base.load_resource("local-p4", "grid")
assert g.is_local() assert g.is_local()
......
...@@ -33,10 +33,10 @@ ...@@ -33,10 +33,10 @@
# allows you to test your package with new python dependencies w/o requiring # allows you to test your package with new python dependencies w/o requiring
# administrative interventions. # administrative interventions.
from setuptools import setup, find_packages, dist from setuptools import setup, dist
dist.Distribution(dict(setup_requires=['bob.extension'])) dist.Distribution(dict(setup_requires=['bob.extension']))
from bob.extension.utils import load_requirements from bob.extension.utils import load_requirements, find_packages
install_requires = load_requirements() install_requires = load_requirements()
# The only thing we do in this file is to call the setup() function with all # The only thing we do in this file is to call the setup() function with all
...@@ -105,6 +105,7 @@ setup( ...@@ -105,6 +105,7 @@ setup(
'console_scripts' : [ 'console_scripts' : [
'verify.py = bob.bio.base.script.verify:main', 'verify.py = bob.bio.base.script.verify:main',
'resources.py = bob.bio.base.script.resources:main', 'resources.py = bob.bio.base.script.resources:main',
'evaluate.py = bob.bio.base.script.evaluate:main',
], ],
'bob.bio.database': [ 'bob.bio.database': [
...@@ -134,7 +135,8 @@ setup( ...@@ -134,7 +135,8 @@ setup(
'local-p4 = bob.bio.base.config.grid.local:grid', 'local-p4 = bob.bio.base.config.grid.local:grid',
'local-p8 = bob.bio.base.config.grid.local:grid_p8', 'local-p8 = bob.bio.base.config.grid.local:grid_p8',
'local-p16 = bob.bio.base.config.grid.local:grid_p16', 'local-p16 = bob.bio.base.config.grid.local:grid_p16',
'grid = bob.bio.base.config.grid.grid:grid' 'grid = bob.bio.base.config.grid.grid:grid',
'demanding = bob.bio.base.config.grid.demanding:grid',
], ],
}, },
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment