🌐
AMD ROCm
rocm.docs.amd.com › projects › install-on-linux › en › latest › install › 3rd-party › pytorch-install.html
PyTorch on ROCm installation — ROCm installation (Linux)
By default, PyTorch builds for a broad set of AMD architectures. To speed up compilation, you can target only your GPU architecture. ... Replace <uarch> with the result from rocminfo (for example, gfx90a, gfx1030).
🌐
PyTorch
pytorch.org › blog › pytorch-for-amd-rocm-platform-now-available-as-python-package
PyTorch for AMD ROCm™ Platform now available as Python package – PyTorch
March 24, 2021 - An installable Python package is now hosted on pytorch.org, along with instructions for local installation in the same simple, selectable format as PyTorch packages for CPU-only configurations and other GPU platforms. PyTorch on ROCm includes full capability for mixed-precision and large-scale training using AMD’s MIOpen & RCCL libraries.
🌐
Medium
medium.com › @guinmoon › building-rocm-7-1-and-pytorch-on-windows-for-unsupported-gpus-my-hands-on-guide-0758d2d2b334
Building ROCm 7.1 and PyTorch on Windows for Unsupported GPUs: My Hands-On Guide | by Artem Savkin | Medium
November 21, 2025 - Determine the architecture (Navi 21, Phoenix, etc.). Use GPU-Z or a similar tool to check. Head to the open driver sources and find the code name for your architecture — for example, Phoenix is gfx1103, Navi 21 is gfx1030.
🌐
AMD ROCm
rocm.docs.amd.com › projects › install-on-linux › en › docs-6.0.0 › how-to › 3rd-party › pytorch-install.html
Installing PyTorch for ROCm — ROCm installation (Linux)
PYTORCH_TEST_WITH_ROCM=1 python3 test/test_nn.py --verbose · You can replace test_nn.py with any other test set. The PyTorch examples repository provides basic examples that exercise the functionality of your framework.
🌐
GitHub
github.com › computerguy2030 › pytorch-rocm-amd
GitHub - computerguy2030/pytorch-rocm-amd: Tensors and Dynamic neural networks in Python with strong GPU acceleration · GitHub
Tensors and Dynamic neural networks in Python with strong GPU acceleration - computerguy2030/pytorch-rocm-amd
Author   computerguy2030
🌐
AMD ROCm
rocm.docs.amd.com › en › latest › compatibility › ml-compatibility › pytorch-compatibility.html
PyTorch compatibility - ROCm Documentation - AMD
The Instinct MI300X workload optimization guide provides detailed guidance on optimizing workloads for the AMD Instinct MI300X GPU using ROCm. This guide helps users achieve optimal performance for deep learning and other high-performance computing tasks on the MI300X GPU. The Inception with PyTorch documentation describes how PyTorch integrates with ROCm for AI workloads.
🌐
Docker Hub
hub.docker.com › r › rocm › pytorch
rocm/pytorch - Docker Image
To configure docker environment for ROCm, please refer to the following installation guide: https://github.com/RadeonOpenCompute/ROCm-docker/blob/master/quick-start.md⁠ ... To facilitate commands to pull and run the latest PyTorch docker container, add the following alias to your .profile or .bashrc:​ · alias drun='sudo docker run -it --network=host --device=/dev/kfd --device=/dev/dri --group-add=video --ipc=host --cap-add=SYS_PTRACE --security-opt seccomp=unconfined --shm-size 8G -v $HOME/dockerx:/dockerx -w /dockerx' For example, to get the latest PyTorch on ROCm, run the following command:​
🌐
AMD ROCm
rocm.docs.amd.com › en › latest › how-to › rocm-for-ai › training › benchmark-docker › pytorch-training.html
Training a model with PyTorch on ROCm — ROCm Documentation
git clone https://github.com/ROCm/MAD cd MAD/scripts/pytorch_train ... The following benchmarking examples require downloading models and datasets from Hugging Face.
Find elsewhere
🌐
Kubeflow
kubeflow.org › documentation › kubeflow subprojects › kubeflow trainer › user guides
PyTorch on AMD ROCm Guide | Kubeflow
April 21, 2026 - This guide describes how to use TrainJob to train or fine-tune AI models with PyTorch on AMD ROCm GPUs on Kubernetes.
🌐
AMD ROCm
rocm.docs.amd.com › en › docs-5.0.2 › how_to › pytorch_install › pytorch_install.html
PyTorch Installation for ROCm — ROCm 5.0.2 Documentation Home
PYTORCH_TEST_WITH_ROCM=1 python3 test/test_nn.py --verbose · test_nn.py can be replaced with any other test set. The PyTorch examples repository provides basic examples that exercise the functionality of the framework. MNIST (Modified National Institute of Standards and Technology) database is a collection of handwritten digits that may be used to train a Convolutional Neural Network for handwriting recognition.
🌐
Lernapparat
lernapparat.de › pytorch-rocm
Building PyTorch on ROCm
November 15, 2019 - As compiling PyTorch often can ... so just adding ccache on the path won't work for the HIP compilation. The key binary for compilation is /opt/rocm/llvm/bin/clang-11....
🌐
AMD ROCm
rocm.docs.amd.com › projects › radeon-ryzen › en › latest › docs › install › installrad › windows › install-pytorch.html
PyTorch via PIP installation — Use ROCm on Radeon and Ryzen
Example result: device name [0]: Radeon RX 7900 XTX ... Enter command to display component information within the current PyTorch environment. ... PyTorch version: 2.9.1+rocm7.2.1 Is debug build: False CUDA used to build PyTorch: N/A ROCM used to build PyTorch: 7.2.53211-158bd99533 OS: Microsoft ...
🌐
GitHub
gist.github.com › damico › 484f7b0a148a0c5f707054cf9c0a0533
Script for testing PyTorch support with AMD GPUs using ROCM · GitHub
You can run PyTorch code inside of: ---> Intel(R) Core(TM) i5-10600K CPU @ 4.10GHz ---> gfx1012 ... Mint 21.1 (Ubuntu 22.04) rocm works with GPU support on stable-diffusion.
🌐
AMD ROCm
rocm.docs.amd.com › projects › radeon › en › latest › docs › install › wsl › install-pytorch.html
Install PyTorch for ROCm — Use ROCm on Radeon GPUs
Example: pip3 install numpy==1.26.4 · Select the applicable Ubuntu version and enter the following command to pull the public PyTorch Docker image. Optional: You can also download a specific and supported configuration with different user-space ROCm versions, PyTorch versions, and supported operating systems.
🌐
AMD
amd.com › https://www.amd.com/en.html › developer central › amd technical articles & blogs › pytorch 2.9 wheel variant support expands to rocm
PyTorch 2.9 Wheel Variant support expands to ROCm
October 15, 2025 - This solution involves maintaining separate python package indices to host the packages for each platform and version. For example AMD ROCm™ Software 6.4-supported packages are hosted at https://download.pytorch.org/whl/rocm6.4.
🌐
AMD ROCm
rocm.docs.amd.com › projects › radeon-ryzen › en › latest › docs › install › installrad › native_linux › install-pytorch.html
Install PyTorch for ROCm — Use ROCm on Radeon and Ryzen
Example: pip3 install numpy==1.26.4 · Select the applicable Ubuntu version and enter the following command to pull the public PyTorch Docker image. Optional: You can also download a specific and supported configuration with different user-space ROCm versions, PyTorch versions, and supported operating systems.
🌐
ROCm Blogs
rocm.blogs.amd.com › artificial-intelligence › pytorch-amd-gpus › README.html
Empowering Developers to Build a Robust PyTorch Ecosystem on AMD ROCm™ with Better Insights and Monitoring
October 21, 2025 - This applies similarly to ROCm versions, meaning PyTorch releases are tested against ROCm N-1, N, and N+1 versions. This includes minor version. For example, today’s version (N) is ROCm 7.0, N-1 would be 6.4, N+1 would be 7.1.
🌐
Reddit
reddit.com › r/rocm › how is rocm support for pytorch and pytorch geometric?
r/ROCm on Reddit: How is ROCm support for pytorch and pytorch geometric?
March 8, 2025 -

