git: 3ca50b91ef - main - Status/2026Q2/rocm.adoc: Add report
Lorenzo Salvadore <[email protected]> Mon, 20 Jul 2026 12:00:09 +0000
| Newsgroups | gmane.os.freebsd.devel.cvs.doc |
|---|---|
| Message-ID | <[email protected]> |
The branch main has been updated by salvadore: URL: https://cgit.FreeBSD.org/doc/commit/?id=3ca50b91ef828366feb66963de511dc4994fec3b commit 3ca50b91ef828366feb66963de511dc4994fec3b Author: Yohello1 <[email protected]> AuthorDate: 2026-07-13 16:50:58 +0000 Commit: Lorenzo Salvadore <[email protected]> CommitDate: 2026-07-20 11:59:36 +0000 Status/2026Q2/rocm.adoc: Add report Pull Request: https://github.com/freebsd/freebsd-doc/pull/698 --- .../en/status/report-2026-04-2026-06/rocm.adoc | 25 ++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/website/content/en/status/report-2026-04-2026-06/rocm.adoc b/website/content/en/status/report-2026-04-2026-06/rocm.adoc new file mode 100644 index 0000000000..f6f763cb8e --- /dev/null +++ b/website/content/en/status/report-2026-04-2026-06/rocm.adoc @@ -0,0 +1,25 @@ +=== ROCm support on FreeBSD + +Links: + +link:https://github.com/Yohello1/drm-kmod-rocm/tree/super-special[drm-kmod fork with partial amdkfd support] URL: link:https://github.com/Yohello1/drm-kmod-rocm/tree/super-special[] + +link:https://github.com/Yohello1/rocm-systems[rocm-systems fork with fixes for FreeBSD] URL: link:github.com/Yohello1/rocm-systems[] + + + +Contact: Sourojeet Adhikari <[email protected]> + +ROCm is the compute platform used by AMD for their GPUs. As of now, FreeBSD does not support ROCm at all, neither at the toolchain level nor at the driver level. +I am working to change that and upstream the required changes. + +To my knowledge, on FreeBSD there are a few ways to run compute loads (like AI/ML, graphics, etc) on the GPU; those ways, to my knowledge, are Vulkan and OpenGL. +Both Vulkan and OpenGL are fairly good for compute workloads, namely in graphics and sometimes machine learning loads too. +But sometimes there are tasks which are not well-suited for Vulkan and OpenGL, and are instead done in ROCm/CUDA because ROCm and CUDA give the developer a lot more control over how the task is done. +So I am trying to introduce ROCm support to FreeBSD so we can run ROCm code/programs on FreeBSD. +There are a few things we need working to get ROCm working. +The first is AMD's LLVM fork, which I have patched, gotten working, and have upstreamed the patches. +Next are the ROCm runtimes, which have been patched, and I am currently working on upstreaming the patches. +Finally is the amdkfd driver, which I am working on patching, and am upstreaming some of the LinuxKPI-related patches back to the FreeBSD kernel. + +As of late, I have upstreamed changes to AMD's LLVM fork allowing the compilation of their fork on FreeBSD so you can build their ROCm toolchain. +Beyond that, I have worked on getting a series of patches into LinuxKPI to slowly bring in amdkfd support. + +Sponsor: The FreeBSD Foundation