We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2cc5068 commit 817399eCopy full SHA for 817399e
nipype/pipeline/plugins/slurm.py
@@ -53,8 +53,10 @@ def __init__(self, **kwargs):
53
self._template = open(self._template).read()
54
if 'sbatch_args' in kwargs['plugin_args']:
55
self._sbatch_args = kwargs['plugin_args']['sbatch_args']
56
+ if 'enable_cuda' in kwargs['plugin_args'] and kwargs['plugin_args']['enable_cuda']:
57
+ self._template = '\n'.join((self._template, 'CUDA_VISIBLE_DEVICES=0'))
58
self._pending = {}
- super(SLURMPlugin, self).__init__(template, **kwargs)
59
+ super(SLURMPlugin, self).__init__(self._template, **kwargs)
60
61
def _is_pending(self, taskid):
62
# subprocess.Popen requires taskid to be a string
0 commit comments