diff options
author | Mark Abraham <Mark.J.Abraham@gmail.com> | 2024-11-26 13:51:54 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-26 05:51:54 -0700 |
commit | 0835a3c5f23a8eb2ef3ebb0477fa7ae6e9f8b33c (patch) | |
tree | 911309c8c1431cd9537cecd242e735c2311678a1 | |
parent | 38a2f9c2f22dfbf0a545b3ef46a602ac6a2f82e8 (diff) | |
download | spack-0835a3c5f23a8eb2ef3ebb0477fa7ae6e9f8b33c.tar.gz spack-0835a3c5f23a8eb2ef3ebb0477fa7ae6e9f8b33c.tar.bz2 spack-0835a3c5f23a8eb2ef3ebb0477fa7ae6e9f8b33c.tar.xz spack-0835a3c5f23a8eb2ef3ebb0477fa7ae6e9f8b33c.zip |
gromacs: obtain SYCL from either ACpp or intel-oneapi-runtime (#47806)
-rw-r--r-- | var/spack/repos/builtin/packages/gromacs/package.py | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/gromacs/package.py b/var/spack/repos/builtin/packages/gromacs/package.py index c05838ff66..f708d42187 100644 --- a/var/spack/repos/builtin/packages/gromacs/package.py +++ b/var/spack/repos/builtin/packages/gromacs/package.py @@ -120,7 +120,16 @@ class Gromacs(CMakePackage, CudaPackage): depends_on("heffte +cuda", when="+heffte +cuda") depends_on("heffte +sycl", when="+heffte +sycl") variant("opencl", default=False, description="Enable OpenCL support") - variant("sycl", default=False, when="@2021: %clang", description="Enable SYCL support") + variant("sycl", default=False, when="@2021:", description="Enable SYCL support") + requires( + "^intel-oneapi-runtime", + "^hipsycl %clang", + policy="one_of", + when="+sycl", + msg="GROMACS SYCL support comes either from intel-oneapi-runtime or a " + + "package that provides the virtual package `sycl`, such as AdaptiveCpp " + + "plus a clang compiler.", + ) variant( "intel-data-center-gpu-max", default=False, |