18adbed233
feat(zebin): add thread scheduling mode support
...
Resolves: NEO-7197
Signed-off-by: Krystian Chmielewski <krystian.chmielewski@intel.com >
2022-08-18 16:10:18 +02:00
d795182eae
Move files from shared/test/unit_test to /common (preamble, utilities)
...
unit_test/preamble/preamble_fixture.h -> common/fixtures
unit_test/source_level_debugger -> common/
unit_test/utilities/base_object_utils.h -> common/utilities
unit_test/utilities/destructor_counted.h -> common/utilities
unit_test/utilities/logger_tests.h -> common/utilities
Related-To: NEO-6524
Signed-off-by: Warchulski, Jaroslaw <jaroslaw.warchulski@intel.com >
2022-08-17 11:24:58 +02:00
bca852617c
Remove usage of TestLegacy from opencl tests
...
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2022-08-16 22:16:48 +02:00
5ffeac44c5
Correct shared fixture methods name to meet clang-tidy requirements
...
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2022-08-16 12:52:49 +02:00
e6fc458d4b
Add a struct for test fixtures with correct method naming convention
...
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2022-08-11 12:55:52 +02:00
aed890a219
Move files between shared/test/unit_test and /common (fixtures, helpers, mocks)
...
unit_test/fixtures/mock_aub_center_fixture.h -> common/fixtures
unit_test/helpers/raii_hw_helper.h -> common/helpers
unit_test/helpers/static_size3.h -> common/helpers
unit_test/helpers/ult_limits.h -> common/helpers
unit_test/memory_manager/mock_prefetch_manager.h -> common/memory_manager
common/mocks/mock_aub_stream.h -> unit_test/mocks
common/mocks/mock_csr_simulated_common_hw.h -> unit_test/mocks
common/mocks/mock_direct_submission_diagnostic_collector.h -> unit_test/mocks
common/mocks/mock_lrca_helper.h -> unit_test/mocks
common/mocks/mock_tbx_stream.h -> unit_test/mocks
common/mocks/linux/mock_os_context_linux.h -> unit_test/mocks/linux
common/mocks/windows/mock_wddm_direct_submission.h -> unit_test/mocks/windows
Related-To: NEO-6524
Signed-off-by: Warchulski, Jaroslaw <jaroslaw.warchulski@intel.com >
2022-08-11 12:53:19 +02:00
d4d54f5093
Cleanup includes
...
Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com >
2022-07-25 09:58:38 +02:00
b450d3c20b
Add cl_khr_device_uuid to extension list
...
Related-To: NEO-5681
Signed-off-by: Baj, Tomasz <tomasz.baj@intel.com >
2022-07-18 12:28:04 +02:00
3e22f30ed5
clEnqueueMigrateMemINTEL with memory prefetch for KMD migrated shared allocation
...
Related-To: NEO-6740
Signed-off-by: Milczarek, Slawomir <slawomir.milczarek@intel.com >
2022-07-14 17:35:22 +02:00
7c538b956a
Correct typo
...
Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com >
2022-07-14 10:13:12 +02:00
e07f9f0698
Add kernel algorithm to check any argument is using system memory
...
Related-To: NEO-6959
Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com >
2022-07-12 13:08:49 +02:00
5a3a39a281
Experimental support for OCL debugging with L0
...
- initial changes
Related-To: NEO-7075
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com >
2022-07-12 12:57:15 +02:00
4bdd8860a1
test.h refactor
...
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com >
2022-07-04 18:20:07 +02:00
a8e2bd3f98
hw_cmds.h usage cleanup
...
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com >
2022-06-29 11:15:45 +02:00
b0d4215328
Revert "Use DualSubSliceCount to calculate workgroup size"
...
This reverts commit 8ea5bbd3b5
.
Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com >
2022-06-28 11:47:11 +02:00
8ea5bbd3b5
Use DualSubSliceCount to calculate workgroup size
...
Related-To: NEO-5719
Signed-off-by: Sebastian Luzynski <sebastian.jozef.luzynski@intel.com >
2022-06-27 15:41:47 +02:00
0583413499
Remove error for unused parameter
...
Remove error for unused parameter
from clGetKernelMaxConcurrentWorkGroupCountINTEL
Resolves: NEO-7044
Signed-off-by: Neumann, Marta <marta.neumann@intel.com >
2022-06-15 18:48:22 +02:00
c229ace4df
Adjust GmmHelper to be HW aware
...
Related-To: NEO-6523
Signed-off-by: Krzysztof Gibala <krzysztof.gibala@intel.com >
2022-06-13 18:33:06 +02:00
6d43e96dee
style: configure readability-identifier-naming.ClassCase
...
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com >
2022-06-13 18:02:39 +02:00
bd5dc1524c
Enable cl_intel_split_work_group_barrier extension for all platforms
...
Related-To: NEO-6991, NEO-6993
Signed-off-by: Filip Hazubski <filip.hazubski@intel.com >
2022-05-24 14:28:02 +02:00
b48d4a87d2
Revert "Enable cl_intel_split_work_group_barrier extension for all platforms"
...
This reverts commit 4bb5a49eda
.
Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com >
2022-05-24 09:48:09 +02:00
4bb5a49eda
Enable cl_intel_split_work_group_barrier extension for all platforms
...
Related-To: NEO-6991, NEO-6993
Signed-off-by: Filip Hazubski <filip.hazubski@intel.com >
2022-05-23 17:26:36 +02:00
b8cf0c757a
Notify gtpin onCommandBufferComplete
...
Notify gtpin onContextDestroy before SVM Allocations are deleted.
Resolves: NEO-6985
Signed-off-by: Sebastian Luzynski <sebastian.jozef.luzynski@intel.com >
2022-05-20 16:42:13 +02:00
cbd73d2d9c
Do not switch to batched mode when update task count form wait is enabled.
...
There is not need to enable batching in this case as we do not have
synchronization points between enqueues.
Signed-off-by: Michal Mrozek <michal.mrozek@intel.com >
2022-05-19 13:16:20 +02:00
3f04769f07
style: configure readability-identifier-naming.FunctionCase
...
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com >
2022-05-17 20:55:56 +02:00
4c98e98011
style: correct variable naming
...
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com >
2022-05-16 17:24:47 +02:00
d643c587b9
style: correct variable naming
...
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com >
2022-05-16 15:02:15 +02:00
83a9037640
Revert async Event destruction
...
This reverts f9a5f8a86e
and
f89c731a11
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com >
2022-05-12 13:33:02 +02:00
a31a674c38
L0 support for expose sub devices as API devices
...
Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com >
2022-05-11 15:41:53 +02:00
e9be9b64c6
clang-tidy configuration cleanup
...
Define single .clang-tidy configuration with all used checks and use
NOLINT to selectively silence tool. That way cleanup should be easier.
third_part/ has its own configuration that disables clang-tidy for this
folder.
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com >
2022-05-11 14:02:04 +02:00
17aac9d1bf
Add debug flag to expose each subdevice as a separate cl device
...
Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com >
2022-05-10 14:04:26 +02:00
943ad0e1eb
style: skip redundant unique_ptr::get function
...
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2022-05-10 13:22:40 +02:00
f9a5f8a86e
Defer Event destruction if command is not completed
...
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com >
2022-05-10 11:22:58 +02:00
1088bfd837
Move shared ULT helper files to shared directory
...
Signed-off-by: Filip Hazubski <filip.hazubski@intel.com >
2022-05-06 09:20:27 +02:00
73d3d83e60
Assign gpgpu engine at first enqueue
...
Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com >
2022-04-29 11:33:12 +02:00
903cf766b3
Revert "Move shared helper files to shared directory"
...
This reverts commit 459524f129
.
Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com >
2022-04-27 13:12:16 +02:00
459524f129
Move shared helper files to shared directory
...
Signed-off-by: Filip Hazubski <filip.hazubski@intel.com >
2022-04-27 10:34:42 +02:00
d0a32b1437
Fix: svm pointer caching
...
Given a following sequence of setting kernel arg svm pointers: A, nullptr, A
the kernel arg was not being set to A
Related-To: NEO-6895
Signed-off-by: Dominik Dabek <dominik.dabek@intel.com >
2022-04-25 07:59:47 +02:00
8d1ad5a4f3
Refactor: use stack vector for root device indices
...
Stack vector will not cause dynamic allocations in most circumstances
ie. number of root device indices not more than 16
Related-To: NEO-6837
Signed-off-by: Dominik Dabek <dominik.dabek@intel.com >
2022-04-14 14:05:42 +02:00
0fd8b850a6
Support for enabling perf counters with clCreateCommandQueueWithProperties
...
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com >
2022-03-22 10:33:40 +01:00
eef82189e5
Improve caching in clSetKernelArgSVMPointer 3/n
...
Add missing ult for 2/n
Related-To: NEO-6737
Signed-off-by: Dominik Dabek <dominik.dabek@intel.com >
2022-03-11 14:21:14 +01:00
d5fedf90c5
Fix for svm pointer arg caching
...
Previous version could cause segfaults.
Related-To: NEO-6737
Signed-off-by: Dominik Dabek <dominik.dabek@intel.com >
2022-03-08 12:13:15 +01:00
7ab86d44d6
Improve caching in clSetKernelArgSVMPointer
...
Check allocId earlier and also reuse if allocationsCounter did not
change from last call.
Related-To: NEO-6737
Co-authored-by: Michal Mrozek <michal.mrozek@intel.com >
Signed-off-by: Dominik Dabek <dominik.dabek@intel.com >
2022-03-02 15:56:21 +01:00
dad2b2120b
Add missing tests for clSetKernelArgSVMPointer
...
Related-To: NEO-6737
Signed-off-by: Dominik Dabek <dominik.dabek@intel.com >
2022-03-01 15:42:41 +01:00
b9d8d8c0fd
Optimize setKernelArgSVMPointer
...
If same pointer is already set, we don't need to set it again.
Related-To: NEO-6737
Signed-off-by: Dominik Dabek <dominik.dabek@intel.com >
2022-03-01 09:12:13 +01:00
7f729b7f89
Detect GPU hang in clWaitForEvents
...
This change:
- moves NEO::WaitStatus to a separate file
- enables detection of GPU hang in clWaitForEvents
- adjusts most of blocking calls in CommandStreamReceiver to return WaitStatus
- adds ULTs to cover the new code
Related-To: NEO-6681
Signed-off-by: Patryk Wrobel <patryk.wrobel@intel.com >
2022-02-23 13:33:09 +01:00
e518a8f3f9
Add debug flag ForceExtendedUSMBufferSize
...
Forces extended buffer size by adding pageSize specify by number when
debug flag is >=1 in:
- clHostMemAllocINTEL
- clDeviceMemAllocINTEL
- clSharedMemAllocINTEL
Usage:
ForceExtendedUSMBufferSize=2
size += (2 * pageSize)
Signed-off-by: Krzysztof Gibala <krzysztof.gibala@intel.com >
2022-02-07 11:44:31 +01:00
4b0d986876
Move AllocationType enum out of GraphicsAllocation class
...
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com >
2022-02-04 17:49:09 +01:00
8a4d28ef8b
Fix profiling calculation logic
...
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com >
2022-02-02 10:37:07 +01:00
58055aecdf
Remove device enqueue part 12
...
remove:
- debug flag ForceDeviceEnqueueSupport
- functions isDeviceEnqueueSupported, supportsDeviceEnqueue
Related-To: NEO-6559
Signed-off-by: Katarzyna Cencelewska <katarzyna.cencelewska@intel.com >
2022-01-28 13:38:34 +01:00