Commit Graph

360 Commits

Author SHA1 Message Date
Fabian Zwoliński
4078022318 fix: configure ISA Pool params based on productHelper
When is2MBLocalMemAlignmentEnabled returns true,
increase pool size for builtins from 64k to 2MB.

Additionally, set appropriate alignment for kernel ISA heap allocations.
Additionally, configure isaAllocationPageSize based on productHelper.

Related-To: NEO-12287
Signed-off-by: Fabian Zwoliński <fabian.zwolinski@intel.com>
2025-11-20 18:08:14 +01:00
Jaroslaw Warchulski
f50ca4432d refactor: cleanup includes
Signed-off-by: Jaroslaw Warchulski <jaroslaw.warchulski@intel.com>
2025-11-20 08:24:13 +01:00
Francois Dugast
703309acda fix: allow execution of clinfo on ARM64
While this code builds on ARM64, it cannot execute properly because
__rdtsc() is only available on x86. clinfo returns no platform which
gives the incorrect impression that KMD or UMD is not available. A
better fix is still needed but at least clinfo runs.

Signed-off-by: Francois Dugast <francois.dugast@intel.com>
2025-11-19 15:17:30 +01:00
Mateusz Jablonski
7660b29bbb fix: reduce types for tagSize and tagCount within TagAllocator
Related-To: NEO-16444

Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2025-11-17 10:47:51 +01:00
Narendra Bagria
59cae1b803 fix: improve LogAllocationStdout to print CPU VA
Related-To: NEO-16500

Signed-off-by: Narendra Bagria <narendra.bagria@intel.com>
2025-11-13 15:44:31 +01:00
Fabian Zwoliński
3c43276dab feature: add global/const surface nonUSM allocation pooling
Related-To: NEO-12287
Signed-off-by: Fabian Zwoliński <fabian.zwolinski@intel.com>
2025-10-29 16:56:59 +01:00
Fabian Zwoliński
5bad32c676 fix: move onChunkFreeCallback in AbstractBuffersPool constructors
Signed-off-by: Fabian Zwoliński <fabian.zwolinski@intel.com>
2025-10-29 16:37:20 +01:00
Fabian Zwoliński
c0abff9cf2 refactor: introduce generic pool allocator using traits pattern
Related-To: NEO-12287
Signed-off-by: Fabian Zwoliński <fabian.zwolinski@intel.com>
2025-10-28 13:21:03 +01:00
Compute-Runtime-Validation
681eac2f13 Revert "performance: increase cl buffer pool size"
This reverts commit 6e67271454.

Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
2025-10-20 13:55:23 +02:00
Fabian Zwoliński
6102280f71 fix: add missing writeMemory for pooled global surface
Related-To: HSD-18043489182, HSD-18043476772
Signed-off-by: Fabian Zwoliński <fabian.zwolinski@intel.com>
2025-10-17 14:26:54 +02:00
Szymon Morek
6e67271454 performance: increase cl buffer pool size
Related-To: NEO-16452

Signed-off-by: Szymon Morek <szymon.morek@intel.com>
2025-10-17 12:09:23 +02:00
Chandio, Bibrak Qamar
49020f234d feature: Support for pStart
Related-To: NEO-15156, GSD-9939

Support for start address hint on zeVirtualMemReserve.
If it fails to find pStart then it defaults to the base line
allocateWithCustomAlignment(...)

Signed-off-by: Chandio, Bibrak Qamar <bibrak.qamar.chandio@intel.com>
2025-10-16 00:22:00 +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
Radoslaw Jablonski
54de14a9dc refactor: apply clang-format's InsertBraces rule
Formats code before InsertBraces rule is enabled.

Signed-off-by: Radoslaw Jablonski <radoslaw.jablonski@intel.com>
2025-10-06 15:32:46 +02:00
Kamil Kopryk
f17ac35108 refactor: improve compilation time
Limit bitset includes,
stl bitset is slow to compile

Related-To: NEO-15390

Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com>
2025-10-03 21:21:25 +02:00
Maciej Bielski
a440a3e8ea refactor: use Clonable type for pImplicitArgs
Clonable is a helper type which eases proper management of
dynamically-allocated resources. It allows to reduce the amount of
manual handling.

