kfd_get_cu_occupancy(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 πŸ‘‘


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