diff --git a/var/spack/repos/builtin/packages/cuda/package.py b/var/spack/repos/builtin/packages/cuda/package.py index 4e9cf41e7f..a0f4249b03 100644 --- a/var/spack/repos/builtin/packages/cuda/package.py +++ b/var/spack/repos/builtin/packages/cuda/package.py @@ -97,6 +97,9 @@ class Cuda(Package): depends_on('libxml2', when='@10.1.243:') + provides('opencl@:1.2', when='@7:') + provides('opencl@:1.1', when='@:6') + @classmethod def determine_version(cls, exe): output = Executable(exe)('--version', output=str, error=str)