Commit Graph

8782 Commits

Author SHA1 Message Date
Fabian Zwoliński
0cf5b36b26 fix: zero-initialize chunks from pool in allocateGlobalsSurface
When reusing memory chunks from the usm allocation pool,
they may contain stale data from previous executions.

This commit ensures that pooled allocations are
properly zero-initialized before use by:
- Transferring init data using transferMemoryToAllocation (unchanged)
- Zero-initializing the BSS section via memsetAllocation when present
- Zero-initializing entire totalSize for BSS-only allocations

This prevents stale data from affecting program execution when
chunks are reused from the pool.

HSD-13013893112, HSD-18043476772,
HSD-18043481899, HSD-18043487849,
HSD-18043489182

Related-To: NEO-12287
Signed-off-by: Fabian Zwoliński <fabian.zwolinski@intel.com>
2025-10-14 16:37:51 +02:00
Szymon Morek
bb0f62896f refactor: remove unused code
Signed-off-by: Szymon Morek <szymon.morek@intel.com>
2025-10-14 16:15:13 +02:00
Mateusz Jablonski
3cca790a8f test: simplify drm memory manager mt tests
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2025-10-14 14:23:00 +02:00
Kamil Kopryk
fa1645eab8 test: remove builtins sources from shared mt tests
Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com>
2025-10-14 12:24:15 +02:00
Szymon Morek
5570635226 performance: enable USM pooling on L0/LNL
Related-To: NEO-16382

Signed-off-by: Szymon Morek <szymon.morek@intel.com>
2025-10-14 10:41:48 +02:00
Lukasz Jobczyk
a45a4ab44e refactor: Remove osContextId member from residency controller
Related-To: NEO-13315

Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
2025-10-14 10:38:54 +02:00
Kamil Kopryk
acb8109c10 fix: add shared mt ults runner
Related-To: NEO-14577

Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com>
2025-10-14 10:38:37 +02:00
Mateusz Jablonski
dd84a8483e performance: use std::move instead of copy in linker.cpp
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2025-10-14 07:54:32 +02:00
Jemale Lockett
765af92aca refactor: Add type conversion handling methods for EuDebugInterface
Resolves: NEO-16068

Signed-off-by: Jemale Lockett <jemale.lockett@intel.com>
2025-10-13 23:56:33 +02:00
Szymon Morek
f90f73e3e4 fix: don't create threads during process shutdown
Signed-off-by: Szymon Morek <szymon.morek@intel.com>
2025-10-13 18:09:41 +02:00
Lukasz Jobczyk
ce1c5d747b fix: fix data race issue
Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
2025-10-13 14:11:28 +02:00
Szymon Morek
444d9f8036 fix: remove not needed declaration
Signed-off-by: Szymon Morek <szymon.morek@intel.com>
2025-10-13 13:29:38 +02:00
Chodor, Jaroslaw
6a280a4790 feature: use llvm bc for ir-level linking as alternative to spirv
This forces clCompile outputs (clLink inputs) to use llvm bc format
unless underlying compiler's preferred IR is spirV.

Related-To: NEO-16362

Signed-off-by: Chodor, Jaroslaw <jaroslaw.chodor@intel.com>
2025-10-13 12:32:57 +02:00
ocldev
c695de8eee feature: brand string update
Related-To: NEO-7929

Updating device brand strings
Based on public support in Windows driver 32.0.101.8136
https://www.intel.com/content/www/us/en/download/785597/

Signed-off-by: ocldev <ocldev@intel.com>
2025-10-13 10:40:48 +02:00
Szymon Morek
435c43d142 performance: Use 2MB heap for cl_buffers if possible
Related-To: NEO-16165

