VOOZH about

URL: https://www.phoronix.com/news/AMD-ROCm-6.4-SPIR-V-Linker

⇱ AMD ROCm 6.4 Adds SPIR-V Linking Support To HIP - Phoronix


👁 Phoronix

AMD ROCm 6.4 Adds SPIR-V Linking Support To HIP

Written by Michael Larabel in AMD on 21 April 2025 at 03:58 PM EDT. 10 Comments
With the recently released AMD ROCm 6.4 release for this open-source GPU compute stack for Radeon and Instinct hardware there are yet more indications around AMD's growing software ecosystem expansion. With ROCm 6.4 are additions to the HIP API for allowing linking of SPIR-V code objects, which is the intermediate representation used by Vulkan as well as with OpenCL and other Khronos APIs.

It wasn't prominently mentioned in the ROCm 6.4 release highlights, but when digging through the ROCm 6.4 release notes some interesting items jumped out. New to the ROCm 6.4 HIP APIs are:
hipLinkAddData adds SPIR-V code object data to linker instance with options.

hipLinkAddFile adds SPIR-V code object file to linker instance with options.

AMD ROCm/HIP now supports linking SPIR-V code object data and SPIR-V object files. SPIR-V is the intermediate representation / binary intermediate language used predominantly by Vulkan but can also be ingested by OpenCL 2.x/3.0 and OpenGL 4.6. Microsoft as well announced last year their work on SPIR-V for Direct3D in place of DXIL. Plus various other SPIR-V uses throughout the software ecosystem thanks to being an open Khronos Group standard. Being able to easily link SPIR-V within AMD HIP use-cases opens up new doors as well and can enhance ROCm/HIP interoperability with other industry APIs.

👁 AMD HIP SPIR-V API additions


This move isn't entirely surprising though as one year ago I wrote about an AMD ROCm developer working on vendor-flavored SPIR-V within LLVM. Last year AMD engineers also worked on a MLIR to SPIR-V pass. Plus all of the other happenings going on around the ROCm compute stack tied to LLVM / IREE / MLIR. To put it simply, there's a lot of active AMD software engineering that has been going on around LLVM / MLIR / IREE / SPIR-V.

I am still trying to figure out all of what AMD's plans are around their elusive "Unified AI Software Stack" with broad AI/compute support across all of their different CPU / NPU / GPU / accelerator products, but there's a good chance SPIR-V is part of that and these HIP API additions in ROCm 6.4 are another baby step in that direction. For more background on the Unified AI Software Stack talk, see last summer's AMD's Unified AI Software Stack Might Be A Boon For Other Vulkan/SPIR-V Hardware Too.

Hopefully we'll learn more about their grand AMD ROCm and Unified AI Software Stack plans coming up at the next AMD Advancing AI event set for 12 June.

Michael Larabel is the principal author of Phoronix.com and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 20,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated benchmarking software. He can be followed via Twitter, LinkedIn, or contacted via MichaelLarabel.com.