Bugfix for x86_64 skylake and other archs where SIMD features are disabled by Fall back option. (#21727)
This commit is contained in:
parent
3e72a12bfd
commit
d429265d8b
@ -262,13 +262,16 @@ def cmake_args(self):
|
|||||||
('avx512', 'AVX_512') in simd_features):
|
('avx512', 'AVX_512') in simd_features):
|
||||||
simd_features.remove(('avx512', 'AVX_512'))
|
simd_features.remove(('avx512', 'AVX_512'))
|
||||||
|
|
||||||
|
feature_set = False
|
||||||
for feature, flag in reversed(simd_features):
|
for feature, flag in reversed(simd_features):
|
||||||
if feature in target:
|
if feature in target:
|
||||||
options.append('-DGMX_SIMD:STRING={0}'.format(flag))
|
options.append('-DGMX_SIMD:STRING={0}'.format(flag))
|
||||||
|
feature_set = True
|
||||||
break
|
break
|
||||||
|
|
||||||
# Fall back
|
# 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
|
# Use the 'rtdscp' assembly instruction only on
|
||||||
# appropriate architectures
|
# appropriate architectures
|
||||||
|
Loading…
Reference in New Issue
Block a user