libfabric: Add CUDA variant (#46203)
Signed-off-by: Jack Morrison <jack.morrison@cornelisnetworks.com>
This commit is contained in:
parent
bc5456a791
commit
c98045e028
@ -10,7 +10,7 @@
|
|||||||
from spack.package import *
|
from spack.package import *
|
||||||
|
|
||||||
|
|
||||||
class Libfabric(AutotoolsPackage):
|
class Libfabric(AutotoolsPackage, CudaPackage):
|
||||||
"""The Open Fabrics Interfaces (OFI) is a framework focused on exporting
|
"""The Open Fabrics Interfaces (OFI) is a framework focused on exporting
|
||||||
fabric communication services to applications."""
|
fabric communication services to applications."""
|
||||||
|
|
||||||
@ -211,6 +211,9 @@ def configure_args(self):
|
|||||||
else:
|
else:
|
||||||
args.append("--enable-{0}=no".format(fabric))
|
args.append("--enable-{0}=no".format(fabric))
|
||||||
|
|
||||||
|
if self.spec.satisfies("+cuda"):
|
||||||
|
args.append(f"--with-cuda={self.spec['cuda'].prefix}")
|
||||||
|
|
||||||
return args
|
return args
|
||||||
|
|
||||||
def installcheck(self):
|
def installcheck(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user