Skip to content

Commit 878a33b

Browse files
fix the test
1 parent 87083ad commit 878a33b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_mkl_service.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ class test_threading_control():
4848
# https://software.intel.com/en-us/mkl-developer-reference-c-threading-control
4949
def test_set_num_threads(self):
5050
saved = mkl.get_max_threads()
51-
half_nt = int( 0.5 + saved / 2 )
51+
half_nt = int( (1 + saved) / 2 )
5252
mkl.set_num_threads(half_nt)
5353
assert(mkl.get_max_threads() == half_nt)
5454
mkl.set_num_threads(saved)

0 commit comments

Comments
 (0)