compute-runtime/shared/source/compiler_interface/linux
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
..
CMakeLists.txt refactor: Split compiler interface between OSs 2023-09-12 15:56:53 +02:00
compiler_cache_linux.cpp fix: linux cl_cache eviction mechanism 2023-12-05 09:35:48 +01:00
os_compiler_cache_helper.cpp feature: add new environment variables for compiler cache on Windows 2023-09-21 12:40:48 +02:00