Related-To: NEO-16017
Signed-off-by: Maciej Bielski <maciej.bielski@intel.com>
2025-09-29 15:34:24 +02:00
Kamil Kopryk
5f59b4ca08 feature: add host function allocation
Related-To: NEO-14577
Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com>
2025-09-23 11:10:45 +02:00
Compute-Runtime-Validation
16a6c3ca8a Revert "feature: add host function allocation"
This reverts commit 75b4de70cd.

Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
2025-09-23 02:33:15 +02:00
Kamil Kopryk
75b4de70cd feature: add host function allocation
Related-To: NEO-14577
Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com>
2025-09-22 17:55:36 +02:00
Szymon Morek
5714c3858f fix: increase staging threshold for misaligned ptrs
Related-To: NEO-16118

Signed-off-by: Szymon Morek <szymon.morek@intel.com>
2025-09-22 12:46:58 +02:00
Jaroslaw Warchulski
195bf66a49 refactor: fix typos
Signed-off-by: Jaroslaw Warchulski <jaroslaw.warchulski@intel.com>
2025-09-22 12:46:41 +02:00
Szymon Morek
701bcdaeab performance: reorder checks for staging buffer
Related-To: NEO-16052

defer registerHostPtr call to the last check.

Signed-off-by: Szymon Morek <szymon.morek@intel.com>
2025-09-08 16:48:05 +02:00
Szymon Morek
03357b6089 performance: adjust size threshold for staging on linux
Related-To: NEO-15973

Signed-off-by: Szymon Morek <szymon.morek@intel.com>
2025-09-05 18:09:49 +02:00
Michal Mrozek
6ef0af7e22 refactor: remove redundant code
Signed-off-by: Michal Mrozek <michal.mrozek@intel.com>
2025-08-25 16:14:42 +02:00
Fabian Zwoliński
a2f60af5c6 fix: change global Var/Const Buffer type to SharedPoolAllocation
This is prep work for the future implementation of pooling these allocations.

Related-To: NEO-12287
Signed-off-by: Fabian Zwoliński <fabian.zwolinski@intel.com>
2025-08-19 17:29:34 +02:00
Jakub Nowacki
259271f59d fix: disallow copy and move
Related-To: NEO-15630

Signed-off-by: Jakub Nowacki <jakub.nowacki@intel.com>
2025-08-14 12:19:18 +02:00
Chandio, Bibrak Qamar
6acfcb83b9 Revert "Two commits related to pStart feature"
Related-To: NEO-15156, GSD-9939

Revert "test: fix minor errors"

This reverts commit 712dc8221e.

Revert "feature: Support for pStart"

This reverts commit 47caeda487.

Signed-off-by: Chandio, Bibrak Qamar <bibrak.qamar.chandio@intel.com>
2025-08-13 07:10:40 +02:00
Naklicki, Mateusz
c36f6cadb0 feature: dump graph visualisation
Related-To: NEO-15377
Signed-off-by: Naklicki, Mateusz <mateusz.naklicki@intel.com>
2025-08-11 19:24:36 +02:00
Michal Mrozek
9c3904583b performance: improve container lookup
- check if incoming pointer is page aligned, if so do non offset based lookup
- make allowOffset compile time parameter
- in case non offset based lookup fails, re-try with offset allowed

Signed-off-by: Michal Mrozek <michal.mrozek@intel.com>
2025-08-09 10:01:38 +02:00
Aleksander Czerwionka
6bc9ea3ddb feature: move svmAllocsManager and staggingBufferManager to platform
Related-To: NEO-13247

Signed-off-by: Aleksander Czerwionka <aleksander.czerwionka@intel.com>
2025-08-08 14:01:44 +02:00
Compute-Runtime-Validation
917032f2ac Revert "feature: dump graph visualisation"
This reverts commit 86d270633c.

Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
2025-08-07 10:12:20 +02:00
Naklicki, Mateusz
86d270633c feature: dump graph visualisation
Related-To: NEO-15377
Signed-off-by: Naklicki, Mateusz <mateusz.naklicki@intel.com>
2025-08-06 17:14:50 +02:00
Chandio, Bibrak Qamar
47caeda487 feature: Support for pStart
Related-To: NEO-15156, GSD-9939

Support for start address hint in zeVirtualMemReserve.

If it fails to find pStart then it defaults to the base line
allocateWithCustomAlignment(...)

Signed-off-by: Chandio, Bibrak Qamar <bibrak.qamar.chandio@intel.com>
2025-08-06 12:40:29 +02:00
Compute-Runtime-Validation
c9456cda14 Revert "feature: Support for pStart"
This reverts commit a50c0dbecf.

Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
2025-08-06 02:26:13 +02:00
Chandio, Bibrak Qamar
a50c0dbecf feature: Support for pStart
Related-To: NEO-15156, GSD-9939

