The AMDKFD “Kernel Fusion Driver” used as the Linux kernel GPU compute driver and necessary part of their ROCm compute stack it turns out can build and run on the Chinese-developed LoongArch systems rather easily.
Similar to what I pointed out a few weeks back of AMDKFD coming to RISC-V systems, a similar patch has now been proposed for enabling AMDKFD / AMD HSA compute driver support for LoongArch CPU architecture systems.
Like with the recent RISC-V support and before that POWER 64-bit, the AMD kernel driver can compile easily on LoongArch too — joining x86_64 and ARM64/AArch64 as the other supported architectures currently.
Just updating the “HSA_AMD” Kconfig dependencies to adding LoongArch is all that’s needed for this kernel driver to build on LoongArch hardware. This patch lays it out.
“KFD has been confirmed that can run on LoongArch systems.
It’s necessary to support CONFIG_HSA_AMD on LoongArch.”
Developer Han Gao didn’t comment on the ROCm user-space software building for LoongArch, but given that it’s already been built/tested on RISC-V and other architectures, is presumably working fine too on this MIPS/RISC-V inspired Chinese architecture.
This patch is currently under review but given that it’s fairly straight-forward, it will presumably be picked up rather quickly by the kernel.