compute-runtime/shared
Maciej Bielski c9726dbb10 refactor: simplify tracking CacheRegion reservations
Leverage features of the mechanism to simplify implementation:
- The maximum number of possible cache-region reservations is a small
value known at compile-time
- Each reservation is unique (described by `CacheRegion`) so can have
a dedicated entry with either zero (free) or non-zero (reserved) value

So, there is no need for a dynamic collection (unordered_map here) to
keep track of reservations. A simple array is enough for that purpose.

Also, add some helper-code to enable array-indexing with the values of
`CacheRegion` enum.

Related-To: NEO-12837
Signed-off-by: Maciej Bielski <maciej.bielski@intel.com>
2024-12-09 16:50:28 +01:00
..
generate_cpp_array fix: use .spv for intermediate representation 2024-06-11 12:06:57 +02:00
offline_compiler refactor: remove not used usings/typedefs/variables 2024-11-28 16:19:39 +01:00
source refactor: simplify tracking CacheRegion reservations 2024-12-09 16:50:28 +01:00
test refactor: simplify tracking CacheRegion reservations 2024-12-09 16:50:28 +01:00
wsl_compute_helper fix: add missing setting of slm size in KB 2024-07-09 09:46:34 +02:00
CMakeLists.txt