Mateusz Jablonski
2b25cbaa41
test: remove not needed printf
...
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2024-01-15 19:20:45 +01:00
Dominik Dabek
997bdfa010
performance: add windows thread priority debug key
...
Set windows thread priority to "above normal" on wddm init if flag is
set.
Related-To: NEO-8215
Signed-off-by: Dominik Dabek <dominik.dabek@intel.com >
2024-01-15 08:14:46 +01:00
Kamil Kopryk
5432b57fd0
refactor: improve readability
...
Added a time unit to the variable name to make it clear.
Removed incorrect and not needed check.
Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com >
2024-01-05 14:53:52 +01:00
Mateusz Jablonski
f1841527a9
test: lower priority of alarm thread in Windows ULT
...
notify alarm thread readiness by setting atomic bool
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2023-12-07 11:14:11 +01:00
Compute-Runtime-Validation
253035878a
Revert "test: lower priority of alarm thread in Windows ULT"
...
This reverts commit 95eb723ca5 .
Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com >
2023-12-07 05:13:42 +01:00
Dominik Dabek
6cf6a8def8
performance: add power throttling debug key
...
Set windows process power throttling hint to HIGH on wddm init
Related-To: NEO-8215
Signed-off-by: Dominik Dabek <dominik.dabek@intel.com >
2023-12-04 15:03:33 +01:00
Mateusz Jablonski
95eb723ca5
test: lower priority of alarm thread in Windows ULT
...
notify alarm thread readiness by setting atomic bool
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2023-12-04 14:25:35 +01:00
Mateusz Jablonski
039c993219
test: improve alarm handler on Windows
...
- check elapsed time in a loop
- log more details
- disable abort request during global cleanup
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2023-12-01 16:01:56 +01:00
Mateusz Jablonski
8e3caef814
test: add support for alarm in Windows ULT
...
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2023-11-27 14:24:45 +01:00
Zbigniew Zdanowicz
e0ce08bb77
fix: detect gpu hang or page fault at direct submission flush to gpu
...
Related-To: NEO-8395
Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com >
2023-11-06 14:22:02 +01:00
Zbigniew Zdanowicz
db10e85526
refactor: add new diagnostic mode for device state
...
Related-To: NEO-8395
Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com >
2023-10-31 16:02:53 +01:00
Mateusz Jablonski
e301418423
fix: correct issues with clang tidy
...
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2023-10-31 12:23:42 +01:00
Mateusz Jablonski
036d1e4814
refactor: correct variable naming
...
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2023-10-30 12:48:51 +01:00
Jablonski, Mateusz
ac5f64f5c6
fix: fix compilation error in clang on Windows (2/n)
...
Signed-off-by: Jablonski, Mateusz <mateusz.jablonski@intel.com >
2023-10-24 15:59:06 +02:00
Spruit, Neil R
456f07212d
fix: Return pageSize/Heap for reservation based on the size and devices
...
Related-To: NEO-9127,NEO-9142
- Change the heap/pageSize used based on the size of the reservation
required and the device heaps available.
- Return the page size required based on the size requested by the user
for virtual reservation and the devices on the system.
- Check the size passed in by the user in memory map and physical memory
allocation is valid for the heap and page size that is required.
Signed-off-by: Spruit, Neil R <neil.r.spruit@intel.com >
2023-10-19 10:44:13 +02:00
Fabian Zwolinski
7c80f49176
fix: refactor Windows cl_cache and add extra safety layers
...
What's changed:
- Add early return when open existing config
fails due to different error than `ERROR_FILE_NOT_FOUND`
- Swich `ReadFileEx` to `ReadFile`
- Add `SetFilePointer` to make sure we're reading
from the beginning of the file
- Pass `overlapped` to `WriteFile` to make sure
we're writing from the beginning of the file
Related-To: NEO-8092
Signed-off-by: Fabian Zwolinski <fabian.zwolinski@intel.com >
2023-10-02 19:04:14 +02:00
Fabian Zwolinski
f931c25307
fix: add missing file handle close
...
Related-To: NEO-8092
Signed-off-by: Fabian Zwolinski <fabian.zwolinski@intel.com >
2023-09-21 16:50:16 +02:00
Fabian Zwolinski
e96dd344c3
feature: add new environment variables for compiler cache on Windows
...
Changes:
- replaced registry keys with environment variables
for cl_cache in OCL
- added compiler cache helpers
- implemented support for new env vars on Windows
- added tests
New env vars mechanism works as follows:
If `PERSISTENT_CACHE` is set,
driver checks if `NEO_CACHE_DIR` is set.
If `NEO_CACHE_DIR` is not set,
driver uses `%LocalAppData%\NEO\neo_compiler_cache`
as `cl_cache` destination folder.
If `NEO_CACHE_DIR` is not set and `%LocalAppData%`
path could not be obtained,
compiler cache is disabled.
In the current Windows implementation,
special characters in the folder path are not supported.
Related-To: NEO-8092
Signed-off-by: Fabian Zwolinski <fabian.zwolinski@intel.com >
2023-09-21 12:40:48 +02:00
Mateusz Hoppe
371412a826
refactor: remove useLocalMem from allocate32BitGraphicsMemoryImpl
...
- this method allocates System Memory
- argument is not needed - ExternalHeap is selected inside this function
- remove unneeded ults
- allocate memory in Device Pool for external heap allocation in
OsAgnosticMemoryManager
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com >
2023-09-18 10:08:09 +02:00
Fabian Zwolinski
10675134e1
feature: Add process safety to Windows compiler cache
...
Related-To: NEO-8092
Signed-off-by: Fabian Zwolinski <fabian.zwolinski@intel.com >
Co-authored-by: Diedrich, Kamil <kamil.diedrich@intel.com >
2023-09-06 15:34:15 +02:00
Mateusz Hoppe
9e89704624
feature: debug flag to disable DriverStore path enforcement
...
Resolves: NEO-8320
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com >
2023-08-31 08:20:53 +02:00
Cencelewska, Katarzyna
bd8625c96a
fix: wa override pat index for uncached types on xe_lpg
...
always force pat index 2(UC) when uncached type
Related-To: NEO-7565
Signed-off-by: Cencelewska, Katarzyna <katarzyna.cencelewska@intel.com >
2023-08-30 08:37:31 +02:00
Mateusz Jablonski
e429afec1e
refactor: unify mocks for getenv function
...
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2023-08-23 13:44:40 +02:00
Compute-Runtime-Validation
8c155a2e89
Revert "performance: Memory handling improvements"
...
This reverts commit 5b80bd4d7c .
Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com >
2023-07-20 11:37:09 +02:00
Filip Hazubski
5b80bd4d7c
performance: Memory handling improvements
...
By default prefer allocating memory first by KMD, instead of malloc first.
By default prefer not caching allocations on MTL devices. This results
in allocations being handled with non-coherent pat index.
For integrated devices when caching is not preferred do not allow
direct memory access in CPU domain. For map/unmap operations create
a dedicated memory allocation for CPU access, instead of accessing it
directly, reusing the same logic as when mapping/unmapping local memory.
Signed-off-by: Filip Hazubski <filip.hazubski@intel.com >
2023-07-19 19:21:44 +02:00
Mateusz Jablonski
01990e8bd7
feature(internal): add debug flag to control preferred allocation method on Wddm
...
Related-To: NEO-7194
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2023-07-18 16:46:17 +02:00
Katarzyna Cencelewska
33a5dd486b
refactor: remove not needed arguments in adjustGpuPtrToHostAddressSpace
...
- add also tests to confirm that proper alignment is applied
Signed-off-by: Katarzyna Cencelewska <katarzyna.cencelewska@intel.com >
2023-07-18 08:41:59 +02:00
Cencelewska, Katarzyna
115d6de350
fix: add debug key to verify device state before submit
...
- new debug key EnableDeviceStateVerification to check device state not
ony in debug mode
Related-To: NEO-7669
Signed-off-by: Cencelewska, Katarzyna <katarzyna.cencelewska@intel.com >
2023-05-31 14:31:23 +02:00
Diedrich, Kamil
5149d74141
refactor: Remove globaly enabled cl_cache
...
Current behaviour will be detecd path existence
Related-To: NEO-4262
Signed-off-by: Diedrich, Kamil <kamil.diedrich@intel.com >
2023-04-28 23:28:49 +02:00
Mateusz Jablonski
2f9135a4e6
fix: change type of container with registered engines per root device
...
use StackVec instead of unordered map
resize container at MemoryManager's creation time
Related-To: NEO-7925
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2023-04-27 17:06:42 +02:00
Dunajski, Bartosz
6e9257c623
Debug flag to force early exit
...
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com >
2023-04-25 09:44:44 +02:00
Mateusz Jablonski
7a03c78b0d
feature usm: allocate host USM in HEAP_EXTENDED
...
Related-To: NEO-7665
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2023-03-29 10:09:00 +02:00
Mateusz Jablonski
7e5e27f0b9
feature usm: reserve heap extended in 57 bit address space
...
use mocked mmap function in unit tests
Related-To: NEO-7665
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2023-03-28 11:06:03 +02:00
Warchulski, Jaroslaw
89ddfbb83c
Cleanup includes 54
...
Cleaned up files:
level_zero/tools/test/unit_tests/sources/sysman/windows/mock_sysman_fixture.h
shared/test/common/os_interface/windows/wddm_fixture.h
shared/test/unit_test/command_stream/compute_mode_tests.h
shared/test/unit_test/encoders/walker_partition_fixture_xehp_and_later.h
shared/test/unit_test/fixtures/preemption_fixture.h
shared/test/unit_test/helpers/blit_commands_helper_tests.inl
shared/test/unit_test/helpers/simd_helper_tests.inl
Related-To: NEO-5548
Signed-off-by: Warchulski, Jaroslaw <jaroslaw.warchulski@intel.com >
2023-02-15 13:59:56 +01:00
Kamil Kopryk
2484c7ceb2
refactor: rename hw_helper files to gfx_core_helper files
...
Related-To: NEO-6853
Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com >
2023-02-01 19:37:51 +01:00
Kamil Kopryk
be855d7a47
refactor: don't use global ProductHelper getter 10/n
...
Related-To: NEO-6853
Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com >
2023-01-25 18:23:23 +01:00
Spruit, Neil R
f928d695e7
Support for Mapping Physical with Virtual Memory
...
Related-To: LOCI-3422, LOCI-3421
Signed-off-by: Neil R Spruit <neil.r.spruit@intel.com >
2023-01-20 05:17:10 +01:00
Warchulski, Jaroslaw
c275008e51
Cleanup includes 32
...
Cleaned up files:
level_zero/core/source/cmdlist/cmdlist_hw.h
level_zero/core/source/cmdqueue/cmdqueue.h
level_zero/core/source/event/event.h
opencl/source/helpers/get_info_status_mapper.h
opencl/source/helpers/hardware_commands_helper.h
shared/source/helpers/per_thread_data.h
Related-To: NEO-5548
Signed-off-by: Warchulski, Jaroslaw <jaroslaw.warchulski@intel.com >
2023-01-16 20:41:37 +01:00
Mateusz Jablonski
28319a8e81
Refactor: don't pass redundant hw info to applyAdditionalContextFlags
...
Wddm already contains reference to root device environment
Related-To: NEO-6853
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2023-01-02 10:20:13 +01:00
Kamil Kopryk
a55680e82e
Refactor: don't use global GfxCoreHelper getter in shared files 1/n
...
Related-To: NEO-6853
Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com >
2022-12-28 11:38:46 +01:00
Kamil Diedrich
b36aa626bc
Add support for USM shared in WSL for dGPU
...
This patch force KMD allocation path for USM shared
Additionally we force 64kb page from lock which is
required to properly program GPU VA
Related-To: NEO-6913
Signed-off-by: Kamil Diedrich kamil.diedrich@intel.com
2022-12-19 11:09:55 +01:00
Kamil Diedrich
46136cd2f6
Add wddm ult for wsl build [5/n]
...
Related-To: NEO-6066
Signed-off-by: Kamil Diedrich <kamil.diedrich@intel.com >
2022-12-14 16:32:37 +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
Kamil Diedrich
1c9f17844b
Add wddm ult for wsl build [2/n]
...
Related-To: NEO-6066
Signed-off-by: Kamil Diedrich <kamil.diedrich@intel.com >
2022-12-07 14:42:49 +01:00
Mateusz Jablonski
f7c11e8a94
Fix typos
...
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2022-11-29 17:12:10 +01:00
Warchulski, Jaroslaw
4100e1aa72
Cleanup includes 7
...
Related-To: NEO-5548
Signed-off-by: Warchulski, Jaroslaw <jaroslaw.warchulski@intel.com >
2022-11-28 17:01:48 +01:00
Kamil Diedrich
6f14e8414e
Add wddm ult for Linux build [1/n]
...
Related-To: NEO-6066
Signed-off-by: Kamil Diedrich <kamil.diedrich@intel.com >
2022-11-25 12:01:42 +01:00
Mateusz Hoppe
f19abda0e2
Set root device index in OsContext
...
- correclty choose default engine context accounting for root device
index and subdevices bitfield
Related-To: NEO-7516
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com >
2022-11-16 23:02:19 +01:00
Szymon Morek
3281dea1fe
Allow debug allocs to use copyMemoryToAllocation
...
Signed-off-by: Szymon Morek <szymon.morek@intel.com >
2022-11-14 17:50:32 +01:00
Kamil Diedrich
380e2dcc35
[WSL2] Avoid gdi calls while process exit
...
Related-To: NEO-7380
Signed-off-by: Kamil Diedrich <kamil.diedrich@intel.com >
2022-10-21 12:37:07 +02:00