From d58ed202397a67ab624c4003dfcf765a7eec68a7 Mon Sep 17 00:00:00 2001 From: marvinbernhardt Date: Sun, 7 Feb 2021 12:37:56 +0100 Subject: handle other architectures than Intel (#21509) --- var/spack/repos/builtin/packages/gromacs/package.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'var') diff --git a/var/spack/repos/builtin/packages/gromacs/package.py b/var/spack/repos/builtin/packages/gromacs/package.py index 5e8b80e626..68ef10c330 100644 --- a/var/spack/repos/builtin/packages/gromacs/package.py +++ b/var/spack/repos/builtin/packages/gromacs/package.py @@ -211,8 +211,8 @@ class Gromacs(CMakePackage): elif target == 'mic_knl': # Intel KNL options.append('-DGMX_SIMD=AVX_512_KNL') - elif target.vendor == 'GenuineIntel': - # Other Intel architectures + else: + # Other architectures simd_features = [ ('sse2', 'SSE2'), ('sse4_1', 'SSE4.1'), @@ -231,8 +231,8 @@ class Gromacs(CMakePackage): if feature in target: options.append('-DGMX_SIMD:STRING={0}'.format(flag)) break - else: - # Fall back to this for unknown microarchitectures + + # Fall back options.append('-DGMX_SIMD:STRING=None') # Use the 'rtdscp' assembly instruction only on -- cgit v1.2.3-70-g09d2