handle other architectures than Intel (#21509)
This commit is contained in:
parent
d630d63755
commit
d58ed20239
@ -211,8 +211,8 @@ def cmake_args(self):
|
|||||||
elif target == 'mic_knl':
|
elif target == 'mic_knl':
|
||||||
# Intel KNL
|
# Intel KNL
|
||||||
options.append('-DGMX_SIMD=AVX_512_KNL')
|
options.append('-DGMX_SIMD=AVX_512_KNL')
|
||||||
elif target.vendor == 'GenuineIntel':
|
else:
|
||||||
# Other Intel architectures
|
# Other architectures
|
||||||
simd_features = [
|
simd_features = [
|
||||||
('sse2', 'SSE2'),
|
('sse2', 'SSE2'),
|
||||||
('sse4_1', 'SSE4.1'),
|
('sse4_1', 'SSE4.1'),
|
||||||
@ -231,8 +231,8 @@ def cmake_args(self):
|
|||||||
if feature in target:
|
if feature in target:
|
||||||
options.append('-DGMX_SIMD:STRING={0}'.format(flag))
|
options.append('-DGMX_SIMD:STRING={0}'.format(flag))
|
||||||
break
|
break
|
||||||
else:
|
|
||||||
# Fall back to this for unknown microarchitectures
|
# Fall back
|
||||||
options.append('-DGMX_SIMD:STRING=None')
|
options.append('-DGMX_SIMD:STRING=None')
|
||||||
|
|
||||||
# Use the 'rtdscp' assembly instruction only on
|
# Use the 'rtdscp' assembly instruction only on
|
||||||
|
Loading…
Reference in New Issue
Block a user