We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2f9aa4b commit ce24f3eCopy full SHA for ce24f3e
nipype/interfaces/fsl/epi.py
@@ -960,6 +960,8 @@ def __init__(self, **inputs):
960
self._use_cuda()
961
962
def _num_threads_update(self):
963
+ if self.inputs.use_cuda and gpu_count()>0:
964
+ self.inputs.num_threads = 1
965
self._num_threads = self.inputs.num_threads
966
if not isdefined(self.inputs.num_threads):
967
if "OMP_NUM_THREADS" in self.inputs.environ:
@@ -969,6 +971,7 @@ def _num_threads_update(self):
969
971
970
972
def _use_cuda(self):
973
if self.inputs.use_cuda and gpu_count()>0:
974
975
# eddy_cuda usually link to eddy_cudaX.X but some versions miss the symlink
976
# anyway in newer fsl versions eddy automatically use cuda on cuda-capable systems
977
self._cmd = "eddy_cuda" if which("eddy_cuda") else "eddy"
0 commit comments