[llvm] [Offload] Return an integer user count for AMDGPU HSA queues (PR #223335)

Joseph Huber via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 23 21:00:32 PDT 2026


================
@@ -813,17 +814,17 @@ struct AMDGPUQueueTy {
     return Plugin::check(Status, "error in hsa_queue_destroy: %s");
   }
 
-  /// Returns the number of streams, this queue is currently assigned to.
-  bool getUserCount() const { return NumUsers; }
+  /// Returns the number of streams this queue is currently assigned to.
+  uint32_t getUserCount() const { return UserCount.getUserCount(); }
----------------
jhuber6 wrote:

Changing this to `uint32_t` is an obvious one line fix, I don't know why we need everything else with a bunch of unit tests for it.

https://github.com/llvm/llvm-project/pull/223335


More information about the llvm-commits mailing list