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 87083ad commit 878a33bCopy full SHA for 878a33b
tests/test_mkl_service.py
@@ -48,7 +48,7 @@ class test_threading_control():
48
# https://software.intel.com/en-us/mkl-developer-reference-c-threading-control
49
def test_set_num_threads(self):
50
saved = mkl.get_max_threads()
51
- half_nt = int( 0.5 + saved / 2 )
+ half_nt = int( (1 + saved) / 2 )
52
mkl.set_num_threads(half_nt)
53
assert(mkl.get_max_threads() == half_nt)
54
mkl.set_num_threads(saved)
0 commit comments