summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/slate/package.py
diff options
context:
space:
mode:
Diffstat (limited to 'var/spack/repos/builtin/packages/slate/package.py')
-rw-r--r--var/spack/repos/builtin/packages/slate/package.py10
1 files changed, 1 insertions, 9 deletions
diff --git a/var/spack/repos/builtin/packages/slate/package.py b/var/spack/repos/builtin/packages/slate/package.py
index 95b4e89580..778beda83a 100644
--- a/var/spack/repos/builtin/packages/slate/package.py
+++ b/var/spack/repos/builtin/packages/slate/package.py
@@ -84,15 +84,7 @@ class Slate(CMakePackage, CudaPackage, ROCmPackage):
depends_on("scalapack", type="test")
depends_on("hipify-clang", when="@:2021.05.02 +rocm ^hip@5:")
- # TODO: +sycl requires use of the intel-oneapi compiler, but we cannot express that directly.
- # For now, add conflicts for other compilers instead.
- for __compiler in spack.compilers.supported_compilers():
- if __compiler != "oneapi":
- conflicts(
- "%{0}".format(__compiler),
- when="+sycl",
- msg="slate+sycl must be compiled with %oneapi",
- )
+ requires("%oneapi", when="+sycl", msg="slate+sycl must be compiled with %oneapi")
cpp_17_msg = "Requires C++17 compiler support"
conflicts("%gcc@:5", msg=cpp_17_msg)