Bugfix for x86_64 skylake and other archs where SIMD features are disabled by Fall back option. (#21727)

This commit is contained in:
Evan Bollig 2021-02-17 10:09:34 -06:00 committed by GitHub
parent 3e72a12bfd
commit d429265d8b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -262,13 +262,16 @@ def cmake_args(self):
('avx512', 'AVX_512') in simd_features):
simd_features.remove(('avx512', 'AVX_512'))
feature_set = False
for feature, flag in reversed(simd_features):
if feature in target:
options.append('-DGMX_SIMD:STRING={0}'.format(flag))
feature_set = True
break
# Fall back
options.append('-DGMX_SIMD:STRING=None')
if not feature_set:
options.append('-DGMX_SIMD:STRING=None')
# Use the 'rtdscp' assembly instruction only on
# appropriate architectures