compute-runtime/opencl/test/unit_test/api
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 fix: disable 3d and media sharing support on PVC 2025-02-14 17:37:05 +01:00
CMakeLists.txt refactor: remove cl pipe related logic 2025-02-25 17:56:53 +01:00
additional_extensions_tests.cpp
api_tests_wrapper1.cpp feature: add new API functions for external memory sharing 2023-04-28 11:43:19 +02:00
api_tests_wrapper2.cpp
api_tests_wrapper3.cpp Revert "fix: respect arg size when setting kernel arg in OCL path" 2025-02-27 04:42:22 +01:00
cl_add_comment_to_aub_tests.inl Apply CamelCase for class and struct names 2/2 2023-04-25 13:10:23 +02:00
cl_api_tests.cpp
cl_api_tests.h refactor: Mock file system in ULTs 2025-04-09 19:51:46 +02:00
cl_build_program_tests.inl refactor: Mock file system in ULTs 2025-04-09 19:51:46 +02:00
cl_clone_kernel_tests.inl refactor: Mock file system in ULTs 2025-04-09 19:51:46 +02:00
cl_compile_program_tests.inl refactor: Mock file system in ULTs 2025-04-09 19:51:46 +02:00
cl_create_buffer_tests.cpp fix: add check for SVM allocated host ptr in clCreateBuffer 2025-02-14 18:07:37 +01:00
cl_create_command_queue_tests.inl test: correct expectations 2025-03-25 16:59:05 +01:00
cl_create_command_queue_with_properties_tests.cpp fix: return correct error code for deprecated clSetCommadQueueProperties 2025-02-14 13:41:40 +01:00
cl_create_context_from_type_tests.inl refactor: rename global debug manager to debugManager 2023-11-30 13:00:59 +01:00
cl_create_context_tests.inl refactor: rename global debug manager to debugManager 2023-11-30 13:00:59 +01:00
cl_create_image_tests.cpp test: update gtest API usage 2024-05-28 16:20:06 +02:00
cl_create_kernel_tests.inl refactor: Mock file system in ULTs 2025-04-09 19:51:46 +02:00
cl_create_kernels_in_program_tests.inl test: update ults to respect minimal simd 2025-02-11 07:57:16 +01:00
cl_create_perf_counters_command_queue_tests.inl Apply CamelCase for class and struct names 2023-04-24 15:36:27 +02:00
cl_create_pipe_tests.inl refactor: remove cl pipe related logic 2025-02-25 17:56:53 +01:00
cl_create_program_with_binary_tests.inl refactor: Mock file system in ULTs 2025-04-09 19:51:46 +02:00
cl_create_program_with_built_in_kernels_tests.cpp refactor: remove not needed vme builtin related code 2024-09-16 15:27:49 +02:00
cl_create_sampler_tests.inl fix: return success from release calls after platform teardown 2024-09-26 19:30:26 +02:00
cl_create_sampler_with_properties_tests.inl test: update gtest API usage 2024-05-28 16:20:06 +02:00
cl_create_sub_buffer_tests.inl test: update gtest API usage 2024-05-28 16:20:06 +02:00
cl_create_sub_devices_tests.inl refactor: engineInstancedType removed 2024-10-09 16:30:48 +02:00
cl_create_user_event_tests.inl Apply CamelCase for class and struct names 2/2 2023-04-25 13:10:23 +02:00
cl_enqueue_barrier_tests.inl Apply CamelCase for class and struct names 2/2 2023-04-25 13:10:23 +02:00
cl_enqueue_barrier_with_wait_list_tests.inl Apply CamelCase for class and struct names 2/2 2023-04-25 13:10:23 +02:00
cl_enqueue_copy_buffer_rect_tests.inl Apply CamelCase for class and struct names 2023-04-24 15:36:27 +02:00
cl_enqueue_copy_buffer_to_image_tests.inl Apply CamelCase for class and struct names 2/2 2023-04-25 13:10:23 +02:00
cl_enqueue_copy_image_tests.inl Apply CamelCase for class and struct names 2/2 2023-04-25 13:10:23 +02:00
cl_enqueue_copy_image_to_buffer_tests.inl Apply CamelCase for class and struct names 2/2 2023-04-25 13:10:23 +02:00
cl_enqueue_fill_buffer_tests.inl Apply CamelCase for class and struct names 2/2 2023-04-25 13:10:23 +02:00
cl_enqueue_fill_image_tests.inl Apply CamelCase for class and struct names 2/2 2023-04-25 13:10:23 +02:00
cl_enqueue_image_tests.inl test: update gtest API usage 2024-05-28 16:20:06 +02:00
cl_enqueue_map_buffer_tests.inl fix: revert changes around zero-copy 2024-07-19 12:29:18 +02:00
cl_enqueue_map_image_tests.inl Apply CamelCase for class and struct names 2023-04-24 15:36:27 +02:00
cl_enqueue_marker_tests.inl test: update gtest API usage 2024-05-28 16:20:06 +02:00
cl_enqueue_marker_with_wait_list_tests.inl Apply CamelCase for class and struct names 2/2 2023-04-25 13:10:23 +02:00
cl_enqueue_migrate_mem_objects_tests.inl Apply CamelCase for class and struct names 2/2 2023-04-25 13:10:23 +02:00
cl_enqueue_native_kernel_tests.inl Apply CamelCase for class and struct names 2/2 2023-04-25 13:10:23 +02:00
cl_enqueue_nd_range_kernel_tests.inl refactor: correct variable naming 2023-12-01 02:18:46 +01:00
cl_enqueue_read_buffer_rect_tests.inl test: update gtest API usage 2024-05-28 16:20:06 +02:00
cl_enqueue_read_buffer_tests.inl performance: enable staging read for cl buffers 2025-03-25 15:09:46 +01:00
cl_enqueue_read_image_tests.inl fix: correctly calculate host ptr size for images 2025-04-04 17:54:42 +02:00
cl_enqueue_svm_free_tests.inl Apply CamelCase for class and struct names 2/2 2023-04-25 13:10:23 +02:00
cl_enqueue_svm_map_tests.inl Apply CamelCase for class and struct names 2/2 2023-04-25 13:10:23 +02:00
cl_enqueue_svm_mem_fill_tests.inl Apply CamelCase for class and struct names 2/2 2023-04-25 13:10:23 +02:00
cl_enqueue_svm_memcpy_tests.inl performance: non-usm copy through staging buffers 2024-06-25 07:18:53 +02:00
cl_enqueue_svm_migrate_mem_tests.cpp Apply CamelCase for class and struct names 2/2 2023-04-25 13:10:23 +02:00
cl_enqueue_svm_unmap_tests.inl Apply CamelCase for class and struct names 2/2 2023-04-25 13:10:23 +02:00
cl_enqueue_task_tests.inl Apply CamelCase for class and struct names 2/2 2023-04-25 13:10:23 +02:00
cl_enqueue_unmap_mem_object_tests.inl feature: Add 3-level wait scheme with tpause intrinsic 2025-03-21 12:12:57 +01:00
cl_enqueue_verify_memory.inl refactor: engineInstancedType removed 2024-10-09 16:30:48 +02:00
cl_enqueue_wait_for_events_tests.inl refactor: correct naming of enum class constants 2023-12-01 11:53:51 +01:00
cl_enqueue_write_buffer_rect_tests.inl Apply CamelCase for class and struct names 2/2 2023-04-25 13:10:23 +02:00
cl_enqueue_write_buffer_tests.inl fix: disable staging when cpu copy is allowed 2025-02-14 14:05:06 +01:00
cl_enqueue_write_image_tests.inl fix: correctly calculate host ptr size for images 2025-04-04 17:54:42 +02:00
cl_external_memory_extension_tests.inl feature: add new API functions for external memory sharing 2023-04-28 11:43:19 +02:00
cl_finish_tests.inl Apply CamelCase for class and struct names 2/2 2023-04-25 13:10:23 +02:00
cl_flush_tests.inl Apply CamelCase for class and struct names 2/2 2023-04-25 13:10:23 +02:00
cl_function_pointers_tests.inl refactor: correct naming of enum class constants 8/n 2023-12-19 08:18:18 +01:00
cl_get_context_info_tests.inl Apply CamelCase for class and struct names 2/2 2023-04-25 13:10:23 +02:00
cl_get_device_and_host_timer.inl fix: zeDeviceGetGlobalTimestamp to use submisison 2024-12-04 19:10:07 +01:00
cl_get_device_ids_tests.inl fix: respect affinity mask with COMBINED hierarchy in OCL 2025-01-13 15:38:39 +01:00
cl_get_device_info_pvc_and_later_tests.cpp Apply CamelCase for class and struct names 2/2 2023-04-25 13:10:23 +02:00
cl_get_device_info_tests.inl test: update gtest API usage 2024-05-28 16:20:06 +02:00
cl_get_event_profiling_info_tests.inl refactor: correct variable naming 2023-12-04 13:45:53 +01:00
cl_get_extension_function_address_for_platform_tests.inl
cl_get_extension_function_address_tests.inl Apply CamelCase for class and struct names 2/2 2023-04-25 13:10:23 +02:00
cl_get_image_info_tests.inl refactor: Rename member variables to camelCase 2/n 2023-04-27 20:39:22 +02:00
cl_get_image_params_tests.inl Apply CamelCase for class and struct names 2023-04-24 15:36:27 +02:00
cl_get_kernel_arg_info_tests.inl refactor: Mock file system in ULTs 2025-04-09 19:51:46 +02:00
cl_get_kernel_info_tests.inl refactor: Mock file system in ULTs 2025-04-09 19:51:46 +02:00
cl_get_kernel_max_concurrent_work_group_count_intel_tests.inl refactor: pass extra walker params 2024-09-10 15:30:03 +02:00
cl_get_kernel_sub_group_info_khr_tests.inl test: update gtest API usage 2024-05-28 16:20:06 +02:00
cl_get_kernel_sub_group_info_tests.inl test: update gtest API usage 2024-05-28 16:20:06 +02:00
cl_get_kernel_suggested_local_work_size_intel_tests.inl Apply CamelCase for class and struct names 2/2 2023-04-25 13:10:23 +02:00
cl_get_kernel_suggested_local_work_size_khr_tests.inl Apply CamelCase for class and struct names 2/2 2023-04-25 13:10:23 +02:00
cl_get_kernel_work_group_info_tests.inl refactor: Mock file system in ULTs 2025-04-09 19:51:46 +02:00
cl_get_mem_object_info_tests.inl Apply CamelCase for class and struct names 2/2 2023-04-25 13:10:23 +02:00
cl_get_platform_ids_tests.inl test: remove empty line 2025-02-17 20:34:47 +01:00
cl_get_platform_info_tests.inl test: update gtest API usage 2024-05-28 16:20:06 +02:00
cl_get_program_build_info_tests.inl refactor: Mock file system in ULTs 2025-04-09 19:51:46 +02:00
cl_get_program_info_tests.inl refactor: Mock file system in ULTs 2025-04-09 19:51:46 +02:00
cl_get_supported_image_formats_tests.inl Apply CamelCase for class and struct names 2/2 2023-04-25 13:10:23 +02:00
cl_icd_get_platform_ids_khr_tests.inl
cl_intel_accelerator_tests.inl fix: return success from release calls after platform teardown 2024-09-26 19:30:26 +02:00
cl_intel_motion_estimation.cpp refactor: Rename member variables to camelCase 2023-04-26 16:05:07 +02:00
cl_intel_tracing_tests.inl refactor: Mock file system in ULTs 2025-04-09 19:51:46 +02:00
cl_link_program_tests.inl refactor: Mock file system in ULTs 2025-04-09 19:51:46 +02:00
cl_mem_locally_uncached_resource_tests.cpp performance: cache MOCS values 2025-04-14 14:12:48 +02:00
cl_release_command_queue_tests.inl Apply CamelCase for class and struct names 2/2 2023-04-25 13:10:23 +02:00
cl_release_context_tests.inl fix: return success from release calls after platform teardown 2024-09-26 19:30:26 +02:00
cl_release_event_tests.inl fix: return success from release calls after platform teardown 2024-09-26 19:30:26 +02:00
cl_release_kernel_tests.inl refactor: Mock file system in ULTs 2025-04-09 19:51:46 +02:00
cl_release_mem_obj_tests.inl fix: return success from release calls after platform teardown 2024-09-26 19:30:26 +02:00
cl_release_program_tests.inl fix: return success from release calls after platform teardown 2024-09-26 19:30:26 +02:00
cl_retain_mem_obj_tests.inl Apply CamelCase for class and struct names 2/2 2023-04-25 13:10:23 +02:00
cl_retain_release_command_queue_tests.inl fix: return success from release calls after platform teardown 2024-09-26 19:30:26 +02:00
cl_retain_release_context_tests.inl Apply CamelCase for class and struct names 2/2 2023-04-25 13:10:23 +02:00
cl_retain_release_device_tests.inl fix: return success from release calls after platform teardown 2024-09-26 19:30:26 +02:00
cl_retain_release_sampler_tests.inl Apply CamelCase for class and struct names 2/2 2023-04-25 13:10:23 +02:00
cl_set_context_destructor_callback.inl Apply CamelCase for class and struct names 2/2 2023-04-25 13:10:23 +02:00
cl_set_event_callback_tests.inl refactor: rename global debug manager to debugManager 2023-11-30 13:00:59 +01:00
cl_set_kernel_arg_svm_pointer_tests.inl feature: Implement appendMemoryPrefetch for Shared System USM allocations 2025-03-13 06:26:38 +01:00
cl_set_kernel_exec_info_tests.inl fix: allow empty set to be passed to clSetKernelExecInfo 2024-04-16 14:11:04 +02:00
cl_set_mem_object_destructor_callback_tests.inl Apply CamelCase for class and struct names 2/2 2023-04-25 13:10:23 +02:00
cl_set_performance_configuration_tests.inl Apply CamelCase for class and struct names 2023-04-24 15:36:27 +02:00
cl_set_program_release_callback.inl Apply CamelCase for class and struct names 2/2 2023-04-25 13:10:23 +02:00
cl_set_program_specialization_constant_tests.inl Apply CamelCase for class and struct names 2/2 2023-04-25 13:10:23 +02:00
cl_svm_alloc_tests.inl test: update gtest API usage 2024-05-28 16:20:06 +02:00
cl_svm_free_tests.inl Apply CamelCase for class and struct names 2/2 2023-04-25 13:10:23 +02:00
cl_unified_shared_memory_tests.inl feature: Implement appendMemoryPrefetch for Shared System USM allocations 2025-03-13 06:26:38 +01:00
cl_unload_compiler_tests.inl
cl_unload_platform_compiler_tests.inl Apply CamelCase for class and struct names 2/2 2023-04-25 13:10:23 +02:00