@@ -275,7 +275,7 @@ cpdef cbwr_set(branch=None):
275
275
return __cbwr_set(branch)
276
276
277
277
278
- cpdef cbwr_get(cnr_const = None ):
278
+ cpdef cbwr_get(cnr_const = ' all ' ):
279
279
"""
280
280
Returns the current CNR settings.
281
281
https://software.intel.com/en-us/mkl-developer-reference-c-mkl-cbwr-get
@@ -390,12 +390,14 @@ cdef int __python_obj_to_int(obj, func_name):
390
390
391
391
cdef void __check_positive_num_threads(int p, func_name):
392
392
if p <= 0 :
393
- warnings.warn(" Non-positive argument of " + func_name + " is being ignored, number of threads will not be changed" )
393
+ warnings.warn(" Non-positive argument of " + func_name +
394
+ " is being ignored, number of threads will not be changed" )
394
395
395
396
396
397
cdef void __check_non_negative_num_threads(int p, func_name):
397
398
if p < 0 :
398
- warnings.warn(" Non-positive argument of " + func_name + " is being ignored, number of threads will not be changed" )
399
+ warnings.warn(" Non-positive argument of " + func_name +
400
+ " is being ignored, number of threads will not be changed" )
399
401
400
402
401
403
cdef inline int __mkl_str_to_int(variable, possible_variables_dict):
@@ -404,7 +406,8 @@ cdef inline int __mkl_str_to_int(variable, possible_variables_dict):
404
406
if possible_variables_dict is None :
405
407
raise RuntimeError (" Dictionary mapping possible variable value to internal code is missing" )
406
408
if variable not in possible_variables_dict:
407
- raise ValueError (' Variable: <' + str (variable) + ' > not in ' + str (possible_variables_dict))
409
+ raise ValueError (' Variable: <' + str (variable) + ' > not in ' +
410
+ str (possible_variables_dict.keys()))
408
411
409
412
return possible_variables_dict[variable]
410
413
@@ -414,7 +417,8 @@ cdef __mkl_int_to_str(int mkl_int_variable, possible_variables_dict):
414
417
raise RuntimeError (" Dictionary mapping possible internal code to output string is missing" )
415
418
416
419
if mkl_int_variable not in possible_variables_dict:
417
- raise ValueError (' Variable: <' + str (mkl_int_variable) + ' > not in ' + str (possible_variables_dict))
420
+ raise ValueError (' Variable: <' + str (mkl_int_variable) + ' > not in ' +
421
+ str (possible_variables_dict.keys()))
418
422
419
423
return possible_variables_dict[mkl_int_variable]
420
424
@@ -653,6 +657,12 @@ cdef object __cbwr_set(branch=None):
653
657
' avx2' : mkl.MKL_CBWR_AVX2,
654
658
' avx512_mic' : mkl.MKL_CBWR_AVX512_MIC,
655
659
' avx512' : mkl.MKL_CBWR_AVX512,
660
+ ' avx512_e1' : mkl.MKL_CBWR_AVX512_E1,
661
+ ' avx512_mic_e1' : mkl.MKL_CBWR_AVX512_MIC_E1,
662
+ ' avx2,strict' : mkl.MKL_CBWR_AVX2 | mkl.MKL_CBWR_STRICT,
663
+ ' avx512_mic,strict' : mkl.MKL_CBWR_AVX512_MIC | mkl.MKL_CBWR_STRICT,
664
+ ' avx512,strict' : mkl.MKL_CBWR_AVX512 | mkl.MKL_CBWR_STRICT,
665
+ ' avx512_e1,strict' : mkl.MKL_CBWR_AVX512_E1 | mkl.MKL_CBWR_STRICT,
656
666
},
657
667
' output' : {
658
668
mkl.MKL_CBWR_SUCCESS: ' success' ,
@@ -850,6 +860,7 @@ cdef object __vml_set_mode(accuracy, ftzdaz, errmode):
850
860
' ftzdaz' : {
851
861
' on' : mkl.VML_FTZDAZ_ON,
852
862
' off' : mkl.VML_FTZDAZ_OFF,
863
+ ' default' : 0 ,
853
864
},
854
865
' errmode' : {
855
866
' ignore' : mkl.VML_ERRMODE_IGNORE,
0 commit comments