Add cuda as opencl provider (#21464)

This commit is contained in:
Harmen Stoppels 2021-02-03 18:06:49 +01:00 committed by GitHub
parent 2b7547c03c
commit b597e01e33
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -97,6 +97,9 @@ class Cuda(Package):
depends_on('libxml2', when='@10.1.243:') depends_on('libxml2', when='@10.1.243:')
provides('opencl@:1.2', when='@7:')
provides('opencl@:1.1', when='@:6')
@classmethod @classmethod
def determine_version(cls, exe): def determine_version(cls, exe):
output = Executable(exe)('--version', output=str, error=str) output = Executable(exe)('--version', output=str, error=str)