From 68f82357c8d59e8b1b5988e188b3b439922964ed Mon Sep 17 00:00:00 2001 From: AMD Toolchain Support <73240730+amd-toolchain-support@users.noreply.github.com> Date: Fri, 17 Feb 2023 06:08:58 +0530 Subject: [PATCH] added support zen4 support for gromacs (#35503) Co-authored-by: Umashankar Sivakumar --- var/spack/repos/builtin/packages/gromacs/package.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/var/spack/repos/builtin/packages/gromacs/package.py b/var/spack/repos/builtin/packages/gromacs/package.py index a3c78cf207..6d6624d1a3 100644 --- a/var/spack/repos/builtin/packages/gromacs/package.py +++ b/var/spack/repos/builtin/packages/gromacs/package.py @@ -428,7 +428,10 @@ def cmake_args(self): # Activate SIMD based on properties of the target target = self.spec.target - if target >= "zen2": + if target >= "zen4": + # AMD Family 17h (EPYC Genoa) + options.append("-DGMX_SIMD=AVX_512") + elif target >= "zen2": # AMD Family 17h (EPYC Rome) options.append("-DGMX_SIMD=AVX2_256") elif target >= "zen":