Support for start address hint in zeVirtualMemReserve.

If it fails to find pStart then it defaults to the base line
allocateWithCustomAlignment(...)

Signed-off-by: Chandio, Bibrak Qamar <bibrak.qamar.chandio@intel.com>
2025-08-05 10:14:01 +02:00
Chodor, Jaroslaw
2d63adca99 refactor: Explicit move ctor/asign and dtor for Ext and Clonable
Signed-off-by: Chodor, Jaroslaw <jaroslaw.chodor@intel.com>
2025-07-29 15:25:58 +02:00
Chodor, Jaroslaw
ad78ea7da4 refactor: Common ext pattern in KernelExecutionEnv
Signed-off-by: Chodor, Jaroslaw <jaroslaw.chodor@intel.com>
2025-07-29 04:57:23 +02:00
Chodor, Jaroslaw
0c7ca82b93 refactor: Introducing common ext pattern
Signed-off-by: Chodor, Jaroslaw <jaroslaw.chodor@intel.com>
2025-07-28 18:01:22 +02:00
Fabian Zwoliński
74d12b7f27 fix: enable TimestampPoolAllocator on hw mode
Related-To: NEO-12287
Signed-off-by: Fabian Zwoliński <fabian.zwolinski@intel.com>
2025-07-28 14:58:11 +02:00
Chodor, Jaroslaw
e396b7e5b8 feature: Adding clonable/ext utilities
Related-To: NEO-14899

Signed-off-by: Chodor, Jaroslaw <jaroslaw.chodor@intel.com>
2025-07-28 11:17:14 +02:00
Chodor, Jaroslaw
7e8cbf749b refactor: Don't force presence of copy assign for stacvec::resize
Signed-off-by: Chodor, Jaroslaw <jaroslaw.chodor@intel.com>
2025-07-24 19:19:01 +02:00
Chodor, Jaroslaw
fcc2038def refactor: modernizing NEO::Range->std::span
Signed-off-by: Chodor, Jaroslaw <jaroslaw.chodor@intel.com>
2025-07-17 01:27:11 +02:00
Jaroslaw Warchulski
2375ff89bb refactor: cleanup headers
Related-To: NEO-5548
Signed-off-by: Jaroslaw Warchulski <jaroslaw.warchulski@intel.com>
2025-06-23 11:23:49 +02:00
Aravind Gopalakrishnan
8e45fb880f fix: Add check if packet count is exceeded
Related-To: NEO-13003

Signed-off-by: Aravind Gopalakrishnan <aravind.gopalakrishnan@intel.com>
2025-06-16 20:24:29 +02:00
Compute-Runtime-Validation
4e0c765d72 Revert "performance: reorder checks for staging buffer"
This reverts commit e030086cf2.

Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
2025-06-10 23:35:58 +02:00
Szymon Morek
6a7f6f1ad6 fix: add noexcept to move operators
Without it, copy operator is selected, even if move is explicitly defined.

Signed-off-by: Szymon Morek <szymon.morek@intel.com>
2025-06-09 10:32:23 +02:00
Szymon Morek
e030086cf2 performance: reorder checks for staging buffer
defer registerHostPtr call to the last check.

Signed-off-by: Szymon Morek <szymon.morek@intel.com>
2025-06-09 10:18:35 +02:00
Fabian Zwoliński
e2228201ce fix: Avoid redundant padding in ISA allocations
- Add isaPaddingIncluded flag to AllocationProperties to control ISA
padding
- Modify MemoryManager to skip automatic padding when flag is set
- Update ISAPoolAllocator to manage padding explicitly and set the
flag
- Use actual buffer size for HeapAllocator instead of requested size
- Add test covering different padding scenarios

This prevents double padding addition which was wasting memory when
ISAPoolAllocator managed its own padding on top of MemoryManager's
automatic padding.

Related-To: NEO-12287, HSD-18042276431
Signed-off-by: Fabian Zwoliński <fabian.zwolinski@intel.com>
2025-05-30 15:40:38 +02:00
Lukasz Jobczyk
0e3397547c fix: Adjust waitpkg counter for non ulls light
Resolves: NEO-14866, HSD-18042153820

Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
2025-05-23 15:58:21 +02:00
Szymon Morek
a2c41e4749 fix: add mock for staging buffer size
No need to allocate 2MB in unit tests.
This commit changes this size to 4KB.

Signed-off-by: Szymon Morek <szymon.morek@intel.com>
2025-05-22 08:36:01 +02:00