compute-runtime/opencl/test/unit_test/kernel
Kamil Kopryk dd3d294f87 performance: cache MOCS values
This change caches the most used MOCS values:

* getMOCS(GMM_RESOURCE_USAGE_OCL_BUFFER_CONST);
* getMOCS(GMM_RESOURCE_USAGE_OCL_BUFFER);
* getMOCS(GMM_RESOURCE_USAGE_OCL_BUFFER_CACHELINE_MISALIGNED);
inside gmmHelper class during initialization to avoid repeated
calls of virtual functions, branches and/or gmm lib access.

and adds more readably corresponding getters:
* getL1EnabledMOCS
* getL3EnabledMOCS
* getUncachedMOCS

If force all resources uncached is called,
these 3 cached mocs values are reinitialized

It also changes the order of gmmHelper members, to avoid
not needed padding after addressWidth
and simplifies logic in getMocsIndex function
for xehp and later products.

Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com>
2025-04-14 14:12:48 +02:00
..
gl Remove usage of TestLegacy from opencl tests 2022-08-16 22:16:48 +02:00
CMakeLists.txt refactor: remove not used image transforming logic 2024-09-17 16:19:48 +02:00
cache_flush_tests.inl fix: Remove pragma once from inl files 2025-02-18 20:19:15 +01:00
clone_kernel_tests.cpp Revert "fix: respect arg size when setting kernel arg in OCL path" 2025-02-27 04:42:22 +01:00
debug_kernel_tests.cpp refactor: Remove SourceLevelDebugger 2023-08-10 11:14:02 +02:00
kernel_accelerator_arg_tests.cpp Cleanup includes 30 2023-01-13 08:22:14 +01:00
kernel_arg_buffer_fixture.cpp feature: Add logic to disable bindless addressing via AIL 2024-09-18 13:49:51 +02:00
kernel_arg_buffer_fixture.h Cleanup includes 56 2023-02-16 14:42:44 +01:00
kernel_arg_buffer_tests.cpp refactor: usm reuse to unique ptr 2025-03-07 15:14:58 +01:00
kernel_arg_info_tests.cpp test: fix cleanup order in ULTs 2023-02-27 18:23:16 +01:00
kernel_arg_pipe_tests.cpp refactor: remove cl pipe related logic 2025-02-25 17:56:53 +01:00
kernel_arg_svm_tests.cpp Revert "fix: set properly resource params when setAllocationType" 2024-08-24 05:01:38 +02:00
kernel_image_arg_tests.cpp test: remove not used usings/typedefs/variables in OCL tests 2024-11-29 07:33:36 +01:00
kernel_immediate_arg_tests.cpp Revert "fix: respect arg size when setting kernel arg in OCL path" 2025-02-27 04:42:22 +01:00
kernel_info_cl_tests.cpp Clean-Up unused code related to GMock 2022-03-22 16:16:34 +01:00
kernel_is_patched_tests.cpp refactor: Mock file system in ULTs 2025-04-09 19:51:46 +02:00
kernel_slm_arg_tests.cpp refactor: remove redundant definitions KB/MB/GB 2023-12-05 08:55:18 +01:00
kernel_slm_tests.cpp feature: allow removal of heapful code paths 2025-03-27 01:34:35 +01:00
kernel_tests.cpp performance: cache MOCS values 2025-04-14 14:12:48 +02:00
kernel_tests_pvc_and_later.cpp test.h refactor 2022-07-04 18:20:07 +02:00
substitute_kernel_heap_tests.cpp refactor: Rename member variables to camelCase 3/n 2023-04-28 16:01:14 +02:00