Based on AMD.com, the newest AMD Software program 24.6.1 and AMD ROCm™ 6.1.3 now help working Linux functions on Home windows utilizing {hardware} acceleration with AMD Radeon™ RX 7000 Sequence graphics playing cards. This growth opens new prospects for customers seeking to make the most of highly effective machine studying and AI instruments like Secure Diffusion on a Home windows platform.
Step-by-Step Information to Operating AMD ROCm™ on Home windows 11
Here’s a detailed information that will help you get began with working AMD ROCm™ software program on Home windows 11:
Step 1: Set up Home windows Subsystem for Linux (WSL)
Start by putting in WSL from the Home windows Powershell. Use the next command:
wsl –install
This command will arrange the required surroundings to run Linux functions in your Home windows machine.
Step 2: Set up AMD ROCm™ Software program
Subsequent, proceed to put in the AMD ROCm™ software program. Observe these instructions to finish the set up:
sudo apt replace
wget https://repo.radeon.com/amdgpu-install/6.1.3/ubuntu/jammy/amdgpu-install_6.1.60103-1_all.deb
sudo apt set up ./amdgpu-install_6.1.60103-1_all.deb
amdgpu-install -y –usecase=wsl,rocm –no-dkms
These steps will be certain that the ROCm™ software program is appropriately put in and configured to work with WSL.
Step 3: Set up PyTorch for AMD ROCm™ and WSL
Lastly, set up Torch for AMD ROCm™ software program. Use the next instructions:
sudo apt set up python3-pip -y
pip3 set up –upgrade pip wheel
wget https://repo.radeon.com/rocm/manylinux/rocm-rel-6.1.3/torch-2.1.2percent2Brocm6.1.3-cp310-cp310-linux_x86_64.whl
wget https://repo.radeon.com/rocm/manylinux/rocm-rel-6.1.3/torchvision-0.16.1percent2Brocm6.1.3-cp310-cp310-linux_x86_64.whl
wget https://repo.radeon.com/rocm/manylinux/rocm-rel-6.1.3/pytorch_triton_rocm-2.1.0percent2Brocm6.1.3.4d510c3a44-cp310-cp310-linux_x86_64.whl
pip3 uninstall torch torchvision pytorch-triton-rocm numpy torchaudio
pip3 set up 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 set up torchaudio==2.1.2
After finishing these installations, execute the next instructions to finalize the setup:
location=`pip present torch | grep Location | awk -F “: ” ‘{print $2}’`
cd ${location}/torch/lib/
rm libhsa-runtime64.so*
cp /decide/rocm/lib/libhsa-runtime64.so.1.2 libhsa-runtime64.so
These instructions be certain that the ROCm™ libraries are appropriately linked and prepared to be used.
Operating Purposes
With the setup full, now you can set up and run functions that help AMD ROCm™ software program with out leaving the Home windows surroundings. As an illustration, functions like ComfyUI can now run seamlessly with an AMD Radeon™ RX 7900 XTX.
Observe: When putting in new functions, verify the necessities.txt file and remark out the torch traces to keep away from overwriting your AMD ROCm™ software program builds. In any other case, it’s possible you’ll must reinstall these builds.
This new functionality considerably enhances the flexibility and energy of Home windows 11 for customers leveraging AMD’s {hardware} for superior computing duties.
Picture supply: Shutterstock