Skip to content

Commit 148e82b

Browse files
Added off parameter into mkl_cbwr_set function
1 parent c9d9b89 commit 148e82b

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

mkl-service/_mkl_service.pyx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -617,6 +617,7 @@ cdef inline __cbwr_set(branch=None):
617617
"""
618618
__variables = {
619619
'input': {
620+
'off': mkl.MKL_CBWR_BRANCH_OFF,
620621
'auto': mkl.MKL_CBWR_AUTO,
621622
'compatible': mkl.MKL_CBWR_COMPATIBLE,
622623
'sse2': mkl.MKL_CBWR_SSE2,
@@ -655,6 +656,7 @@ cdef inline __cbwr_get(cnr_const=None):
655656
'all': mkl.MKL_CBWR_ALL,
656657
},
657658
'output': {
659+
mkl.MKL_CBWR_BRANCH_OFF: 'off',
658660
mkl.MKL_CBWR_AUTO: 'auto',
659661
mkl.MKL_CBWR_COMPATIBLE: 'compatible',
660662
mkl.MKL_CBWR_SSE2: 'sse2',
@@ -667,7 +669,6 @@ cdef inline __cbwr_get(cnr_const=None):
667669
mkl.MKL_CBWR_AVX512_MIC: 'avx512_mic',
668670
mkl.MKL_CBWR_AVX512: 'avx512',
669671
mkl.MKL_CBWR_SUCCESS: 'success',
670-
mkl.MKL_CBWR_BRANCH_OFF: 'branch_off',
671672
mkl.MKL_CBWR_ERR_INVALID_INPUT: 'err_invalid_input',
672673
},
673674
}

mkl-service/tests/test_mkl_service.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,9 @@ def test_set_memory_limit(self):
159159

160160
class test_conditional_numerical_reproducibility_control:
161161
# https://software.intel.com/en-us/mkl-developer-reference-c-conditional-numerical-reproducibility-control
162+
def test_cbwr_set_off(self):
163+
mkl.cbwr_set(branch='off')
164+
162165
def test_cbwr_set_auto(self):
163166
mkl.cbwr_set(branch='auto')
164167

0 commit comments

Comments
 (0)