compute-runtime/shared
Fabian Zwolinski ee53bf0839 fix: linux cl_cache eviction mechanism
Fixed and refactored eviction mechanism works as follows:
- eviction is needed only if
total size of cache binaries + size of the new binary exceed cache limit
- single evition call removes files with a summed size of 1/3 of the cache limit
- if new binary can not fit in the cache size limit
even after eviction, it will not be saved
- cache limit applies only to
files in cache directory with .cl_cache/.l0_cache extension.
Only these files are counted and only these files are removed

Minor:
- rename variables for better readability
- add `const` where possible

Related-To: NEO-4262
Signed-off-by: Fabian Zwolinski <fabian.zwolinski@intel.com>
2023-12-05 09:35:48 +01:00
..
generate_cpp_array refactor: correct variable namings 2023-11-29 23:49:03 +01:00
offline_compiler feature: add support for release 12.74 2023-12-05 08:01:31 +01:00
source fix: linux cl_cache eviction mechanism 2023-12-05 09:35:48 +01:00
test fix: linux cl_cache eviction mechanism 2023-12-05 09:35:48 +01:00
wsl_compute_helper fix: fix compilation error in clang on Windows (2/n) 2023-10-24 15:59:06 +02:00
CMakeLists.txt CMake: don't include shared/test/unit_test when shared tests are skipped 2022-08-25 10:48:37 +02:00