summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authormarvinbernhardt <marvinbernhardt@users.noreply.github.com>2021-02-07 12:37:56 +0100
committerGitHub <noreply@github.com>2021-02-07 12:37:56 +0100
commitd58ed202397a67ab624c4003dfcf765a7eec68a7 (patch)
treeea22f5d478568bed19fbc2cc395bc4811cce3401 /var
parentd630d63755a0cf0315a164eb1308c49fb0e5847b (diff)
downloadspack-d58ed202397a67ab624c4003dfcf765a7eec68a7.tar.gz
spack-d58ed202397a67ab624c4003dfcf765a7eec68a7.tar.bz2
spack-d58ed202397a67ab624c4003dfcf765a7eec68a7.tar.xz
spack-d58ed202397a67ab624c4003dfcf765a7eec68a7.zip
handle other architectures than Intel (#21509)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/gromacs/package.py8
1 files changed, 4 insertions, 4 deletions
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