File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -99,7 +99,7 @@ cpdef domain_set_num_threads(num_threads, domain='all'):
99
99
https://software.intel.com/en-us/mkl-developer-reference-c-mkl-domain-set-num-threads
100
100
"""
101
101
cdef c_num_threads = __python_obj_to_int(num_threads, ' domain_set_num_threads' )
102
- __check_positive_num_threads (c_num_threads, ' domain_set_num_threads' )
102
+ __check_non_negative_num_threads (c_num_threads, ' domain_set_num_threads' )
103
103
104
104
cdef int c_mkl_domain = __domain_to_mkl_domain(domain)
105
105
cdef int c_mkl_status = __domain_set_num_threads(c_num_threads, c_mkl_domain)
@@ -396,7 +396,7 @@ cdef void __check_positive_num_threads(int p, func_name):
396
396
397
397
cdef void __check_non_negative_num_threads(int p, func_name):
398
398
if p < 0 :
399
- warnings.warn(" Non-positive argument of " + func_name +
399
+ warnings.warn(" Negative argument of " + func_name +
400
400
" is being ignored, number of threads will not be changed" )
401
401
402
402
You can’t perform that action at this time.
0 commit comments