Step-by-Step Guide to Running AMD ROCm™ on Windows 11
Are you interested in learning how to run AMD ROCm™ software on Windows 11? Follow this step-by-step guide to get started:
Step 1: Install Windows Subsystem for Linux (WSL)
- Begin by installing WSL from the Windows Powershell.
- Use the command “wsl –install” to set up the environment for running Linux applications on your Windows machine.
Step 2: Install AMD ROCm™ Software
- Proceed to install the AMD ROCm™ software by following these commands:
- sudo apt update
- wget
- sudo apt install ./amdgpu-install_6.1.60103-1_all.deb
- amdgpu-install -y –usecase=wsl,rocm –no-dkms
- These steps will ensure that the ROCm™ software is correctly installed and configured to work with WSL.
Step 3: Install PyTorch for AMD ROCm™ and WSL
- Install Torch for AMD ROCm™ software using the following commands:
- sudo apt install python3-pip -y
- pip3 install –upgrade pip wheel
- wget
- wget
- wget
- pip3 uninstall torch torchvision pytorch-triton-rocm numpy torchaudio
- pip3 install torch-2.1.2+rocm6.1.3-cp310-cp310-linux_x86_64.whl torchvision-0.16.1+rocm6.1.3-cp310-cp310-linux_x86_64.whl pytorch_triton_rocm-2.1.0+rocm6.1.3.4d510c3a44-cp310-cp310-linux_x86_64.whl numpy==1.26.4
- pip3 install torchaudio==2.1.2
- Execute additional commands to finalize the setup:
- location=`pip show torch | grep Location | awk -F “: ” ‘{print $2}’`
- cd ${location}/torch/lib/
- rm libhsa-runtime64.so*
- cp /opt/rocm/lib/libhsa-runtime64.so.1.2 libhsa-runtime64.so
Running Applications
After completing the setup, you can now install and run applications that support AMD ROCm™ software within the Windows environment. For example, applications like ComfyUI can run seamlessly with an AMD Radeon™ RX 7900 XTX.
Remember to check the requirements.txt file when installing new applications and comment out the torch lines to avoid overwriting your AMD ROCm™ software builds, or you may need to reinstall them.
This new capability enhances the versatility and power of Windows 11 for users leveraging AMD’s hardware for advanced computing tasks.
Hot Take: Enhancing Windows 11 with AMD ROCm™ Software
As a crypto enthusiast, expanding your knowledge of running AMD ROCm™ software on Windows 11 can open up new possibilities for your machine learning and AI endeavors. By following this guide, you can seamlessly integrate powerful tools like Stable Diffusion into your Windows workflow, leveraging the capabilities of AMD Radeon™ RX 7000 Series graphics cards for enhanced performance.