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
Warchulski, Jaroslaw
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
Warchulski, Jaroslaw
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
Rafal Maziejuk
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
Katarzyna Cencelewska
25ce4d0c04
Clean unused code
...
remove parts with device queue
Signed-off-by: Katarzyna Cencelewska <katarzyna.cencelewska@intel.com>
2022-07-07 14:52:26 +02:00
Artur Harasimiuk
4bdd8860a1
test.h refactor
...
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
2022-07-04 18:20:07 +02:00
Kacper Nowak
de75e51228
Zebin: Add support for new buffer_address arg type
...
This change adds support for new "buffer_address" arg type, which adds
buffer address information for stateful-only argument. This will prevent
from generating stateless version of a kernel argument if all its
accesses are to be promoted to the stateful ones.
- Change default value of accessedUsingStatelessAddressingMode flag.
Signed-off-by: Kacper Nowak <kacper.nowak@intel.com>
Related-To: NEO-7048
2022-06-08 17:33:31 +02:00
Bartosz Dunajski
9959896957
Add RT calls support to Kernel descriptor
...
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
2022-04-22 16:33:59 +02:00
Mateusz Jablonski
82e3b10c5a
Fix typo
...
Related-To: NEO-5081
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2022-02-25 18:10:41 +01:00
Mateusz Jablonski
a2386ad216
Correct programming of implicit args on pre-XeHp platforms
...
On pre-XeHp platforms implicit args aren't at the beginning of indirect data,
GPU address of implicit args buffer is programmed within cross thread data
Related-To: NEO-5081, IGC-4710
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2022-02-24 20:52:04 +01:00
Mateusz Jablonski
8860fcc868
Handle patch token for implicit args buffer
...
Related-To: NEO-5081, IGC-4710
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2022-02-23 12:04:54 +01:00
Mateusz Jablonski
ea6f089e17
Unify implicit args programming across APIs
...
Related-To: NEO-5081
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2022-02-23 11:52:47 +01:00
Katarzyna Cencelewska
4994eb18c2
Remove device side enqueue info from kernel descriptor
...
Related-To: NEO-6559
Signed-off-by: Katarzyna Cencelewska <katarzyna.cencelewska@intel.com>
2022-02-22 14:18:44 +01:00
Mateusz Jablonski
4f71aaf595
Handle SIMD-1 scenario when programming local ids for implicit args
...
according to implicit args design for SIMD-1 local ids are one-by-one
Resolves: NEO-6692
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2022-02-17 17:48:54 +01:00
Kacper Nowak
cd9cc53159
Correct setting usesStringMap flag in printf
...
This commit fixes setting usesStringMap flag for printf, taking into
account using indirect functions in legacy (non-zebinary) path. It also
adds new field to kernelDescriptor, specifying the binary type
(legacy/zebin).
Related-To: NEO-6604
Signed-off-by: Kacper Nowak <kacper.nowak@intel.com>
2022-02-15 15:39:10 +01:00
Mateusz Jablonski
b697d75695
Correct dimension order in local ids generated for implicit args
...
when local ids are generated by HW, use same dim order for runtime generation
move common logic to separated file
Related-To: NEO-5081
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2022-02-04 12:46:59 +01:00
Katarzyna Cencelewska
20f17f775e
Remove device enqueue part 8
...
- remove hasDeviceEnqueue
Related-To: NEO-6559
Signed-off-by: Katarzyna Cencelewska <katarzyna.cencelewska@intel.com>
2022-01-19 11:16:35 +01:00
Maciej Plewka
df7723411f
Patch image descriptor fields with dword width
...
Signed-off-by: Maciej Plewka <maciej.plewka@intel.com>
2021-12-27 17:55:42 +01:00
Mateusz Jablonski
527806b3ed
Use full path to include test.h 2/n
...
fix files in shared
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2021-12-15 13:09:50 +01:00
Mateusz Hoppe
694e8ac5ac
Add ULT for kernel descriptor population
...
- enhanced testing for non-bindless mode with UpdateCrossThreadDataSize
debug variable
Related-To: NEO-6448
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2021-12-08 10:28:40 +01:00
Jim Snow
2dfb7df63b
Add RTDispatchGlobals allocation for ray tracing
...
If a kernel has ray tracing calls, we allocate and initialize
per-device RTDispatchGlobals if needed, and hand off pointer to
the same into a running kernel via an implicit parameter.
Related-To: NEO-5384
Signed-off-by: Jim Snow <jim.m.snow@intel.com>
2021-12-08 09:44:13 +01:00
Mateusz Hoppe
9483070b18
Enable bindless aub in L0
...
- update crossthreaddata size according to argument offsets
when processing patchtoken binary when DATA PARAMETER STREAM SIZE
is lower than size required for arguments
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2021-12-07 17:28:31 +01:00
Mateusz Jablonski
ec89b4eae7
Consume HasStackCalls info from IGC
...
Related-To: NEO-5081
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2021-11-15 20:30:51 +01:00
Krystian Chmielewski
98eb086160
Don't generate local ids if not needed
...
Signed-off-by: Krystian Chmielewski <krystian.chmielewski@intel.com>
2021-11-08 13:10:00 +01:00
Krystian Chmielewski
f20cdac7d3
Zebin: add support for has_dpas
...
Signed-off-by: Krystian Chmielewski <krystian.chmielewski@intel.com>
2021-10-28 09:59:21 +02:00
Bartosz Dunajski
96d14967ac
Partial support for XE_HP_SDV
...
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
2021-06-24 18:35:54 +02:00
Krystian Chmielewski
41f3bd00ff
Remove PatchTokens from KernelInfo
...
Use KernelDescriptor instead of patchTokens stored in KernelInfo's
patchInfo.
Removed: SPatchMediaInterfaceDescriptorLoad, SPatchAllocateLocalSurface,
SPatchMediaVFEState(slot 0), SPatchMediaVFEState(slot 1),
SPatchInterfaceDescriptorData, SPatchSamplerStateArray,
SPatchBindingTableState, SPatchDataParameterBuffer,
SPatchDataParameterStream, SPatchThreadPayload,
SPatchKernelAttributesInfo, SPatchAllocateStatelessPrivateSurface,
SPatchAllocateSyncBuffer,
SPatchAllocateStatelessConstantMemorySurfaceWithInitialization,
SPatchAllocateStatelessGlobalMemorySurfaceWithInitialization,
SPatchAllocateSystemThreadSurface.
Related-To: NEO-4729
Signed-off-by: Krystian Chmielewski <krystian.chmielewski@intel.com>
2021-03-09 17:09:13 +01:00
Jaroslaw Chodor
4c50a9e147
Zebin - Improving binding table generation
...
Allowing N:1 kernel_arg:bti mappings
Signed-off-by: Jaroslaw Chodor <jaroslaw.chodor@intel.com>
2021-01-20 18:37:45 +01:00
Adam Cetnerowski
abd78c68e2
ULT renaming: misc
...
Related-To: NEO-2236
Signed-off-by: Adam Cetnerowski <adam.cetnerowski@intel.com>
2021-01-18 19:09:34 +01:00
Krystian Chmielewski
4948c39d39
Remove executionEnvironment from KernelInfo
...
Related-To: NEO-3739
2020-12-16 14:56:57 +01:00
Maciej Plewka
28de4068c9
Read bindless offset from patch token
...
Signed-off-by: Maciej Plewka <maciej.plewka@intel.com>
2020-11-18 17:04:00 +01:00
Jaroslaw Chodor
345e56a151
Zebin improvements
...
* cleaning-up per-thread buffer size calculations
* fixing default slm alignment to 16
* adding scratch space slots
* renaming slm addressing mode
* adding support for zeinfo version
Change-Id: I0450353788b8488a685976d7f1dd26a44360383c
2020-10-29 16:33:21 +01:00
Bartosz Dunajski
1926ef8319
is_simt_thread token support
...
Change-Id: I8cee6ff26229f0f492ba0d1e5e61d6e46e0c2486
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
2020-10-21 14:14:43 +02:00
Pawel Cieslak
fb821f21f5
Cmake format script
...
Related-To: NEO-1157
Change-Id: Ie1b907e838cfb9ad0d75cc8971d415f7c77103c9
Signed-off-by: Pawel Cieslak <pawel.cieslak@intel.com>
2020-08-19 16:36:30 +02:00
Konstanty Misiak
9e8945ca83
Move shared tests to the new target [3/n]
...
Change-Id: I2479d283cffc9c7f8b49ac616026d9afa491da29
Signed-off-by: Konstanty Misiak <konstanty.misiak@intel.com>
2020-06-09 13:01:36 +02:00
Konstanty Misiak
a3a1f49dc0
Move shared tests to the new target [2/n]
...
Change-Id: I6d4f955adfecccc8c33ffa7a6c36605ccf5ab7a4
Signed-off-by: Konstanty Misiak <konstanty.misiak@intel.com>
2020-05-28 14:21:35 +02:00
Jaroslaw Chodor
a8269f55f9
Removing grf size from kernel descriptor
...
Change-Id: I62954d5de596410a463459cc185ff950871fcd36
2020-04-25 00:15:05 +02:00
Jaroslaw Chodor
2c25777f3c
DispatchKernelEncoder refactor
...
Replacing parts of DispatchKernelEncoder with KernelDescriptor
Change-Id: I1c780b04a2d3d1de0fb75d5413a0dde8b41bbe07
2020-04-08 16:19:21 +02:00
Jaroslaw Chodor
82bda4febc
Kernel descriptor, slm - don't use byVal
...
Change-Id: I673179ca5caa610038805b91a961005db52ad28a
2020-02-28 07:24:00 +01:00
Chodor
424120a86e
Kernel descriptor - copy name
...
Change-Id: Ic4ef196cf5ff2be7a06a5c09804685341944e56f
2020-02-28 01:31:31 +01:00
Jaroslaw Chodor
207c71ceca
Adding kernel descriptor initialization
...
Change-Id: Ica3ace0d06202e6c0909f91dd53e61824fe73c23
2020-02-26 20:02:01 +01:00
Jaroslaw Chodor
915b80b1df
Introducing kernel descriptor
...
Change-Id: I4ce6ebf27a81cf14b055817ebfe76d8427e349ab
2020-02-25 00:03:15 +01:00