Thinking of switching to AMD for my personal rig and I have been wondering what is the ROCm support like these days.

I know that at least in pytorch it's just a drop in replacement. Has anyone coming from CUDA encountered any problems with using ROCm in their projects? Also how is the support for pytorch geometric like?

Thank you for the help!

Top answer
1 of 4
5
Well, you're probably still best off using latest nightly rocm torch build, but I seldom encounter issues with torch anymore. Not sure about torch geometric. In terms of just running torch-using things, main "problem" is indeed by now just stuff on top of torch that would work fine if only it didn't unnecessarily check for nvidia cuda a bit too specifically. Like they'll do some paranoid check against torch.version.cuda (that is empty on rocm torch, understandably, and it's torch.version.hip for rocm/hip version) at the top and error out, but turns all the torch-level code in the package actually works fine on rocm variant torch anyway (where .to("cuda") is actually your rocm device) if you do the obvious trivial local modification to skip the paranoid check. Main problem, now, is things using ROCm CK as a dep I find - despite ROCm's rather short list of officially supported hardware (works on far more than is officially supported once you know about a particular env var HSA_OVERRIDE_GFX_VERSION), anything using CK (including high-performance ROCm variants of higher level libs on top that have it as a dependency) quietly currently only officially works fully on an even shorter list (and the env var won't help, CK builds with partial support for some gpus where it works in a sense but then key ops don't work). This can directly affect stuff like the very well-known xFormers because guess what it tries to use.... https://github.com/facebookresearch/xformers/tree/main/third_party https://rocm.docs.amd.com/projects/composable_kernel/en/docs-6.3.3/tutorial/tutorial_hello_world.html#hardware-targets CK library fully supports gfx908 and gfx90a GPU architectures, while only some operators are supported for gfx1030 devices. Check your hardware to determine the target GPU architecture https://github.com/ROCm/composable_kernel/issues/1958 - "Support composable kernel on RDNA3 (7900 xtx)" https://github.com/ROCm/composable_kernel/issues/1171 While you may be able to use CPU / non-ROCm-CK builds of a lot of stuff, so you can run the same stuff but slower, that kind of defeats the purpose in a lot of cases. Now maybe there's some move away away from CK entirely (I mean, how the hell can they not support RDNA3? Well sure, maybe awaiting open source community contributions that could, but this is also flagship amd stuff...), but definitely one that I for one keep hitting at time of writing.
2 of 4
2
File a bug and let us know if you run into issues we will resolve it quickly.