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.