Commit Graph

5787 Commits

Author SHA1 Message Date
Aleksandra Nizio
dfc97c016e fix: create temporary main.cl with kernel source when -g debug flag is used
Implements mechanism in ocloc to generate a temporary main.cl file
containing kernel source code when compiling with the debug (-g) flag
and the source file does not exist. This enables proper source code
annotations in generated assembly for SYCL/online compilation workflows.

Related-To: NEO-11900
Signed-off-by: Aleksandra Nizio <aleksandra.nizio@intel.com>
2025-07-25 12:42:26 +02:00
Mateusz Jablonski
0a347a2d8b refactor: remove not needed code related to vme usage
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2025-07-24 17:54:51 +02:00
Mateusz Jablonski
aeb46dc785 refactor: remove not needed constant isUsingMediaSamplerDopClockGate
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2025-07-24 16:53:49 +02:00
Mateusz Jablonski
066447e5eb refactor: remove not needed code
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2025-07-24 16:33:29 +02:00
Mateusz Hoppe
016582a259 fix(ocl): unpack zebin binary
- unpackSingleDeviceBinary() validates target machine and extracts
information from ELF sections

Related-To: NEO-15574

Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2025-07-24 15:46:31 +02:00
Dominik Dabek
a8553a55c3 fix: disable usm pooling on non-hw
Usm pooling does not work with saving/downloading whole allocations on
non-hw csrs.

Related-To: NEO-6893

Signed-off-by: Dominik Dabek <dominik.dabek@intel.com>
2025-07-24 15:04:57 +02:00
Szymon Morek
bbcca97682 fix: flush cache after accessing img from buffer
Related-To: NEO-15391

Signed-off-by: Szymon Morek <szymon.morek@intel.com>
2025-07-23 19:17:47 +02:00
Naklicki, Mateusz
417e89e5a2 fix: add missing include
Signed-off-by: Naklicki, Mateusz <mateusz.naklicki@intel.com>
2025-07-23 12:43:38 +02:00
Compute-Runtime-Validation
cf89342bf8 Revert "fix: flush cache after accessing img from buffer"
This reverts commit b90b77e4e3.

Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
2025-07-23 05:25:55 +02:00
Naklicki, Mateusz
dade66307e refactor: cleanup header includes 4/n
cleanup of opencl/source directory

Related-To: NEO-15383
Signed-off-by: Naklicki, Mateusz <mateusz.naklicki@intel.com>
2025-07-22 19:36:34 +02:00
Szymon Morek
b90b77e4e3 fix: flush cache after accessing img from buffer
Related-To: NEO-15391

Signed-off-by: Szymon Morek <szymon.morek@intel.com>
2025-07-22 16:55:04 +02:00
Oskar Hubert Weber
9055ae8e54 fix: skip teardown clean up when terminating process on Windows
Per https://learn.microsoft.com/en-us/windows/win32/dlls/dllmain,
it's not safe to clean up resources in DllMain when
fdwReason == DLL_PROCESS_DETACH and lpvReserved != NULL (the process is
terminating), e.g. can result in a hang in some cases.

Related-To: NEO-14121

Signed-off-by: Oskar Hubert Weber <oskar.hubert.weber@intel.com>
2025-07-22 15:13:11 +02:00
Mateusz Hoppe
b17ed79618 fix: update implicitArgs versions
- fix layout of implicit args
- add enqueued local size and sync buffer ptr

Related-To: NEO-15160

Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2025-07-22 15:12:55 +02:00
Tomasz Biernacik
2da77209dc refactor: encapsulate condition
Related-To: NEO-14844

Signed-off-by: Tomasz Biernacik <tomasz.biernacik@intel.com>
2025-07-22 10:43:39 +02:00
Krzysztof Gibala
9619adbf4e refactor: Correct typo
Signed-off-by: Krzysztof Gibala <krzysztof.gibala@intel.com>
2025-07-22 10:20:19 +02:00
Grochowski, Stanislaw
2bb965329d fix: Add BMG 0xE209 device id
Related-To: NEO-15319

Signed-off-by: Grochowski, Stanislaw <stanislaw.grochowski@intel.com>
2025-07-21 12:57:44 +02:00
Grochowski, Stanislaw
171b398465 fix: Add PTL sku device ids
Related-To: NEO-14999

Signed-off-by: Grochowski, Stanislaw <stanislaw.grochowski@intel.com>
2025-07-17 21:27:13 +02:00
Grochowski, Stanislaw
e652679b95 fix: correct pollForCompletion in aub on program termination
Related-To: NEO-14867

