82e29fd048
Add bcs split control mask
...
Introduce debug variable to control which engines
the tranfser will be split into
Related-To: NEO-7173
Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com >
2022-08-19 13:21:10 +02:00
67d7846974
Prepare ults for patch tokens cleanup
...
Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com >
Related-To: IGC-5606
2022-08-18 20:14:27 +02:00
18adbed233
feat(zebin): add thread scheduling mode support
...
Resolves: NEO-7197
Signed-off-by: Krystian Chmielewski <krystian.chmielewski@intel.com >
2022-08-18 16:10:18 +02:00
0011368775
Add parameter to set surface state base address value
...
This change introduces capability to set surface state base address
when surface state heap or global base address are not available
Related-To: NEO-7187
Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com >
2022-08-18 15:36:43 +02:00
b10b3ed9dd
Add initial enqueue bcs split infrastructure
...
Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com >
2022-08-18 15:02:08 +02:00
aa3a4765b9
Respect ForceAllResourcesUncached flag
...
Respect debug flag ForceAllResourcesUncached even when
Override L1 Policy flags are also set
Related-To: NEO-7003
Signed-off-by: Dominik Dabek <dominik.dabek@intel.com >
2022-08-18 11:46:33 +02:00
dda5b19859
Adjust the implementation of strncpy_s() for Linux
...
This change:
- prevents writing memory out of the range of the destination buffer
- prevents calling strlen() with non-null terminated c-string
- corrects the logic, which validates passed range to proceed
when real length fits the destination buffer
Related-To: NEO-7264
Signed-off-by: Wrobel, Patryk <patryk.wrobel@intel.com >
2022-08-17 18:37:46 +02:00
5bdf758049
Add multi thread test for enqueue NDRange and WriteBuffer with queue per thread
...
Signed-off-by: Cencelewska, Katarzyna <katarzyna.cencelewska@intel.com >
2022-08-17 16:24:42 +02:00
260a324a6f
Move files between shared/test/common and /unit_test (xe_*_core, page_fault...)
...
common/xe_hpc_core/test_preemption_xe_hpc_core -> unit_test/xe_hpc_core
common/xe_hpg_core/excludes_xe_hpg_core -> unit_test/xe_hpg_core
common/xe_hpg_core/dg2/excludes_dg2 -> unit_test/xe_hpg_core/dg2
common/xe_hpg_core/test_preemption_xe_hpg_core -> unit_test/xe_hpg_core
unit_test/base_ult_config_listener.cpp -> common
unit_test/base_ult_config_listener.h -> common
unit_test/test_stats.h -> common
unit_test/test_configuration.h -> common
unit_test/page_fault_manager/cpu_page_fault_manager_tests.h -> common/fixtures
unit_test/page_fault_manager/mock_cpu_page_fault_manager.h -> common/mocks
Related-To: NEO-6524
Signed-off-by: Warchulski, Jaroslaw <jaroslaw.warchulski@intel.com >
2022-08-17 16:17:00 +02:00
497e5a4765
Zebin: Create mock zebin module for L0 common test module
...
Signed-off-by: Kacper Nowak <kacper.nowak@intel.com >
2022-08-17 15:12:49 +02:00
8da78d3ed4
Correct method naming in mock metrics
...
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2022-08-17 14:00:33 +02:00
d36a383a84
Delete redundant matchers and use common matchers instead
...
Signed-off-by: Rafal Maziejuk <rafal.maziejuk@intel.com >
2022-08-17 13:54:15 +02:00
d795182eae
Move files from shared/test/unit_test to /common (preamble, utilities)
...
unit_test/preamble/preamble_fixture.h -> common/fixtures
unit_test/source_level_debugger -> common/
unit_test/utilities/base_object_utils.h -> common/utilities
unit_test/utilities/destructor_counted.h -> common/utilities
unit_test/utilities/logger_tests.h -> common/utilities
Related-To: NEO-6524
Signed-off-by: Warchulski, Jaroslaw <jaroslaw.warchulski@intel.com >
2022-08-17 11:24:58 +02:00
649cd3441a
Rename TestBodyImpl->testBodyImpl
...
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2022-08-17 10:47:05 +02:00
d16668300e
Stop using NOLINT for setup and teardown methods
...
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2022-08-17 10:33:02 +02:00
ceb9d81f87
Add struct argument for input/output in StateBaseAddressHelper
...
This refactor makes future interface changes easier
Related-To: NEO-5019
Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com >
2022-08-17 10:28:49 +02:00
bca852617c
Remove usage of TestLegacy from opencl tests
...
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2022-08-16 22:16:48 +02:00
bfc0919999
Remove usage of TestLegacy from shared tests
...
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2022-08-16 14:36:33 +02:00
edeaa968f5
Destroy resource handle when created
...
Do not create resource when cpuPtr is set
Signed-off-by: Kamil Diedrich <kamil.diedrich@intel.com >
2022-08-16 13:03:59 +02:00
5ffeac44c5
Correct shared fixture methods name to meet clang-tidy requirements
...
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2022-08-16 12:52:49 +02:00
44e1f1ba4b
Remove redundant copying of std::vectors
...
Usage of initializer list in for loop to iterate over heavy types
has bad consequences. std::initialize_list is only a view and its
data is silently created as T[N]. Therefore, if someone uses
std::vector with it, it will cause deep-copying of the elements.
This change introduces usage of pointers on std::initializer_list
to perform a shallow-copy of an addresses. Furthermore, it adds
const references in few places, where copy is not needed.
Signed-off-by: Patryk Wrobel <patryk.wrobel@intel.com >
2022-08-16 09:27:16 +02:00
d213a8e8cd
Ocloc: Enhance platforms support for disasm option
...
- Extend support for existing platforms [disasm option].
- Do not use deprecated core acronyms.
Related-To: NEO-7235
Signed-off-by: Kacper Nowak <kacper.nowak@intel.com >
2022-08-12 14:38:33 +02:00
6a46e8f0ca
Correct method names in device and module fixtures
...
correct naming in derived classes
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2022-08-12 10:40:56 +02:00
fea9c9aca7
Add test to detect potential race
...
also add lock inside initialGpgpu
Signed-off-by: Katarzyna Cencelewska <katarzyna.cencelewska@intel.com >
2022-08-12 09:42:58 +02:00
a5614a1c66
Revert "Destroy resource handle when created"
...
This reverts commit 011a0dd497
.
Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com >
2022-08-12 09:16:34 +02:00
a00e84ebba
Allocate RTStack based on full-die EU count.
...
Related-To: LOCI-3334
Signed-off-by: Jim Snow <jim.m.snow@intel.com >
2022-08-11 23:32:59 +02:00
e6fc458d4b
Add a struct for test fixtures with correct method naming convention
...
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2022-08-11 12:55:52 +02:00
aed890a219
Move files between shared/test/unit_test and /common (fixtures, helpers, mocks)
...
unit_test/fixtures/mock_aub_center_fixture.h -> common/fixtures
unit_test/helpers/raii_hw_helper.h -> common/helpers
unit_test/helpers/static_size3.h -> common/helpers
unit_test/helpers/ult_limits.h -> common/helpers
unit_test/memory_manager/mock_prefetch_manager.h -> common/memory_manager
common/mocks/mock_aub_stream.h -> unit_test/mocks
common/mocks/mock_csr_simulated_common_hw.h -> unit_test/mocks
common/mocks/mock_direct_submission_diagnostic_collector.h -> unit_test/mocks
common/mocks/mock_lrca_helper.h -> unit_test/mocks
common/mocks/mock_tbx_stream.h -> unit_test/mocks
common/mocks/linux/mock_os_context_linux.h -> unit_test/mocks/linux
common/mocks/windows/mock_wddm_direct_submission.h -> unit_test/mocks/windows
Related-To: NEO-6524
Signed-off-by: Warchulski, Jaroslaw <jaroslaw.warchulski@intel.com >
2022-08-11 12:53:19 +02:00
a6c1d9578e
Move files between shared/test/common/helpers and shared/test/unit_test/helpersi
...
unit_test/helpers/cmd_buffer_validator.h -> common/helpers
unit_test/helpers/gtest_helpers.h -> common/helpers
common/helpers/blit_commands_helper_tests.inl -> unit_test/helpers
common/helpers/simd_helper_tests.inl -> unit_test/helpers
common/helpers/simd_helper_tests_pvc_and_later.inl -> unit_test/helpers
common/helpers/state_base_address_tests.h -> unit_test/helpers
Related-To: NEO-6524
Signed-off-by: Warchulski, Jaroslaw <jaroslaw.warchulski@intel.com >
2022-08-10 15:23:12 +02:00
011a0dd497
Destroy resource handle when created
...
Do not create resource when cpuPtr is set
Signed-off-by: Kamil Diedrich <kamil.diedrich@intel.com >
2022-08-10 12:35:49 +02:00
c3d40c210f
ULT refactor: remove i915 header dependency from drm_mock.h/drm_query_mock.h
...
Related-To: NEO-6999
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2022-08-09 15:04:22 +02:00
b39be32e20
Add member for handling additional adapterInfo fields
...
Signed-off-by: Kamil Diedrich <kamil.diedrich@intel.com >
2022-08-09 14:11:05 +02:00
d8cd596baf
Add device ID for ADLS (0xA78B)
...
Related-To: NEO-7240
Signed-off-by: Neumann, Marta <marta.neumann@intel.com >
2022-08-09 13:55:30 +02:00
e7cca25894
CMake: don't include shared/test/unit_test when shared tests are skipped 1/n
...
Related-To: NEO-6524
Signed-off-by: Warchulski, Jaroslaw <jaroslaw.warchulski@intel.com >
2022-08-09 11:41:09 +02:00
6450be2414
Remove redundant device and revision id members from Drm class
...
Drm should set these values directly to hw info in root device environment
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2022-08-09 10:13:32 +02:00
ed0c36117e
Apply heuristics when setting TG dispatch size on XE_HPC_CORE
...
The default TG dispatch size can be changed
to a better value based on number of threads in TG or
currently available amount of threads on GPU.
Decision on what TG dispatch size should be are based on
implemented heuristics.
Signed-off-by: Rafal Maziejuk <rafal.maziejuk@intel.com >
Related-To: NEO-6989
2022-08-08 16:43:10 +02:00
b38c750cc4
Revert "Add finish before command queue is released"
...
This reverts commit 50fae92ea2
.
Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com >
2022-08-05 19:25:23 +02:00
1f21d34fd3
Add experimental CL_MEM_DEVICE_ID_INTEL property for memory object creation
...
Signed-off-by: Filip Hazubski <filip.hazubski@intel.com >
2022-08-05 14:54:30 +02:00
61510e9a92
Revert optimization of gpgpu csr's mutex lock in the enqueue blit
...
optimization available under flag
ForceCsrLockInBcsEnqueueOnlyForGpgpuSubmission
Related-To: NEO-7011
Signed-off-by: Cencelewska, Katarzyna <katarzyna.cencelewska@intel.com >
2022-08-04 16:42:50 +02:00
3a31caf44a
Revert "Add member for handling additional adapterInfo fields"
...
This reverts commit aafbbf54db
.
Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com >
2022-08-04 09:36:36 +02:00
98d776867f
Add initial support for KernelArgsBuffer allocation
...
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com >
2022-08-03 20:28:21 +02:00
aafbbf54db
Add member for handling additional adapterInfo fields
...
Signed-off-by: Kamil Diedrich <kamil.diedrich@intel.com >
2022-08-03 16:14:46 +02:00
64babcf22c
Rename cl_intel_subgroup_matrix_multiply_accumulate extension
...
Use cl_intel_subgroup_matrix_multiply_accumulate in place
of previous cl_intel_subgroup_matrix_multiply_accumulate_for_PVC
Signed-off-by: Filip Hazubski <filip.hazubski@intel.com >
2022-08-03 11:46:29 +02:00
00ff0dc337
Revert "Destroy resource handle when created"
...
This reverts commit 5a6a90aa0e
.
Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com >
2022-08-02 11:04:10 +02:00
97b5555d61
Remove test which depends on IGC output
...
Related-To: NEO-5449
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2022-08-01 12:36:34 +02:00
53a3cd2cdd
Add method to merge LSH pipelined state during cmd list execution
...
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com >
2022-07-28 17:32:53 +02:00
5a6a90aa0e
Destroy resource handle when created
...
When allocation is created and createResource is set we need to
remove resourceHandle instead of allocation handle list otherwise
in long running application (a lot of allocations) we will observe
memory leak.
Signed-off-by: Kamil Diedrich <kamil.diedrich@intel.com >
2022-07-28 13:22:52 +02:00
cb18657cb8
Slightly improve "ocloc ids" output
...
- Add trailing newline, so the output looks nice in the terminal.
- "Uknown" -> "Unknown".
Signed-off-by: Andrey Alekseenko <al42and@gmail.com >
2022-07-28 11:48:58 +02:00
af91f94098
Improve calculateAvailableThreadCount implementation
...
Signed-off-by: Rafal Maziejuk <rafal.maziejuk@intel.com >
2022-07-28 11:43:14 +02:00
fe0c857f1a
Cleanup includes 5/n
...
Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com >
2022-07-28 11:33:01 +02:00