Signed-off-by: Szymon Morek <szymon.morek@intel.com>
2025-10-13 09:14:40 +02:00
Lukasz Jobczyk
6515e422e9 refactor: move eviction container to residency controller
Related-To: NEO-13315

Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
2025-10-13 08:41:34 +02:00
Bartosz Dunajski
8c9bff4f4e refactor: new logic to limit per queue split size
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
2025-10-13 08:12:51 +02:00
Kamil Kopryk
487b47e78b test: add multi thread target for shared ults
Move existing shared tests, from ocl mt tests target
to new mt shared test target

Related-To: NEO-14577
Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com>
2025-10-13 07:02:38 +02:00
Compute-Runtime-Validation
52dd849c5a Revert "performance: enable USM pooling on L0/LNL"
This reverts commit 249443dcd8.

Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
2025-10-11 11:14:36 +02:00
Compute-Runtime-Validation
244dd9b0b4 Revert "fix: use condition variables instead of busy waits in worker threads"
This reverts commit db0b4a616c.

Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
2025-10-11 03:52:05 +02:00
Neil R. Spruit
3ddd86f7e5 feature: Implement support for getStaticRegisterSetDescriptor
Related-To: NEO-13738

Signed-off-by: Neil R. Spruit <neil.r.spruit@intel.com>
2025-10-10 22:48:22 +02:00
Dominik Dabek
00ec4c82b2 fix: blocking usm reuse cleanup
Use blocking free policy when cleaning up usm reuse

Also clean usm reuse first when destroying platform,
since there is no point in reusing on closing application.

Related-To: HSD-18043613805, HSD-13013909538

Signed-off-by: Dominik Dabek <dominik.dabek@intel.com>
2025-10-10 22:32:08 +02:00
Compute-Runtime-Validation
2eb8928ec5 Revert "performance: increase heap size to 4MB"
This reverts commit f41bb3517a.

Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
2025-10-10 22:23:23 +02:00
Igor Venevtsev
db0b4a616c fix: use condition variables instead of busy waits in worker threads
Resolves: NEO-16085, GSD-11678, HSD-14025819208

Signed-off-by: Igor Venevtsev <igor.venevtsev@intel.com>
2025-10-10 21:42:02 +02:00
Mateusz Jablonski
d53ac208fc refactor: remove not needed code
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2025-10-10 19:31:00 +02:00
Mateusz Jablonski
1460ae5202 test: improve capturing logs in tests timeout scenario
perform OnTestIterationEnd callback of xml generator prior to abort

Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2025-10-10 19:13:31 +02:00
Chodor, Jaroslaw
9c3d9d803f feature: Support for OCL C in L0 runtime
Prototype support for OCL C in L0 runtime
Can be used with zeModuleCreate and ze_module_format_t=3

Related-To: GSD-11827

Signed-off-by: Chodor, Jaroslaw <jaroslaw.chodor@intel.com>
2025-10-10 19:06:32 +02:00
Aleksandra Nizio
4a9b918a85 fix: select target device compatible binary from fatbinary
removes recompilation from IR step when fatbinary contains compatible
devices binaries

Resolves: NEO-14300,GSD-10568
Signed-off-by: Aleksandra Nizio <aleksandra.nizio@intel.com>
2025-10-10 18:00:39 +02:00
shubham kumar
7a97b98cfe feature: Map PMT interface correctly on multi GPU system
Related-To: NEO-15912

Signed-off-by: shubham kumar <shubham.kumar@intel.com>
2025-10-10 17:20:17 +02:00
Fabian Zwoliński
226846323f feature: add memsetAllocation helper with blitter support
Related-To: NEO-12287
Signed-off-by: Fabian Zwoliński <fabian.zwolinski@intel.com>
2025-10-10 15:12:17 +02:00
Mateusz Jablonski
1918c5e9da refactor: add helper to create uint64 bitmask
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2025-10-10 12:54:50 +02:00
Jack Myers
f06bb256c7 refactor: sba type helper
Signed-off-by: Jack Myers <jack.myers@intel.com>
2025-10-10 11:36:36 +02:00
Szymon Morek
249443dcd8 performance: enable USM pooling on L0/LNL
Related-To: NEO-16382