Signed-off-by: Grochowski, Stanislaw <stanislaw.grochowski@intel.com>
2025-07-17 12:59:00 +02:00
Naklicki, Mateusz
0f1361eb6a test: fix optional-scratch related tests
* Use isDefined() to check scratch and indirect data pointers, which currently
default to undefined
* Correct kernel selection in EnqueueCopyBufferTests: previous tests expected
the CopyBufferToBufferMiddleStateless kernel, but the executed kernel is
CopyBufferToBufferRightLeftoverStateless.
If executed kernel crossthread data fits inline, reducing indirect heap usage
to zero, and expected kernel does not, this mismatch would make tests fail

Related-To: IGC-10687
Signed-off-by: Naklicki, Mateusz <mateusz.naklicki@intel.com>
2025-07-17 10:20:08 +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
Filip Hazubski
8136487439 fix: Correct logic to catch invalid gmm compression format
Add check for GMM_XE2_UNIFIED_COMP_FORMAT when creating Gmm for image.

Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
2025-07-15 18:52:25 +02:00
Tomasz Biernacik
2c5cbec033 feature: control post sync completion check
Related-To: NEO-14844

Signed-off-by: Tomasz Biernacik <tomasz.biernacik@intel.com>
2025-07-15 13:51:19 +02:00
Ben Ashbaugh
72b727e70e fix: SVM corner cases where size equals zero
Allow clEnqueueSVMMemFill with a size equal to zero.  Additionally,
allow a NULL svm_ptr when the size is equal to zero.
Set the event command type properly when enqueueing a marker for
clEnqueueSVMMemcpy with a size equal to zero.

Signed-off-by: Ben Ashbaugh <ben.ashbaugh@intel.com>
2025-07-14 16:47:13 +02:00
Mateusz Jablonski
fefdcc5533 test: correct setting out clEvent in mocked enqueue marker
move non-trivial definitions of MockCommandQueue methods to cpp file

Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2025-07-14 15:32:38 +02:00
Damian Tomczak
b39c5c151a feature: force stateless for read and write buffer rect
Related-to: NEO-6075

Signed-off-by: Damian Tomczak <damian.tomczak@intel.com>
2025-07-11 18:09:21 +02:00
Mateusz Jablonski
5e43ee905d refactor: remove not needed logic related to vme
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2025-07-11 17:02:48 +02:00
Mateusz Jablonski
500ae54fc1 refactor: remove not needed code related to device enqueue
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2025-07-11 10:37:27 +02:00
Mateusz Jablonski
8b6aaceab4 refactor: remove not needed code related to cl accelerator
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2025-07-10 18:08:32 +02:00
Krzysztof Gibala
5840dc09cd fix: getNumKernels returns kernel count for built device
The `getNumKernels` function now returns the kernel count based on the
actual device (`rootDeviceIndex`) the program was built for, ensuring
accurate kernel enumeration in multi-device scenarios. The
`rootDeviceIndex` is determined using `getDevicesInProgram`.

Related-To: NEO-15441

Signed-off-by: Krzysztof Gibala <krzysztof.gibala@intel.com>
2025-07-10 11:42:47 +02:00
Filip Hazubski
f8dc80c7fc test: Adjust direct submission tests
Disable direct submission at the end of the test for cases where
direct submission is enabled in test body.

Adjust mock csr to restore os context in cases where
context has been replaced in test body.

Related-To: NEO-15017

Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
2025-07-10 11:01:33 +02:00
Grochowski, Stanislaw
8180e95e0f fix: ensure pollForCompletion in aub on program termination
Related-To: NEO-14867

Signed-off-by: Grochowski, Stanislaw <stanislaw.grochowski@intel.com>
2025-07-10 08:32:00 +02:00
Mateusz Hoppe
703497b067 fix: read ONEAPI_PVC_SEND_WAR_WA env
- disable optimization with compiler internal option when env is set to
zero

Related-To: NEO-15378, GSD-10884

Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2025-07-09 16:22:18 +02:00
Kamil Kopryk
2edd953026 refactor: move empty sba programming in heapless prolog to base class
Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com>
2025-07-08 16:46:57 +02:00
Damian Tomczak
94bbf13b28 test: early local memory checker due to heapless prolog init
Related-to: NEO-14526

