From 0cd0308d44aa990842d8a987b17842413d761db2 Mon Sep 17 00:00:00 2001 From: Brendan Smithyman Date: Mon, 22 Jun 2015 14:42:11 -0400 Subject: [PATCH] Fixed error when the 'mkl' package is not installed.' --- SimPEG/Parallel.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/SimPEG/Parallel.py b/SimPEG/Parallel.py index 7a49fb5a..e07b02fa 100644 --- a/SimPEG/Parallel.py +++ b/SimPEG/Parallel.py @@ -539,10 +539,9 @@ class RemoteInterface(object): def _adjustMKLVectorization(nt=1): try: import mkl + mkl.set_num_threads(nt) except ImportError: pass - finally: - mkl.set_num_threads(nt) @staticmethod def _cdSame(rc):