Skip to content

Commit 3ed37f5

Browse files
authored
Gloo: fix PyTorch + CUDA support (spack#2151)
Signed-off-by: Adam J. Stewart <[email protected]>
1 parent fb37434 commit 3ed37f5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

repos/spack_repo/builtin/packages/gloo/package.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ class Gloo(CMakePackage, CudaPackage):
6363

6464
def cmake_args(self):
6565
return [
66+
self.define_from_variant("GLOO_USE_TORCH_DTYPES", "cuda"),
6667
self.define_from_variant("USE_CUDA", "cuda"),
6768
self.define_from_variant("USE_LIBUV", "libuv"),
6869
]

0 commit comments

Comments
 (0)