Signed-off-by: Damian Tomczak <damian.tomczak@intel.com>
2025-07-08 10:46:39 +02:00
Szymon Morek
9f02c72f15 performance: Change compression format on BCS for Xe2
Related-To: NEO-15454

Signed-off-by: Szymon Morek <szymon.morek@intel.com>
2025-07-07 16:23:38 +02:00
Damian Tomczak
f2bd2d3716 test: unify PredicatedCommandBuffer aub tests for heapless
Related-to: NEO-14526

Signed-off-by: Damian Tomczak <damian.tomczak@intel.com>
2025-07-07 11:27:09 +02:00
Compute-Runtime-Validation
aa37604e7c Revert "fix: skip teardown clean up when terminating process on Windows"
This reverts commit 66bf978a13.

Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
2025-07-05 06:28:05 +02:00
Mateusz Jablonski
9dbdbd50f2 test: mock file system in file logger tests
Related-To: NEO-14110
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2025-07-04 14:42:00 +02:00
Oskar Hubert Weber
66bf978a13 fix: skip teardown clean up when terminating process on Windows
Per https://learn.microsoft.com/en-us/windows/win32/dlls/dllmain,
it's not safe to clean up resources in DllMain when
fdwReason == DLL_PROCESS_DETACH and lpvReserved != NULL (the process is
terminating), e.g. can result in a hang in some cases.

Related-To: NEO-14121

Signed-off-by: Oskar Hubert Weber <oskar.hubert.weber@intel.com>
2025-07-04 14:05:39 +02:00
Marcel Skierkowski
6a9a643b75 test: StreamCaptureStd on pipes
Store data in a pipe instead of a temporary file like gtest
resulting in faster test execution

Signed-off-by: Marcel Skierkowski <marcel.skierkowski@intel.com>
2025-07-03 11:32:05 +02:00
Oskar Hubert Weber
1c722ddb7c test: mock filesystem in ULTs 2/n
Remove USE_REAL_FILE_SYSTEM() macro uses from API, program, kernel and
gtpin tests.

Related-To: NEO-15069

Signed-off-by: Oskar Hubert Weber <oskar.hubert.weber@intel.com>
2025-07-03 09:44:06 +02:00
Oskar Hubert Weber
e4681ddafa test: disable leak detection in DeferredDeleter tests
detached std::thread can still be running after test TearDown,
leak listener fails because of the std::thread resources freed up
afterwards.

Related-To: NEO-15414

Signed-off-by: Oskar Hubert Weber <oskar.hubert.weber@intel.com>
2025-07-02 10:03:22 +02:00
Bartosz Dunajski
e2dff82741 feature: remote copy support for bcs split
Related-To: NEO-14557

Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
2025-07-01 15:57:02 +02:00
Aleksander Czerwionka
6acf58633d fix: set correct CCS mode in Aubstream and reenable multi context tests
Related-To: NEO-14917

Signed-off-by: Aleksander Czerwionka <aleksander.czerwionka@intel.com>
2025-07-01 15:18:11 +02:00
Kamil Kopryk
ecb411108a fix: don't skip wait for task count - cpu read + L3FlushAfterPostSync
Related-To: NEO-13163
Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com>
2025-07-01 12:09:43 +02:00
Marcel Skierkowski
f0d5cf7530 test: StreamCaptureStdErr on pipes
Store data in a pipe instead of a temporary file like gtest
resulting in faster test execution

Signed-off-by: Marcel Skierkowski <marcel.skierkowski@intel.com>
2025-07-01 11:52:43 +02:00
Mateusz Hoppe
bdc2ba8e08 build: add option for kernels requiring non default grf size
Related-To: NEO-15132

Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2025-07-01 01:27:56 +02:00
Ben Ashbaugh
25d0daf754 feature: support SPIR-V 1.4 and 1.5
Related-To: NEO-14312

Signed-off-by: Ben Ashbaugh <ben.ashbaugh@intel.com>
2025-06-30 17:05:12 +02:00
Naklicki, Mateusz
f8a2070c86 test: cleanup header includes 3/n
Related-To: NEO-15383
Signed-off-by: Naklicki, Mateusz <mateusz.naklicki@intel.com>
2025-06-30 10:49:26 +02:00
Naklicki, Mateusz
f710cbc3f6 test: cleanup header includes 2/n
Related-To: NEO-15383
Signed-off-by: Naklicki, Mateusz <mateusz.naklicki@intel.com>
2025-06-30 10:47:39 +02:00