c8975e14fe
Revert "Fix printf for type BYTE and SHORT"
...
This reverts commit b04c226767
.
Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com >
2022-09-03 14:11:26 +02:00
e1c7e194ee
ULT: remove gmock WA from opencl/shared tests
...
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2022-09-02 17:58:08 +02:00
fa6bccdb30
Add new mt test for scenario with blitter
...
also change in other EnqueueKernelTest to use a proper
retValue per thread
Signed-off-by: Cencelewska, Katarzyna <katarzyna.cencelewska@intel.com >
2022-09-02 17:31:48 +02:00
2430ed5b9a
Remove dead code from ULT
...
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2022-09-02 17:15:17 +02:00
485ba234f3
Revert change DG2 l1 cache policy
...
This reverts cache policy back to WBP,
due to functional regressions
Related-To: NEO-7003
Signed-off-by: Dominik Dabek <dominik.dabek@intel.com >
2022-09-02 12:02:14 +02:00
01dc470d26
Fix BCS split ULTs on 32 bit
...
Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com >
2022-09-02 09:56:21 +02:00
572fc24cf5
Revert "Wait on timestamps in Event::wait"
...
This reverts commit 5d4aca361f
.
Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com >
2022-09-02 02:43:20 +02:00
b04c226767
Fix printf for type BYTE and SHORT
...
Generated instructions writing to printf buffer require destination
address to be DWORD aligned. Because of that values of type BYTE (1B)
and SHORT (2B) need to be written as 4B value.
This change adds support for this. When trying to read value of type
BYTE or SHORT four bytes are actually read to be aligned with compiler
implementation.
Signed-off-by: Krystian Chmielewski <krystian.chmielewski@intel.com >
2022-09-01 17:58:31 +02:00
d672920121
Enable BCS split WA in OCL
...
Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com >
2022-09-01 16:26:00 +02:00
e110f51fa3
Move tests from opencl to shared
...
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2022-09-01 09:38:40 +02:00
c3f7e40a8d
Rename special pipeline select mode to systolic
...
Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com >
2022-08-31 22:16:26 +02:00
399758ef17
Change default engines for BCS split
...
Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com >
2022-08-31 21:34:36 +02:00
a3dedcc7ee
Add minimal transfer size for BCS split
...
Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com >
2022-08-31 21:28:40 +02:00
74bf623ddb
Correct arguments verification of clEnqueueReleaseDX9ObjectsINTEL call
...
When clEnqueueReleaseDX9ObjectsINTEL is called and
incorrect memory objects list is passed, ensure that
api returns gracefully and proper value is returned.
Signed-off-by: Filip Hazubski <filip.hazubski@intel.com >
2022-08-31 21:02:10 +02:00
8cc0177f1c
Change DG2 l1 cache policy to WB
...
With compiler LSC WAs this gives better performance.
If debugger is active, policy will not be changed ie.
will be WBP.
Related-To: NEO-7003
Signed-off-by: Dominik Dabek <dominik.dabek@intel.com >
2022-08-31 14:31:23 +02:00
6118e41741
do not load FCL in Level Zero runtime
...
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com >
2022-08-31 13:51:23 +02:00
5d4aca361f
Wait on timestamps in Event::wait
...
Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com >
2022-08-31 12:57:27 +02:00
7e7f8b5bc2
Move files from shared/test/unit_test to shared/test/common
...
unit_test/helpers/debug_helpers.cpp -> common/helpers
unit_test/page_fault_manager/default_asan_options.cpp -> common/page_fault_manag
unit_test/utilities/cpuintrinsics.cpp -> common/utilities
unit_test/memory_manager/deferred_deleter_mt_tests.cpp -> opencl/test/unit_test/
delete: unit_test/mocks/debugger_l0_create.cpp
delete: unit_test/page_fault_manager/default_asan_options.cpp
Related-To: NEO-6524
Signed-off-by: Warchulski, Jaroslaw <jaroslaw.warchulski@intel.com >
2022-08-30 12:24:28 +02:00
2621460e80
Revert "Change DG2 l1 cache policy to WB"
...
This reverts commit a820e73dd7
.
Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com >
2022-08-27 08:04:19 +02:00
c0342a0ab5
Optimize binaries' size by adjusting linkage of constants in headers
...
When header is included for the first time in translation unit,
then preprocessor simply copy-pastes its content. If we define a
constant in a header file and this constant has internal linkage
then each and every translation unit, which includes this header
will have its own copy of this constant.
C++17 introduces inline variables, which are meant to allow creation
of variables in header files, which do not cause multiple instances.
The inline variable has a single instance when:
- constexpr is used without static (constexpr implicitly implies inline)
- inline is used without static
- inline const is used without static (const does not imply internal linkage
when used with inline)
Signed-off-by: Patryk Wrobel <patryk.wrobel@intel.com >
2022-08-26 22:52:04 +02:00
ffe8c75291
Add missing ULT for va sharing functions
...
Signed-off-by: Kamil Diedrich <kamil.diedrich@intel.com >
2022-08-26 17:36:36 +02:00
a820e73dd7
Change DG2 l1 cache policy to WB
...
With compiler LSC WAs this gives better performance.
If debugger is active, policy will not be changed ie.
will be WBP.
Related-To: NEO-7003
Signed-off-by: Dominik Dabek <dominik.dabek@intel.com >
2022-08-26 12:58:45 +02:00
f656707fc0
Use hardware support flags for state compute mode state changes
...
Related-To: NEO-5019
Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com >
2022-08-25 18:46:37 +02:00
2de3cdc90c
Add packed formats to import va surface
...
This patch adds YUY2 and Y210 packed formats into cl/va sharing
Signed-off-by: Kamil Diedrich <kamil.diedrich@intel.com >
2022-08-25 18:18:52 +02:00
98500ee653
Allow overriding hw config on aub/tbx mode
...
Signed-off-by: Naklicki, Mateusz <mateusz.naklicki@intel.com >
2022-08-25 10:54:42 +02:00
cf7e7fbc4e
CMake: don't include shared/test/unit_test when shared tests are skipped
...
opencl/test/unit_test/gen9/hw_helper_tests_gen9.cpp -> unit_test/gen9
opencl/test/unit_test/gen11/hw_helper_tests_gen11.cpp -> unit_test/gen11
unit_test/device_binary_format/elf/elf_tests_data.h -> common/device_binary/elf
Related-To: NEO-6524
Signed-off-by: Warchulski, Jaroslaw <jaroslaw.warchulski@intel.com >
2022-08-25 10:48:37 +02:00
ca0686b404
Unify include directories for i915 headers
...
include i915_drm_prelim.h using relative path
Related-To: NEO-6852
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2022-08-24 14:58:01 +02:00
1a28c2a154
Add threads count queries
...
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com >
2022-08-24 13:18:20 +02:00
835174c076
Remove builtins duplication
...
Resolves: NEO-7064
Signed-off-by: Krystian Chmielewski <krystian.chmielewski@intel.com >
2022-08-24 07:27:46 +02:00
a5b4a13452
Revert "Return error when image arg does not support media block commands"
...
This reverts commit 8388e6cf4a
.
Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com >
2022-08-24 06:23:22 +02:00
f7b3b20f81
Add warning when SLM is not enough for kernel
...
Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com >
2022-08-24 01:56:41 +02:00
60451b590d
Perform deep-copy of helper's name
...
Signed-off-by: Patryk Wrobel <patryk.wrobel@intel.com >
2022-08-23 16:42:40 +02:00
595cfebaef
Refactor PIPE_CONTROL programming
...
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com >
2022-08-23 13:55:25 +02:00
8388e6cf4a
Return error when image arg does not support media block commands
...
Related-To: NEO-7168
Signed-off-by: Maciej Plewka <maciej.plewka@intel.com >
2022-08-23 12:07:29 +02:00
f7925b9f15
Use unique_ptr in tests of surface
...
This change removes manual memory management via new/delete
and replaces it with std::unique_ptr.
Signed-off-by: Patryk Wrobel <patryk.wrobel@intel.com >
2022-08-23 11:32:50 +02:00
315f6230bf
correct name of evict flag to match wddm
...
Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com >
2022-08-22 18:14:51 +02:00
9cf95c044e
Refactor and reposition state base address tests
...
Related-To: NEO-5019
Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com >
2022-08-22 16:31:09 +02:00
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