i am getting the below error when installing pytorch from the github repository.

[ 69%] Linking CXX static library libgloo.a
[ 69%] Built target gloo
[ 80%] Building NVCC (Device) object gloo/CMakeFiles/gloo_cuda.dir/gloo_cuda_generated_cuda_private.cu.o
[ 76%] Building NVCC (Device) object gloo/CMakeFiles/gloo_cuda.dir/gloo_cuda_generated_cuda.cu.o
[ 80%] Building NVCC (Device) object gloo/CMakeFiles/gloo_cuda.dir/nccl/gloo_cuda_generated_nccl.cu.o
In file included from /u/hk/pytorch/torch/lib/gloo/gloo/cuda_private.h:16:0,
from /u/hk/pytorch/torch/lib/gloo/gloo/cuda_private.cu:10:
/u/hk/pytorch/torch/lib/gloo/gloo/cuda.h:24:2: error: #error “Expected GLOO_USE_CUDA to be defined”
#error “Expected GLOO_USE_CUDA to be defined”
^
In file included from /u/hk/pytorch/torch/lib/gloo/gloo/cuda.cu:10:0:
/u/hk/pytorch/torch/lib/gloo/gloo/cuda.h:24:2: error: #error “Expected GLOO_USE_CUDA to be defined”
#error “Expected GLOO_USE_CUDA to be defined”
^
CMake Error at gloo_cuda_generated_cuda_private.cu.o.cmake:203 (message):
Error generating
/u/hk/pytorch/torch/lib/build/gloo/gloo/CMakeFiles/gloo_cuda.dir//./gloo_cuda_generated_cuda_private.cu.o
make[2]: *** [gloo/CMakeFiles/gloo_cuda.dir/gloo_cuda_generated_cuda_private.cu.o] Error 1
make[2]: *** Waiting for unfinished jobs…
CMake Error at gloo_cuda_generated_cuda.cu.o.cmake:203 (message):
Error generating
/u/hk/pytorch/torch/lib/build/gloo/gloo/CMakeFiles/gloo_cuda.dir//./gloo_cuda_generated_cuda.cu.o
make[2]: *** [gloo/CMakeFiles/gloo_cuda.dir/gloo_cuda_generated_cuda.cu.o] Error 1
In file included from /u/hk/pytorch/torch/lib/gloo/gloo/nccl/nccl.h:18:0,
from /u/hk/pytorch/torch/lib/gloo/gloo/nccl/nccl.cu:10:
/u/hk/pytorch/torch/lib/gloo/gloo/cuda.h:24:2: error: #error “Expected GLOO_USE_CUDA to be defined”
#error “Expected GLOO_USE_CUDA to be defined”
^
CMake Error at gloo_cuda_generated_nccl.cu.o.cmake:203 (message):
Error generating
/u/hk/pytorch/torch/lib/build/gloo/gloo/CMakeFiles/gloo_cuda.dir/nccl/./gloo_cuda_generated_nccl.cu.o
make[2]: *** [gloo/CMakeFiles/gloo_cuda.dir/nccl/gloo_cuda_generated_nccl.cu.o] Error 1
make[1]: *** [gloo/CMakeFiles/gloo_cuda.dir/all] Error 2
make: *** [all] Error 2