def enable_best_instructions_set(): for instructions_set in ['avx512', 'avx2', 'avx', 'sse4_2']: if mkl.enable_instructions(instructions_set) == 'success': result = instructions_set break else: result = 'error' return result
def test_enable_instructions_sse4_2(self): mkl.enable_instructions('sse4_2')
def test_enable_instructions_avx(self): mkl.enable_instructions('avx')
def test_enable_instructions_avx512_mic(self): mkl.enable_instructions('avx512_mic')