pub fn dispatch_ptr() -> &'static HsaKernelDispatchPacket
Expand description
Get the packet for this dispatch.
Get a reference to the packet that was used to dispatch this kernel. The dispatch packet contains information like the workgroup size and dispatch size.
ยงExample
use amdgpu_device_libs::prelude::*;
let dispatch = dispatch_ptr();
println!("Workgroup size {}x{}x{}", dispatch.workgroup_size_x, dispatch.workgroup_size_y, dispatch.workgroup_size_z);