Mateusz Jablonski
e246e75b70
refactor: add method to get Compiler Product Helper from root device environment
...
Reduce usage of compiler product helper global getter
Related-To: NEO-6853
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2023-01-03 11:32:27 +01:00
Kacper Nowak
a262bffeb4
feat(ocl): Generate minimal set of args info
...
Provide minimalistic arg info metada when provided native binary is missing
kernels_misc_info section.
- For args passed by value and by pointer (-images/samplers), do not
specify type name - instead, return an opaque* type name with size.
Signed-off-by: Kacper Nowak <kacper.nowak@intel.com >
2022-12-29 20:11:39 +01:00
Kamil Kopryk
a97a2839aa
fix(zebin): disable zebin when vme extension is enabled in source code
...
Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com >
2022-12-29 12:09:46 +01:00
Compute-Runtime-Validation
8d18a0cd12
Revert "feat(ocl): Generate minimal set of args info"
...
This reverts commit ea6c91eccc .
Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com >
2022-12-29 07:07:32 +01:00
Kacper Nowak
ea6c91eccc
feat(ocl): Generate minimal set of args info
...
- Provide minimalistic arg info metada when provided native binary is missing
kernels_misc_info section.
Signed-off-by: Kacper Nowak <kacper.nowak@intel.com >
2022-12-28 20:24:44 +01:00
Kopryk, Kamil
ceda3f65c2
fix(zebin): pass disable zebin internal option when building vme program
...
Signed-off-by: Kopryk, Kamil <kamil.kopryk@intel.com >
2022-12-23 09:50:27 +01:00
Kamil Kopryk
a9121f88c4
fix(zebin): fallback to patchtokens when vme is used
...
Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com >
2022-12-22 10:59:56 +01:00
Mateusz Jablonski
8f1bdb220f
Pass root device environment to get TargetDevice for IGC
...
Related-To: NEO-6853
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2022-12-19 19:29:50 +01:00
Kamil Kopryk
03b687881f
Rename HwHelper -> GfxCoreHelper
...
Related-To: NEO-6853
Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com >
2022-12-09 10:29:06 +01:00
Krystian Chmielewski
d25a5c73f2
fix(ocl zebin): do not expose functions as kernels
...
Signed-off-by: Krystian Chmielewski <krystian.chmielewski@intel.com >
2022-12-05 12:39:18 +01:00
Kamil Kopryk
785b9eeece
Rename CompilerHwInfoConfig -> CompilerProductHelper
...
Related-To: NEO-6853
Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com >
2022-12-05 11:25:49 +01:00
Compute-Runtime-Validation
c322bc3578
Revert "fix(ocl zebin): do not expose functions as kernel"
...
This reverts commit 359b9278b8 .
Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com >
2022-11-29 13:51:50 +01:00
Krystian Chmielewski
359b9278b8
fix(ocl zebin): do not expose functions as kernel
...
Do not expose dummy kernel containing functions' ISAs as kernels.
Signed-off-by: Krystian Chmielewski <krystian.chmielewski@intel.com >
2022-11-28 14:29:32 +01:00
Dunajski, Bartosz
5266a95c03
Debug flag to control auto grf mode
...
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com >
2022-11-10 19:25:58 +01:00
Kamil Kopryk
002a90c717
Move hwHelper ownership to RootDeviceEnvironment 2/n
...
Related-To: NEO-6853
Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com >
UseRootDeviceEnvironment getHelper<CoreHelper> for:
- getMaxBarrierRegisterPerSlice
- getPaddingForISAAllocation
2022-11-10 16:39:39 +01:00
Warchulski, Jaroslaw
e4d10e5460
Cleanup includes 4
...
Related-To: NEO-5548
Signed-off-by: Warchulski, Jaroslaw <jaroslaw.warchulski@intel.com >
2022-11-10 14:22:18 +01:00
Krystian Chmielewski
f0f545eee7
refactor(ocl tests): program get build info tests
...
Signed-off-by: Krystian Chmielewski <krystian.chmielewski@intel.com >
2022-11-09 13:09:09 +01:00
Kacper Nowak
a12251d464
feat(zebin): code improvements
...
- Set initial value for ArgIndexT index in
KernelArgMiscInfoT struct
- Add check for arg index in extended metadata in order to avoid OOB
accesses
- Fix missing: populating ArgTypeTraits + refactor ULTs in order to
check it
- Add missing ULTs for Program::callPopulateZebinExtendedArgsMetadataOnce
Signed-off-by: Kacper Nowak <kacper.nowak@intel.com >
2022-11-08 14:10:55 +01:00
Mateusz Jablonski
2df001327a
Unify meaning of RebuildPrecompiledKernels across OCL and L0 APIs
...
Resolves: NEO-7364
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2022-10-27 15:17:24 +02:00
Kacper Nowak
2285772c7e
Disable zebin on pre-Gen12 platforms when debugger is active
...
On pre-Gen12 platform we use igfxdcd kernel module for debugging, which
does not support zebinary format.
- When platform is pre-Gen12 an and debugger is
attached, if binary format is zebin and it's not a builtin:
- If SPIR-V is available - force rebuild with zebin disabled
- Otherwise, return an error.
- Minor refactor: extend check for ir presence for each case of
rebuilt in OCL.
Related-To: NEO-7328
Signed-off-by: Kacper Nowak <kacper.nowak@intel.com >
2022-10-13 17:27:48 +02:00
Fabian Zwolinski
7953d15826
Print warning when kernel uses too much SLM
...
Instead of just returning proper error code in case of exceeding
available Shared Local Memory size we also want to print error message
to make debugging easier.
Related-To: NEO-7280
Signed-off-by: Fabian Zwolinski <fabian.zwolinski@intel.com >
2022-10-07 19:06:19 +02:00
Dunajski, Bartosz
ad2d3d0289
Remove not used method
...
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com >
2022-10-05 17:10:51 +02:00
Szymon Morek
a91e41ec41
Remove unused struct
...
Signed-off-by: Szymon Morek <szymon.morek@intel.com >
2022-09-30 14:06:10 +02:00
Dunajski, Bartosz
b2001bf265
L0: GRF mode debug flags support
...
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com >
2022-09-22 15:27:31 +02:00
Krystian Chmielewski
6b3ac9f1e2
refactor ocl patchtokens tests
...
Related-To: NEO-7131
Signed-off-by: Krystian Chmielewski <krystian.chmielewski@intel.com >
2022-09-19 17:46:02 +02:00
Krystian Chmielewski
b7a780868a
Prepare OCL tests for switch to zebin
...
Signed-off-by: Krystian Chmielewski <krystian.chmielewski@intel.com >
2022-09-16 15:33:26 +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
Dominik Dabek
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
Compute-Runtime-Validation
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
Dominik Dabek
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
Dominik Dabek
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
Kacper Nowak
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
Warchulski, Jaroslaw
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
Mateusz Jablonski
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
Mateusz Jablonski
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
Warchulski, Jaroslaw
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
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
Mateusz Jablonski
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
Compute-Runtime-Validation
b3078cfbae
Revert "Change DG2 l1 cache policy to WB"
...
This reverts commit 9a5e619c42 .
Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com >
2022-07-28 07:27:13 +02:00
Dominik Dabek
9a5e619c42
Change DG2 l1 cache policy to WB
...
With compiler LSC WAs this gives better performance.
Related-To: NEO-7003
Signed-off-by: Dominik Dabek <dominik.dabek@intel.com >
2022-07-27 10:20:36 +02:00
Lukasz Jobczyk
4ac6e09117
Do not reuse mem obj's allocation
...
Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com >
2022-07-19 11:42:17 +02:00
Warchulski, Jaroslaw
4147f40970
DisableKernelRecompilation flag and binary kernel recompilation warning
...
Resolves: NEO-6513
Signed-off-by: Warchulski, Jaroslaw <jaroslaw.warchulski@intel.com >
2022-07-14 18:22:49 +02:00
Kamil Kopryk
7c538b956a
Correct typo
...
Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com >
2022-07-14 10:13:12 +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
Szymon Morek
76e023b941
Link build option with L1 cache policy helper
...
Related-To: NEO-7003
Add L1CachePolicyHelper struct.
This struct is resposible for L1 cache policy
in build option, Surface State and stateless
caching. Currently default option for all
platforms is WBP (write by-pass)
Signed-off-by: Szymon Morek <szymon.morek@intel.com >
2022-07-04 11:49:55 +02:00
Szymon Morek
9a26e505a8
Pass LSC policy to IGC in build options
...
Related-To: NEO-7003
Signed-off-by: Szymon Morek <szymon.morek@intel.com >
2022-06-21 11:51:56 +02:00
Kamil Kopryk
d308df254c
Add ail for FAHBench on DG2
...
Add missing synchronization in the FAHBench kernel
which caused hang on DG2.
Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com >
Related-To: NEO-6946
2022-06-21 10:21:51 +02:00
Krzysztof Gibala
c229ace4df
Adjust GmmHelper to be HW aware
...
Related-To: NEO-6523
Signed-off-by: Krzysztof Gibala <krzysztof.gibala@intel.com >
2022-06-13 18:33:06 +02:00
Bartosz Dunajski
5510dc7daa
Add adjustHwInfoForIgc support
...
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com >
2022-06-13 14:31:53 +02:00
John Falkowski
620bb970f4
Resubmit fix for task count hang
...
Signed-off-by: John Falkowski <john.falkowski@intel.com >
2022-06-07 16:28:17 +02:00