gloo: add +cuda variant (#24390)
This commit is contained in:
parent
d4b5911671
commit
1c22742eed
@ -6,7 +6,7 @@
|
|||||||
from spack import *
|
from spack import *
|
||||||
|
|
||||||
|
|
||||||
class Gloo(CMakePackage):
|
class Gloo(CMakePackage, CudaPackage):
|
||||||
"""Gloo is a collective communications library."""
|
"""Gloo is a collective communications library."""
|
||||||
|
|
||||||
homepage = "https://github.com/facebookincubator/gloo"
|
homepage = "https://github.com/facebookincubator/gloo"
|
||||||
@ -28,3 +28,6 @@ class Gloo(CMakePackage):
|
|||||||
depends_on('ninja', type='build')
|
depends_on('ninja', type='build')
|
||||||
|
|
||||||
generator = 'Ninja'
|
generator = 'Ninja'
|
||||||
|
|
||||||
|
def cmake_args(self):
|
||||||
|
return [self.define_from_variant('USE_CUDA', 'cuda')]
|
||||||
|
Loading…
Reference in New Issue
Block a user