Skip to content
Snippets Groups Projects
Commit b053b5fa authored by Michael Kuron's avatar Michael Kuron :mortar_board:
Browse files

Fix logic error in RNG test

parent 9919c193
No related merge requests found
...@@ -13,9 +13,9 @@ RNGs = {('philox', 'float'): PhiloxFourFloats, ('philox', 'double'): PhiloxTwoDo ...@@ -13,9 +13,9 @@ RNGs = {('philox', 'float'): PhiloxFourFloats, ('philox', 'double'): PhiloxTwoDo
instruction_sets = get_supported_instruction_sets() instruction_sets = get_supported_instruction_sets()
if get_compiler_config()['os'] == 'windows': if get_compiler_config()['os'] == 'windows':
# skip instruction sets supported by CPU but not the compiler # skip instruction sets supported by the CPU but not by the compiler
if 'avx' in instruction_sets and ('/arch:avx2' 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()): and '/arch:avx512' not in get_compiler_config()['flags'].lower()):
instruction_sets.remove('avx') instruction_sets.remove('avx')
if 'avx512' in instruction_sets and '/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') instruction_sets.remove('avx512')
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment