diff --git a/spack.yaml b/spack.yaml
index 0099cdbef7a1d1a1e261b37f08387ff1d085e08a..6a265421f451c2acc29564d1d121869dda3697e4 100644
--- a/spack.yaml
+++ b/spack.yaml
@@ -43,7 +43,7 @@ spack:
     - py-numpy@1.23.4
     - py-pip@22.2.2
     - py-toml@0.10.2
-    - py-torch@1.13.1 cflags="-Wno-error=maybe-uninitialized -Wno-error=uninitialized -Wno-error=restrict" cxxflags="-Wno-error=maybe-uninitialized -Wno-error=uninitialized -Wno-error=restrict" # https://github.com/pytorch/FBGEMM/issues/1094
+    - py-torch@1.13.1 -gloo cflags="-Wno-error=maybe-uninitialized -Wno-error=uninitialized -Wno-error=restrict" cxxflags="-Wno-error=maybe-uninitialized -Wno-error=uninitialized -Wno-error=restrict" # https://github.com/pytorch/FBGEMM/issues/1094
     - qt@5.15.5 +opengl
     - root@6.26.06 cxxstd=17 
           +fftw +fortran +gdml +http -ipo +mlp +pythia8