- download source/objects from mthreads: https://developer.mthreads.com/sdk/download/musa?equipment=&os=&driverVersion=&version=
- put the zip at this dir
makepkg -Cf
pacman -U ./mtgpu-dkms-...
pacman -U ./musa-userspace-...
- download wheels from https://github.com/MooreThreads/torch_musa/releases
- prepare python3.9: (just from AUR)
- make venv
- install downloaded wheels and pytest, packaging
python -c "import torch; import torch_musa; print(torch.musa.is_available())"