[HAL] fix IREE_HAL_MAX_QUEUES to be number of bits in queue affinity type (#22702)
The computation of the number of bits in the queue affinity type
iree_hal_queue_affinity_t needs to use a multiplication by 8 to get from
the number of bytes to the number of bits. Before, it incorrectly used a
divison by 8. This resulted in IREE_HAL_MAX_QUEUES having an incorrect
value of 1 instead of 64.
Signed-off-by: Stefan Schuermans <schuermans@roofline.ai>
diff --git a/runtime/src/iree/hal/queue.h b/runtime/src/iree/hal/queue.h
index b52627e..96dfcb1 100644
--- a/runtime/src/iree/hal/queue.h
+++ b/runtime/src/iree/hal/queue.h
@@ -34,7 +34,7 @@
// Specifies that any queue may be selected.
#define IREE_HAL_QUEUE_AFFINITY_ANY ((iree_hal_queue_affinity_t)(-1))
-#define IREE_HAL_MAX_QUEUES (sizeof(iree_hal_queue_affinity_t) / 8)
+#define IREE_HAL_MAX_QUEUES (sizeof(iree_hal_queue_affinity_t) * 8)
// Returns true if the |queue_affinity| is empty (none specified).
#define iree_hal_queue_affinity_is_empty(queue_affinity) ((queue_affinity) == 0)