Pytorch installation from source

I forked Pytorch from GitHub and I followed the following steps

  1. conda install numpy ninja pyyaml mkl mkl-include setuptools cmake cffi
  2. git clone --recursive GitHub - pytorch/pytorch: Tensors and Dynamic neural networks in Python with strong GPU acceleration
  3. cd pytorch
  4. python tools/amd_build/
  5. python install

I successfully completed the PyTorch build process. However, when I try to run PyTorch, it is unable to detect my AMD GPU. Additionally, PyTorch is unable to assign streams or execute any functions that involve CUDA. This issue is quite perplexing as the GPU-related functionality seems to be completely non-functional.