Function amdgpu_dispatch_ptr

#[must_use = "returns a pointer that does nothing unless used"]
pub fn amdgpu_dispatch_ptr() -> *const ()

Returns a pointer to the HSA kernel dispatch packet.

A gpu-kernel on amdgpu is always launched through a kernel dispatch packet. The dispatch packet contains the workgroup size, launch size and other data. The content is defined by the HSA Platform System Architecture Specification, which is implemented e.g. in AMD's hsa.h. The intrinsic returns a unit pointer so that rustc does not need to know the packet struct. The pointer is valid for the whole lifetime of the program.