Fabian Zwoliński
5f8e761541
fix: HeapAllocator - ensure getBaseAddress returns initial base address
...
getBaseAddress was incorrectly returning pLeftBound which changes after
memory allocation.
Added baseAddress field to store and return initial address value.
Signed-off-by: Fabian Zwoliński <fabian.zwolinski@intel.com>
2024-12-10 10:52:36 +01:00
Compute-Runtime-Validation
58e45afd39
Revert "fix: HeapAllocator - ensure getBaseAddress returns initial base address"
...
This reverts commit ffec97acc5
.
Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
2024-12-08 14:35:22 +01:00
Fabian Zwoliński
ffec97acc5
fix: HeapAllocator - ensure getBaseAddress returns initial base address
...
getBaseAddress was incorrectly returning pLeftBound which changes after
memory allocation.
Added baseAddress field to store and return initial address value.
Signed-off-by: Fabian Zwoliński <fabian.zwolinski@intel.com>
2024-12-05 20:42:16 +01:00
Fabian Zwoliński
d2ce3badfc
fix: bindlessHeapsHelper handle unavailable external heap
...
This PR handles the situation in which a component
has reserved a front window space for itself in the external heap,
so that the Compute Runtime cannot access this area.
In such a situation, we perform the following steps:
1. reserve 4GB chunk in heapStandard
2. split our chunk into 2 parts: heapFrontWindow, heapRegular
3. from this point on, map all linearStream allocations in reserved 4GB
chunk
Patch applies to Windows and WSL.
Patch only applies when the bindless global allocator is enabled.
Related-To: HSD-16025889919
Signed-off-by: Fabian Zwoliński <fabian.zwolinski@intel.com>
2024-12-05 14:18:01 +01:00
Mrozek, Michal
2febf0597e
fix: remove incorrect code
...
- freed pointer cannot overlap with freed chunks, therefore there is no way
to merge it with freed chunks if they overlap
Signed-off-by: Mrozek, Michal <michal.mrozek@intel.com>
2024-11-05 18:58:41 +01:00
Lukasz Jobczyk
fe82425fa9
performance: Prefer to assign new gpu va rather than reuse
...
Resolves: NEO-10734
Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
2024-11-05 10:16:03 +01:00
Compute-Runtime-Validation
aca7875dfd
Revert "performance: Prefer to assign new gpu va rather than reuse"
...
This reverts commit 0f2f3c3764
.
Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
2024-10-31 05:06:43 +01:00
Lukasz Jobczyk
0f2f3c3764
performance: Prefer to assign new gpu va rather than reuse
...
Resolves: NEO-10734
Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
2024-10-30 16:48:49 +01:00
Filip Hazubski
22a382b7a2
test: Minor test fixes related to alignment
...
Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
2024-08-08 08:26:12 +02:00
Maciej Plewka
964f0166d7
fix: Reuse freed chunk from left even if not aligned
...
Related-To: NEO-10416, NEO-10418, NEO-10437
Signed-off-by: Maciej Plewka <maciej.plewka@intel.com>
2024-02-21 12:31:54 +01:00
Maciej Plewka
233f898b59
fix: split freed chunk from right
...
Signed-off-by: Maciej Plewka <maciej.plewka@intel.com>
Related-To: NEO-10280
2024-02-13 16:14:39 +01:00
Maciej Plewka
620ad5fa89
fix: change freed chunk size when ptr is aligned
...
Signed-off-by: Maciej Plewka <maciej.plewka@intel.com>
Related-To: NEO-9945
2024-01-30 12:22:28 +01:00
Mateusz Jablonski
43b790957d
style: format code using clang-format 15.0.6
...
Related-To: NEO-7500
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2023-01-05 10:33:47 +01:00
Warchulski, Jaroslaw
803bbb89d2
Cleanup includes 13
...
Cleaned up files:
shared/source/helpers/blit_commands_helper.h
shared/source/helpers/heap_assigner.h
shared/source/memory_manager/alignment_selector.h
shared/source/memory_manager/gfx_partition.h
shared/source/memory_manager/memory_manager.h
shared/source/os_interface/os_memory.h
shared/source/utilities/heap_allocator.h
Related-To: NEO-5548
Signed-off-by: Warchulski, Jaroslaw <jaroslaw.warchulski@intel.com>
2022-12-16 12:36:27 +01:00
Aravind Gopalakrishnan
3b4695460a
Fix misaligned pointer returned in heap allocator
...
Signed-off-by: Aravind Gopalakrishnan <aravind.gopalakrishnan@intel.com>
2022-11-03 00:23:24 +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
Young Jin Yoon
a1036ecc75
Fix alignment to be based on starting address
...
Related-To: LOCI-2342
Signed-off-by: Young Jin Yoon <young.jin.yoon@intel.com>
2021-06-17 19:08:08 +02:00
Milczarek, Slawomir
165194bf85
Add merge condition for freed chunks in heap allocator
...
Signed-off-by: Milczarek, Slawomir <slawomir.milczarek@intel.com>
2021-05-27 16:26:54 +02:00
Maciej Dziuban
33e8f73775
Enable custom allocation alignments on Linux
...
Related-To: NEO-5750
Signed-off-by: Maciej Dziuban <maciej.dziuban@intel.com>
2021-05-24 12:56:51 +02:00
lgotszal
3bd4bca911
Copyright header update
...
Dates corrected in copyright headers to reflect original publication date
(2018 for OpenCL, 2020 for Level Zero).
Signed-off-by: lgotszal <lukasz.gotszald@intel.com>
2021-05-17 20:38:19 +02:00
Maciej Dziuban
32025efafb
Enhance HeapAllocator with custom alignments
...
Related-To: NEO-5750
Signed-off-by: Maciej Dziuban <maciej.dziuban@intel.com>
2021-05-07 21:43:11 +02:00
Slawomir Milczarek
2a1069eda2
Configure 2MB alignment for allocations on standard heap 64k
...
Signed-off-by: Slawomir Milczarek <slawomir.milczarek@intel.com>
2021-01-22 11:56:33 +01:00
Adam Cetnerowski
da3088e399
ULT renaming: Heap Allocator tests
...
Related-To: NEO-2236
Change-Id: Ie2485cb6ca48b9244af63de455baaea68a8b0e37
Signed-off-by: Adam Cetnerowski <adam.cetnerowski@intel.com>
2020-08-04 15:35:30 +02:00
Mateusz Jablonski
441ff1fcdf
Don't use the entire std namespace
...
Change-Id: I2014117a154fb2c1a61af5c31baa228b4fb3dbc2
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2020-03-27 19:57:11 +01:00
Mateusz Jablonski
9dbeeea18f
Clang-format: restore sorting includes
...
Change-Id: I34eb993b562c77f56d8fbd51a02ee266c1f76678
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2020-02-24 10:22:30 +01:00
kamdiedrich
9e97b42ee6
Reorganization directory structure [4/n]
...
Change-Id: Ib868ed62d12ea8f9f123644219ba299e86a658ac
2020-02-24 01:04:42 +01:00