pub fn amdgpu_dispatch_ptr() -> *const ()🔬This is a nightly-only experimental API. (
gpu_intrinsics)Available on AMD GPU only.
Expand description
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.