Commit Graph

11166 Commits

Author SHA1 Message Date
Krystian Chmielewski 5af2bc8a60 zebin: add support for kernels source attributes
This commit adds parsing of "user_attributes" section of zeInfo
containing kernel's language attributes.

Signed-off-by: Krystian Chmielewski <krystian.chmielewski@intel.com>
2022-09-08 12:07:19 +02:00
Zbigniew Zdanowicz 9c82238c1e add cmake variable to level zero black box tests describing include directory
Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
2022-09-08 12:07:03 +02:00
Mateusz Hoppe 6c7f500649 Parse AffinityMAsk in ULTs DeviceFactory
- enable testing of affinity mask configuration

Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2022-09-08 12:06:44 +02:00
Krystian Chmielewski 2e9574c656 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-08 11:37:18 +02:00
ocldev 3b211c9f8d aub_stream revision update
Signed-off-by: ocldev <ocldev@intel.com>
2022-09-08 10:18:10 +02:00
ocldev b056bdc50c dependencies update
Signed-off-by: ocldev <ocldev@intel.com>
2022-09-08 09:12:17 +02:00
Artur Harasimiuk ef5334fc3a infra update
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
2022-09-07 20:53:01 +02:00
Kamil Diedrich 0d5c27a75f Add support for ADL-N for WSL
Signed-off-by: Kamil Diedrich <kamil.diedrich@intel.com>
2022-09-07 20:11:45 +02:00
Mateusz Hoppe 6ad16c9e72 Missing support for OCL debugging with L0
- make resident debugSurface
- allocate debugSurface with correct allocation type and size
- notify cmdQ create/destroy

Related-To: NEO-7075

Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2022-09-07 13:30:05 +02:00
Zbigniew Zdanowicz 055088ddc1 Improve printing device properties in level zero black box tests
Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
2022-09-07 13:29:50 +02:00
Kamil Kopryk 3223a0bace Correct linear stream size estimation - dispatch task count post sync
Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com>
Related-To: NEO-7156
2022-09-07 13:29:35 +02:00
Kamil Kopryk 38fd01ef41 Correct sba programming ult - validate programmed MOCS index
Ult was checking random memory (beyond the programmed command buffer)
initalized with zeros.
Since the expected MOCS index is 0, the test was passing.

Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com>
Related-To: NEO-7156
2022-09-07 13:05:26 +02:00
Kamil Kopryk dec2d9a184 Correct parse command buffer in ults - validate only programmed cmd buffer
Also use estimated size instead of 4KB in SBA programming ults.

Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com>
Related-To: NEO-7156
2022-09-07 12:57:57 +02:00
Zbigniew Zdanowicz b6e2d2df8b Add multi return points command lists for front end reconfiguration
This change gives fine grain control over front end configuration for each
kernel.
As it gives possible to inject FE command in command queue and return to exact
place in command list.
Programming commands in queue makes patching commands in command lists
not needed as that operation is costly.
And it allows to program context information for each command list too.

Related-To: NEO-5019

Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
2022-09-07 12:53:24 +02:00
Artur Harasimiuk 7d164ec118 infra update
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
2022-09-06 22:30:47 +02:00
Compute-Runtime-Validation c0ce477f85 Revert "Enable BCS split WA in OCL"
This reverts commit abfcaf1265.

Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
2022-09-06 20:42:57 +02:00
Szymon Morek 3bb12ad10a Allocate all event pools in local memory
Currently event pools are allocated in system
memory if HOST_VISIBLE flag is being set.
With this change such event pool will be
allocated in device memory if DC flush is not
allowed.

Related-To: NEO-7302

Signed-off-by: Szymon Morek <szymon.morek@intel.com>
2022-09-06 17:17:32 +02:00
Bellekallu Rajkiran 50f9564a18 Add support to test device reset for specific device
Related-To: LOCI-3392

Signed-off-by: Bellekallu Rajkiran <bellekallu.rajkiran@intel.com>
2022-09-06 17:12:25 +02:00
Naklicki, Mateusz f7332fc30b Change order of EncodeDispatchKernelArgs members
Order members by their size

Signed-off-by: Naklicki, Mateusz <mateusz.naklicki@intel.com>
2022-09-06 16:49:48 +02:00
Dunajski, Bartosz 84872812f2 Remove not used helper
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
2022-09-06 16:02:56 +02:00
Szymon Morek adfeebcfe4 Use const reference instead of copying data
Change appendUnalignedFillKernel to
pass const reference instead of copy

Signed-off-by: Szymon Morek <szymon.morek@intel.com>
2022-09-06 14:53:00 +02:00
Zbigniew Zdanowicz 168eb5fa1b Fix calculation of number of thread groups in fence black box
Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
2022-09-06 14:44:43 +02:00
Patryk Wrobel 53c127e64c Remove superfluous const_casts
Signed-off-by: Patryk Wrobel <patryk.wrobel@intel.com>
2022-09-06 13:34:01 +02:00
Dunajski, Bartosz 16d9000429 Add option to change GRF mode
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
2022-09-06 13:00:17 +02:00
Wrobel, Patryk 334802c9ba Use correct format string in ocloc_validator
Signed-off-by: Wrobel, Patryk <patryk.wrobel@intel.com>
2022-09-06 12:25:19 +02:00
Kacper Nowak b41eed8438 CMake: correct test kernels naming + minor improvements
- For test kernels compiled with options passed, change their naming to
following convention:
{basename}_{options_passed}_{suffix}.
- Correct CMake variables naming.
- Refactor logic of retrieving test kernels' data (also in compilers
mock)
- In relation to previous changes: do not generate unnecessary
.gen binary for L0 test kernel

