From 6c0c3ecd823ecd2ecdc244887ffd940f2fb3ed83 Mon Sep 17 00:00:00 2001 From: Michael Kuron <mkuron@icp.uni-stuttgart.de> Date: Thu, 11 Feb 2021 14:35:13 +0100 Subject: [PATCH] try again to fix test on Windows --- pystencils_tests/test_random.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pystencils_tests/test_random.py b/pystencils_tests/test_random.py index 9a0724cf1..cf1de7c27 100644 --- a/pystencils_tests/test_random.py +++ b/pystencils_tests/test_random.py @@ -14,10 +14,10 @@ RNGs = {('philox', 'float'): PhiloxFourFloats, ('philox', 'double'): PhiloxTwoDo instruction_sets = get_supported_instruction_sets() if get_compiler_config()['os'] == 'windows': # skip instruction sets supported by CPU but not the compiler - if '/arch:avx2' not in get_compiler_config()['flags'].lower() and \ - '/arch:avx512' not in get_compiler_config()['flags'].lower(): + if 'avx' in instruction_sets and ('/arch:avx2' not in get_compiler_config()['flags'].lower() + or '/arch:avx512' not in get_compiler_config()['flags'].lower()): instruction_sets.remove('avx') - if '/arch:avx512' not in get_compiler_config()['flags'].lower(): + if 'avx512' in instruction_sets and '/arch:avx512' not in get_compiler_config()['flags'].lower(): instruction_sets.remove('avx512') -- GitLab