From b597e01e330637318ca5bd6d01e6faef9b2754ac Mon Sep 17 00:00:00 2001 From: Harmen Stoppels Date: Wed, 3 Feb 2021 18:06:49 +0100 Subject: [PATCH] Add cuda as opencl provider (#21464) --- var/spack/repos/builtin/packages/cuda/package.py | 3 +++ 1 file changed, 3 insertions(+) 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)