kfd_get_cu_occupancy(9)
π kfd_get_cu_occupancy(9)
okay so this one is from the Kernel API Manual, and it's literally the glow-up page for kfd_get_cu_occupancy β¨
πΈ NAME πΈ
kfd_get_cu_occupancy β collect the number of waves in-flight on this device by the current process, then translate that acquired wave count into the number of compute units that are occupied π
π¦ SYNOPSIS π¦
int kfd_get_cu_occupancy (struct attribute *attr , char *buffer );
π ARGUMENTS π
attrβ handle of the attribute that allows reporting of wave count. bestie, this attribute handle encapsulates the GPU device it is associated with, which is what lets it collect waves in flight and all that good stuff πbufferβ handle of the user-provided buffer that gets updated with the wave count π
β RETURN β
number of bytes written to the user buffer, or an error value π periodt.
π SEE ALSO π
- Kernel file
./drivers/gpu/drm/amd/amdkfd/kfd_process.c amdgpu_amdkfd_set_sigbus_delay(9)kfd_process_device_init_vm(9)
source/version vibes come from ./drivers/gpu/drm/amd/amdkfd, and this page is dated October 2026 π«Άπ slay, that's the whole manual page, no cap β¨
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms