Commit Graph

9282 Commits

Author SHA1 Message Date
a9ebb49fb5 Remove device enqueue part 1
Remove:
-tests with matcher for device enqueue
-classes: MockDeviceQueueHw, DeviceQueueHw, SchedulerSimulation,
DeviceQueueHwTest, KernelArgDevQueueTest
-functions: forceDispatchScheduler, processDeviceEnqueue, dispatchScheduler

Related-To: NEO-6559
Signed-off-by: Katarzyna Cencelewska <katarzyna.cencelewska@intel.com>
2022-01-11 15:29:49 +01:00
61e5e0687d Patch all implicit args relocations within every kernel
Related-To: NEO-5081
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2022-01-11 14:34:28 +01:00
0089cb698f OclocInvoke suppress print to stdout if has output
Suppressing output could be achieved with quiet option "-q",
but some information was gone because of it.
Call to oclocInvoke with output parameters passed should not
print message to stdout. All messages should be stored,
and returned to the user via output as stdout.log file.
This commit turns off printing messages to stdout when
output parameters are present.

Signed-off-by: Krystian Chmielewski <krystian.chmielewski@intel.com>
2022-01-11 14:21:23 +01:00
2194b647e9 PVC: Dont override default thread arbitration policy
This reverts commit 5af9dff74d.

Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
2022-01-11 14:16:17 +01:00
967d8a56fe Don't reduce LWS if SIMD32 is being used
Don't divide max kernel work group size by 2
if it's using SIMD 32

Resolves: NEO-6429

Signed-off-by: Szymon Morek <szymon.morek@intel.com>
2022-01-11 14:03:49 +01:00
8729521769 Use dispatchBlitCommandsForBufferRegion when copying buffers in L0
First step to separate dispatch blit commands for buffers
from dispatch blit commands for images.

Signed-off-by: Rafal Maziejuk <rafal.maziejuk@intel.com>
Related-To: NEO-6134
2022-01-11 13:52:56 +01:00
325ae63d05 Sort program headers by virt addr
When encoding ELF binary sort program headers by
virtual addresses incrementally.
This change is needed for compatibility with GDB.

Signed-off-by: Krystian Chmielewski <krystian.chmielewski@intel.com>
2022-01-11 13:23:59 +01:00
34856747b4 Add implementation for reading logical subDevice from builtin
Related-To: NEO-6258
Signed-off-by: Kamil Diedrich <kamil.diedrich@intel.com>
2022-01-11 13:06:15 +01:00
aa6e3bbef5 Revert "dependencies update"
This reverts commit 3ef1ab88a4.

Signed-off-by: Pawel Cieslak <pawel.cieslak@intel.com>
2022-01-11 12:26:40 +01:00
3ef1ab88a4 dependencies update
Signed-off-by: ocldev <ocldev@intel.com>
2022-01-10 22:39:50 +01:00
b249c10e09 Revert "Add ze_eu_count_t to get total number of EUs"
This reverts commit 635c02e1ff.

Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
2022-01-10 20:06:52 +01:00
5e626a15bf Add untyped flush to level zero barrier command
Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
2022-01-10 16:42:30 +01:00
014fd1fb26 Enable BCS by default on supported platforms
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
2022-01-10 15:36:48 +01:00
26a24e8fde Query engine info with distances
If prelim kernel is being used, query distances
and set correctly number of available engines

Signed-off-by: Szymon Morek <szymon.morek@intel.com>
2022-01-10 13:30:26 +01:00
54d377d025 Fix clang-tidy issue
Fix clang-tidy issues about adding override keyword for MockClasses

Signed-off-by: Joshua Santosh Ranjan <joshua.santosh.ranjan@intel.com>
2022-01-10 10:56:25 +01:00
3c1ee0aaa5 Revert "Fix magic value used to skip odd packets for timestamps"
This reverts commit 7968823b3c.

Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
2022-01-07 08:01:12 +01:00
02f075c541 Power Saving Hint Support for Level Zero in Windows
- Added Functionality to pass ze_power_saving_hint_type_t to zeContextCreate
included in the pNext extensions in ze_context_desc_t.
- Enables handling a hint value 0-100 with 0 being no power savings
and 100 being maximum power savings.
- ZE_RESULT_ERROR_INVALID_ENUMERATION is returned given an invalid hint.

Related-To: LOCI-2567

Signed-off-by: Spruit, Neil R <neil.r.spruit@intel.com>
2022-01-06 23:56:59 +01:00
635c02e1ff Add ze_eu_count_t to get total number of EUs
Related-To: LOCI-2667

Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
2022-01-06 17:38:56 +01:00
8ec74558ea Temporarily disabling local memory for DG2 in WSL
Forcing system memory pool for all allocations in WSL for DG2
while local memory support is being implemented

Signed-off-by: Kamil Diedrich <kamil.diedrich@intel.com>
2022-01-06 11:15:25 +01:00
7fc9b2c3dc Implement UUID using pcie bdf
This patch implements the fallback method for Device UUID
using the BDF of the device for all product families.


Related-To: LOCI-2827

Signed-off-by: Joshua Santosh Ranjan <joshua.santosh.ranjan@intel.com>
2022-01-05 23:31:00 +01:00
40ea30be0b Update list of supported extensions
Add compression hint and free policies extensions to the list.

Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
2022-01-05 19:11:08 +01:00
7968823b3c Fix magic value used to skip odd packets for timestamps
Related-To: LOCI-2718

Signed-off-by: Aravind Gopalakrishnan <aravind.gopalakrishnan@intel.com>
22.02.22151
2022-01-05 17:12:56 +01:00
e9dbd86f3d Update lint revision
Related-To: NEO-5855
Signed-off-by: Pawel Cieslak <pawel.cieslak@intel.com>
2022-01-05 14:48:29 +01:00
1d48e97649 Remove GMock from MockAubCsr, GmockAubFileStream, AsyncEventsHandlerTests...
GMock Removed from:
- MockAubCsr
- GmockAubFileStream
- AsyncEventsHandlerTests
- AsyncEventsHandlerTests::MyEvent
- MockGmmPageTableMngr
- GmockWddm

Additionally:
- GmockAubFileStream body moved to MockAubFileStream class
- Deleted unused GmockAubFileStream class
- Deleted NiceMocks from AsyncEventsHandlerTests
- Renamed GmockWddm to MockWddm

Related-To: NEO-4914
Signed-off-by: Fabian Zwolinski <fabian.zwolinski@intel.com>
2022-01-05 14:45:13 +01:00
f8c1fe53db Update infra
Signed-off-by: Pawel Cieslak <pawel.cieslak@intel.com>
2022-01-05 13:53:12 +01:00
7aa9c827d2 Update infra
Signed-off-by: Pawel Cieslak <pawel.cieslak@intel.com>
2022-01-05 11:21:40 +01:00
32ccf30c61 Add support for pci_ext_properties_t
Added API definition in ze_device.cpp, and added function declaration of
getPciProperties() in device.h and device_imp.cpp
Initially returns -1 for all values of ze_pci_speed_ext_t for now, simply
because we do not have function to retrieve the information of the PCI
speed.

Related-To: LOCI-2669
Signed-off-by: Young Jin Yoon <young.jin.yoon@intel.com>
2022-01-05 10:43:54 +01:00
ade43e29a5 Optimize vector usage
Don't reallocate memory.

Signed-off-by: Szymon Morek <szymon.morek@intel.com>
2022-01-04 15:51:32 +01:00
4d5d31d80d sysman: simplify ULT for device reset
device reset is heavily dependant on gmock for ULT
reduce depencency on GMock.

Signed-off-by: Vilvaraj, T J Vivek <t.j.vivek.vilvaraj@intel.com>
2022-01-04 13:26:56 +01:00
388adcca77 Force setting SUPPORT_DEVICE_ENQUEUE
fix problem with cached value

Signed-off-by: Katarzyna Cencelewska <katarzyna.cencelewska@intel.com>
2022-01-04 13:21:16 +01:00
343e68d926 Add STATUS to "Prebuilt kernels are linked to Level Zero" message
This so it is printed with "--" as other messages during cmake config.

Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
2022-01-04 12:28:44 +01:00
6258575e5e Use queryEngineInfo with prelim ioctls
If prelim kernel is being used, query engines
with prelim ioctls.

Signed-off-by: Szymon Morek <szymon.morek@intel.com>
2022-01-04 12:15:04 +01:00
a18c706408 Move neo device caps tests to shared
Signed-off-by: Dominik Dabek <dominik.dabek@intel.com>
2022-01-03 18:05:11 +01:00
7708557b05 infra update
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
2022-01-03 17:59:56 +01:00
534280fad6 Disable device enqueue
on icllp, cfl, kbl, skl

Resolves: NEO-6559
Signed-off-by: Katarzyna Cencelewska <katarzyna.cencelewska@intel.com>
2022-01-03 17:34:30 +01:00
0cbc320e57 Move memory fixtures to shared
Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
2022-01-03 16:47:02 +01:00
997d28f6b2 infra update
Removing legacy linter.

Signed-off-by: Grzegorz Choinski <grzegorz.choinski@intel.com>
2022-01-03 14:33:47 +01:00
7d18b845fa Remove not needed argument from appendExtraInternalOptions function
Signed-off-by: Kopryk, Kamil <kamil.kopryk@intel.com>
2022-01-03 10:35:47 +01:00
06b436f120 Revert "Enable engines round robin assign"
This reverts commit d52b7e599d.

Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
2022-01-03 10:29:44 +01:00
0db4821996 Correct linter tests
Update to 2022 year

Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2022-01-03 09:30:29 +01:00
6c40c712d8 Check workDim when enqueueing kernel
Return CL_INVALID_WORK_DIMENSION when workDim is more than
maxWorkItemDimensions.

Related-To: NEO-6159

Signed-off-by: Dominik Dabek <dominik.dabek@intel.com>
22.01.22131
2021-12-31 15:42:09 +01:00
5774f68d8b Correct rkl unit test
Signed-off-by: Kopryk, Kamil <kamil.kopryk@intel.com>
2021-12-31 14:57:56 +01:00
d52b7e599d Enable engines round robin assign
Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
2021-12-31 11:59:52 +01:00
7ab6d2801a Check if direct submission available once
Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
2021-12-31 11:53:29 +01:00
2047fc88f9 Move execution environment helper to shared
Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
2021-12-31 11:36:44 +01:00
38ad58bce3 Dont print error on IOCTL entry after success
This to reduce verbosity and avoid confusions when reading logs.

Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
2021-12-31 09:49:08 +01:00
24621e8d16 Add test for getMaxParameterSizeFromIGC
Test is using MockCompilerInterface

Related-To: NEO-4851

Signed-off-by: Dominik Dabek <dominik.dabek@intel.com>
2021-12-30 18:17:40 +01:00
5be9d2d584 Add assignRegionsFromDistances logic
If prelim kernel is being used, use distances
logic to assign memory regions.

Signed-off-by: Szymon Morek <szymon.morek@intel.com>
2021-12-30 17:48:16 +01:00
0c2f83579c Do not force programming SCM when hasSharedHandles is true
This is a part of refactor of logic around programming SCM.
SCM should not be programmed just because of hasSharedHandles being true.

Related-To: NEO-5995

Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
2021-12-30 17:12:28 +01:00
5be4d89b73 Rename function
Rename MemorySynchronizationCommands::isDcFlushAllowed
to MemorySynchronizationCommands::getDcFlushEnable

Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
2021-12-30 17:03:22 +01:00