Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions config/cscs.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,22 @@ class ReframeSettings:
'resources': {
'switches': ['--switches={num_switches}']
}
},

'jupyter_gpu': {
'scheduler': 'nativeslurm',
'environs': ['builtin'],
'access': ['-Cgpu', '--reservation=jupyter_gpu'],
'descr': 'JupyterHub GPU nodes',
'max_jobs': 10,
},

'jupyter_mc': {
'scheduler': 'nativeslurm',
'environs': ['builtin'],
'access': ['-Cmc', '--reservation=jupyter_mc'],
'descr': 'JupyterHub multicore nodes',
'max_jobs': 10,
}
}
},
Expand Down Expand Up @@ -196,6 +212,22 @@ class ReframeSettings:
'switches': ['--switches={num_switches}']
}
},

'jupyter_gpu': {
'scheduler': 'nativeslurm',
'environs': ['builtin'],
'access': ['-Cgpu', '--reservation=jupyter_gpu'],
'descr': 'JupyterHub GPU nodes',
'max_jobs': 10,
},

'jupyter_mc': {
'scheduler': 'nativeslurm',
'environs': ['builtin'],
'access': ['-Cmc', '--reservation=jupyter_mc'],
'descr': 'JupyterHub multicore nodes',
'max_jobs': 10,
}
}
},

Expand Down
15 changes: 15 additions & 0 deletions cscs-checks/tools/jupyter/jupyter_tests.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import reframe as rfm
import reframe.utility.sanity as sn


@rfm.simple_test
class JupyterHubSubmitTest(rfm.RunOnlyRegressionTest):
def __init__(self):
self.valid_systems = ['daint:jupyter_gpu', 'daint:jupyter_mc',
'dom:jupyter_gpu', 'dom:jupyter_mc']
self.valid_prog_environs = ['*']
self.sourcesdir = None
self.executable = 'hostname'
self.time_limit = (0, 1, 0)
self.sanity_patterns = sn.assert_found(r'nid\d+', self.stdout)
self.tags = {'production', 'maintenance'}