Skip to main content

Crate wave_hip

Crate wave_hip 

Source
Expand description

Public API for the WAVE HIP backend. Provides compile() to translate a complete

WBIN binary file into HIP C++ source text, and compile_kernel() for translating a single kernel’s code section. Targets AMD GPUs via ROCm/HIP with support for both RDNA (wavefront 32) and CDNA (wavefront 64) architectures.

Modules§

codegen
Main code generator for the HIP backend. Iterates decoded WAVE instructions and
control_flow
Control flow HIP emission. Translates WAVE structured control flow instructions
intrinsics
AMD wavefront intrinsic emission for HIP. Maps WAVE wave-level operations to HIP
kernel
HIP kernel wrapper generation. Emits the #include directives, device inline
memory
HIP memory operation emission. Generates load, store, and atomic operations for
registers
Register naming and special register mapping for HIP. WAVE general-purpose registers

Enums§

CompileError

Functions§

compile
Compile a complete WBIN file into HIP C++ source.
compile_kernel
Compile a single kernel’s code section into a HIP kernel function.