Skip to content

Commit f1d27d9

Browse files
branch='off' is command to turn CNR mode off, while branch_off is status reflecting that it is off
See https://software.intel.com/en-us/mkl-developer-reference-c-named-constants-for-cnr-control Hence, `mkl.cbwr_set('branch_off')` now raises an exception, and the test is modified to query cnr_const='all' to allow cbwr_get to also see strict flag.
1 parent 45f6ed5 commit f1d27d9

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

mkl/_mkl_service.pyx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -646,7 +646,6 @@ cdef object __cbwr_set(branch=None):
646646
__variables = {
647647
'input': {
648648
'off': mkl.MKL_CBWR_OFF,
649-
'branch_off': mkl.MKL_CBWR_BRANCH_OFF,
650649
'auto': mkl.MKL_CBWR_AUTO,
651650
'compatible': mkl.MKL_CBWR_COMPATIBLE,
652651
'sse2': mkl.MKL_CBWR_SSE2,
@@ -690,7 +689,6 @@ cdef inline __cbwr_get(cnr_const=None):
690689
'all': mkl.MKL_CBWR_ALL,
691690
},
692691
'output': {
693-
mkl.MKL_CBWR_OFF: 'off',
694692
mkl.MKL_CBWR_BRANCH_OFF: 'branch_off',
695693
mkl.MKL_CBWR_AUTO: 'auto',
696694
mkl.MKL_CBWR_COMPATIBLE: 'compatible',

0 commit comments

Comments
 (0)