kokkos package: +cuda requires +wrapper when compiler is not clang (#21941)

This check is performed in cmake_args rather than with a 'conflicts'
statement because matching on !clang (i.e. any compiler that is not
clang) cannot currently be done with our spec syntax.
This commit is contained in:
eugeneswalker 2021-03-01 14:54:14 -08:00 committed by GitHub
parent d7595d6703
commit 36ae5ac6ef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -217,6 +217,11 @@ def setup_dependent_package(self, module, dependent_spec):
def cmake_args(self):
spec = self.spec
if spec.satisfies('~wrapper+cuda') and not spec.satisfies('%clang'):
raise InstallError("Kokkos requires +wrapper when using +cuda"
"without clang")
options = []
isdiy = "+diy" in spec