Skip to content

Commit 737f641

Browse files
get_cpu_count is to use mkl.get_max_threads_count() as default value
1 parent 9951eeb commit 737f641

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

mkl_fft/_scipy_fft_backend.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -54,13 +54,7 @@ def __init__(self):
5454
def get_cpu_count(self):
5555
if self.cpu_count is None:
5656
max_threads = self.get_max_threads_count()
57-
self.cpu_count = os_cpu_count()
58-
if self.cpu_count > max_threads:
59-
warnings.warn(
60-
("os.cpu_count() returned value of {} greater than mkl.get_max_threads()'s value of {}. "
61-
"Using negative values of worker option may amount to requesting more threads than "
62-
"Intel(R) MKL can acommodate."
63-
).format(self.cpu_count, max_threads))
57+
self.cpu_count = max_threads
6458
return self.cpu_count
6559

6660
def get_max_threads_count(self):

0 commit comments

Comments
 (0)