Related-To: NEO-7285
Signed-off-by: Kacper Nowak <kacper.nowak@intel.com>
2022-09-06 11:19:46 +02:00
Bellekallu Rajkiran ceff16084d Fix temperature handle enumeration issue on single tile devices
Add platform check to read pmt offsets corresponding to
tile instead of root node for single tile devices.

Related-To: LOCI-2575

Signed-off-by: Bellekallu Rajkiran <bellekallu.rajkiran@intel.com>
2022-09-06 10:57:35 +02:00
Dominik Dabek 16798467ac Add api specific config for allocation cache
Currently disabled for both opencl and level zero

Related-To: NEO-6893

Signed-off-by: Dominik Dabek <dominik.dabek@intel.com>
2022-09-05 21:15:18 +02:00
Patryk Wrobel 09bb0766e2 Remove undefined behavior from debug_settings_manager.cpp
It is undefined behavior to add definition of function overload to std
namespace.

Signed-off-by: Patryk Wrobel <patryk.wrobel@intel.com>
2022-09-05 21:04:16 +02:00
Yates, Brandon 12c7f32679 L0 Win Debugger - implement thread control
Resolves: NEO-6722

Signed-off-by: Yates, Brandon <brandon.yates@intel.com>
Signed-off-by: Igor Venevtsev <igor.venevtsev@intel.com>
2022-09-05 19:26:14 +02:00
Szymon Morek 403b49e987 Append additional fill kernel for left leftover
Related-To: NEO-7287

Signed-off-by: Szymon Morek <szymon.morek@intel.com>
2022-09-05 18:08:26 +02:00
Mateusz Hoppe 992e8e7c96 L0Debug - fix getISAVMHandle()
- use correct address form when searching Isa map

Resolves: NEO-7312

Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2022-09-05 16:10:13 +02:00
Wrobel, Patryk a8db8b852a Fix undefined behaviors discovered in tests
This change removes the following UBs:
- calling std::vector::insert() with source range, which comes
from the destination vector; when vector needs to grow then
the source iterators are invalid
- comparison of singular (default-constructed) iterators is
disallowed

Signed-off-by: Wrobel, Patryk <patryk.wrobel@intel.com>
2022-09-05 15:24:58 +02:00
Warchulski, Jaroslaw 57da7ad307 Don't generate gen file by default
Related-To: NEO-6613
Signed-off-by: Warchulski, Jaroslaw <jaroslaw.warchulski@intel.com>
2022-09-05 15:00:48 +02:00
Lukasz Jobczyk abfcaf1265 Enable BCS split WA in OCL
Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
2022-09-05 13:34:11 +02:00
Katarzyna Cencelewska 7faf861408 Call setupHardwareInfoBase inside setupHardwareInfo on pvc
Signed-off-by: Katarzyna Cencelewska <katarzyna.cencelewska@intel.com>
2022-09-05 13:15:33 +02:00
Lukasz Jobczyk a9b3b8137f Release locks before wait on blocking BCS split calls
Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
2022-09-05 11:20:23 +02:00
Lukasz Jobczyk 0d6bef0753 Add BCS split to api specific config
Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
2022-09-05 11:13:10 +02:00
Zbigniew Zdanowicz 7b81583552 reposition code of multi tile command list fixture
Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
2022-09-05 11:01:08 +02:00
Compute-Runtime-Validation 3e7276cdf8 Revert "Call setupHardwareInfoBase inside setupHardwareInfo on pvc"
This reverts commit 11374b83af.

Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
2022-09-03 21:55:53 +02:00
Compute-Runtime-Validation 20f49481f2 Revert "Enable BCS split WA in OCL"
This reverts commit d672920121.

Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
2022-09-03 20:25:10 +02:00
Compute-Runtime-Validation 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
Compute-Runtime-Validation c3fffcc8c0 Revert "Default L0 Function & Global Symbols with fallback build"
This reverts commit 2157f15594.

Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
2022-09-03 07:08:52 +02:00
Artur Harasimiuk 536284d755 infra update
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
2022-09-02 21:30:39 +02:00
Neil R Spruit 2157f15594 Default L0 Function & Global Symbols with fallback build
- Enabled default setting of Program & Global Symbols to be generated by
IGC when building L0 Modules with the ability to fallback to previous
behavior thru build failure checks.

- Enabled selective disable of default program or global symbol
generation thru debug variables.

Signed-off-by: Neil R Spruit <neil.r.spruit@intel.com>
2022-09-02 19:16:40 +02:00
Jitendra Sharma 3212a71760 Debugger L0 Win: Attention event handling from UMD
Related-To: NEO-7261

Signed-off-by: Jitendra Sharma <jitendra.sharma@intel.com>
2022-09-02 18:22:41 +02:00
Dunajski, Bartosz 22fb71a268 Walker partition: Improve barrier programming
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
2022-09-02 18:09:38 +02:00
Mateusz Jablonski 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
Krystian Chmielewski bb2967d2c6 Add handling for invalid kernel attribute
This commit adds handling for "invalid_kernel" kernel's attribute.
This attribute is present when kernel is invalid e.g. could not be
correctly compiled due to missing feature.

Signed-off-by: Krystian Chmielewski <krystian.chmielewski@intel.com>
2022-09-02 17:51:22 +02:00
Zbigniew Zdanowicz 18af46296d Optimize programming of front end by selecting correct hardware
Related-To: NEO-5019

Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
2022-09-02 17:41:37 +02:00