Signed-off-by: Szymon Morek <szymon.morek@intel.com>
2025-10-10 11:25:36 +02:00
Brandon Yates
7b27c3668e fix: calculate subSlicesPerSlice correctly on XeKmd
Populate SliceInfo during topology creation.
Set L0 device props subslicesPerSlice to max
enabled subslice on any slice.

Related-to: NEO-16283

Signed-off-by: Brandon Yates <brandon.yates@intel.com>
2025-10-10 10:44:23 +02:00
Bartosz Dunajski
0597f064e5 refactor: bcs split class structure
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
2025-10-09 14:19:51 +02:00
Naklicki, Mateusz
434d91af86 refactor: remove std::string usage from built_ins_registry
Related-To: NEO-15390
Signed-off-by: Naklicki, Mateusz <mateusz.naklicki@intel.com>
2025-10-09 13:17:10 +02:00
Szymon Morek
f41bb3517a performance: increase heap size to 4MB
Related-To: NEO-16348

Signed-off-by: Szymon Morek <szymon.morek@intel.com>
2025-10-09 13:03:53 +02:00
Lukasz Jobczyk
d4132cf8b0 refactor: Add assert for ContainerReadLockTypeRAIIHelper
Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
2025-10-09 10:52:07 +02:00
Mateusz Jablonski
b807b43b35 refactor: remove not needed code
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2025-10-09 10:51:44 +02:00
Compute-Runtime-Validation
f31c3fdd03 Revert "fix: select target device compatible binary from fatbinary"
This reverts commit 97a206ed33.

Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
2025-10-09 03:09:25 +02:00
Mateusz Jablonski
298fcb868b fix: Set init zero flag for preemption buffer
Related-To: HSD-16028003349
Signed-off-by: Maciej Plewka <maciej.plewka@intel.com>
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2025-10-08 15:57:56 +02:00
Lukasz Jobczyk
6d6715bebf performance: Lock svm allocs mutex once in appendLaunchKernelWithArgs
Resolves: NEO-15774

Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
2025-10-08 13:35:52 +02:00
Neil R. Spruit
66a0f0d1bb fix: Corrected flag union reserve size and simplified sharedNT flag
Related-To: NEO-16317

Signed-off-by: Neil R. Spruit <neil.r.spruit@intel.com>
2025-10-08 13:35:21 +02:00
Compute-Runtime-Validation
5b11cb7c0d Revert "feature: fail stateful kernel when stateless is required"
This reverts commit bb742a88a4.

Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
2025-10-08 12:21:28 +02:00
Aleksandra Nizio
97a206ed33 fix: select target device compatible binary from fatbinary
removes recompilation from IR step when fatbinary contains compatible
devices binaries

Resolves: NEO-14300,GSD-10568
Signed-off-by: Aleksandra Nizio <aleksandra.nizio@intel.com>
2025-10-08 12:09:49 +02:00
Mateusz Jablonski
2b686a588e refactor: remove not needed code
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2025-10-08 11:48:03 +02:00
Dominik Dabek
9d8bad9f49 fix: call_once for starting usm reuse thread
CID 162223

avoid possible deadlock on svmAllocationCachesMutex

Related-To: HSD-16028754950

Signed-off-by: Dominik Dabek <dominik.dabek@intel.com>
2025-10-07 20:07:21 +02:00
Naklicki, Mateusz
0c619299d0 refactor: cleanup header includes in level_zero
Related-To: NEO-15383
Signed-off-by: Naklicki, Mateusz <mateusz.naklicki@intel.com>
2025-10-07 19:58:31 +02:00
Zbigniew Zdanowicz
42d2c32795 fix: disable state compute mode thread arbitration on xe3 platforms
Related-To: NEO-16330

Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
2025-10-07 15:48:42 +02:00
Mateusz Jablonski
f3e4ba9ff6 refactor: remove not needed code
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2025-10-07 13:44:30 +02:00