Add cuda as opencl provider (#21464)
This commit is contained in:
parent
2b7547c03c
commit
b597e01e33
1 changed files with 3 additions and 0 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue