Commit Graph

228 Commits

Author SHA1 Message Date
Jakub Nowacki
be34c1ac86 performance: move instead of copy
Related-To: NEO-15630

Signed-off-by: Jakub Nowacki <jakub.nowacki@intel.com>
2025-11-14 16:30:05 +01:00
Chodor, Jaroslaw
d8ef0aa99d fix: Better IR file format ext handling
This fix makes ocloc honor IR file format when picking
extension for the output file.
Additionally, this commit removes reduntant IR output when
compiling from IR.

Related-To: NEO-15876

Signed-off-by: Chodor, Jaroslaw <jaroslaw.chodor@intel.com>
2025-10-21 17:40:30 +02:00
Aleksandra Nizio
c514fcbf96 fix: removing duplicated code and using std::move to avoid unnecessary copies
Resolves: NEO-16441
Signed-off-by: Aleksandra Nizio <aleksandra.nizio@intel.com>
2025-10-15 15:25:43 +02:00
Maciej Bielski
6005284a6f performance: fix minor inefficiencies - leverage move semantics
Related-To: NEO-15630

Signed-off-by: Maciej Bielski <maciej.bielski@intel.com>
2025-10-14 21:17:01 +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
Aleksandra Nizio
fd14712d7a fix: allow IP version format in -device_options and improve error messages
Related-To: GSD-7106,NEO-15916
Signed-off-by: Aleksandra Nizio <aleksandra.nizio@intel.com>
2025-10-06 11:43:53 +02:00
Compute-Runtime-Validation
fae0f625a6 Revert "fix: Better IR file format ext handling"
This reverts commit a0407ff72a.

Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
2025-09-16 02:16:08 +02:00
Fabian Zwoliński
8cf8fe4f5a fix: use const auto& to avoid unnecessary copies
Signed-off-by: Fabian Zwoliński <fabian.zwolinski@intel.com>
2025-09-15 17:48:57 +02:00
Chodor, Jaroslaw
a0407ff72a fix: Better IR file format ext handling
This fix makes ocloc honor IR file format when picking
extension for the output file.
Additionally, this commit removes reduntant IR output when
compiling from IR.

Related-To: NEO-15876

Signed-off-by: Chodor, Jaroslaw <jaroslaw.chodor@intel.com>
2025-09-15 14:51:06 +02:00
Aleksandra Nizio
9ba7e3f92a feature: Support specialization constants in offline ocloc compilation
Related-To: NEO-8118
Signed-off-by: Aleksandra Nizio <aleksandra.nizio@intel.com>
2025-09-05 09:20:21 +02:00
Compute-Runtime-Validation
482c5ce11b Revert "fix: Better IR file format ext handling"
This reverts commit 1aa869d67d.

Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
2025-09-04 09:36:49 +02:00
Chodor, Jaroslaw
1aa869d67d fix: Better IR file format ext handling
This fix makes ocloc honor IR file format when picking
extension for the output file.
Additionally, this commit removes reduntant IR output when
compiling from IR.

Related-To: NEO-15876

Signed-off-by: Chodor, Jaroslaw <jaroslaw.chodor@intel.com>
2025-09-03 12:18:27 +02:00
Compute-Runtime-Validation
c3a3fe6f01 Revert "fix: add null-termination sign to binaries in ocloc"
This reverts commit b67e1dc806.

Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
2025-09-01 10:27:17 +02:00
Mateusz Jablonski
b67e1dc806 fix: add null-termination sign to binaries in ocloc
Related-To: NEO-15749
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2025-08-22 19:11:07 +02:00
Mateusz Jablonski
a46181b2c5 fix: remove deprecated patchtokens format from ocloc
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2025-08-13 15:41:37 +02:00
Aleksandra Nizio
1a22a2271f 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-29 14:09:10 +02:00
Compute-Runtime-Validation
4d4a5cc8b3 Revert "fix: create temporary main.cl with kernel source when -g debug flag i...
This reverts commit dfc97c016e.

Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
2025-07-26 02:45:54 +02:00
Aleksandra Nizio
2ffd85ad94 fix: Remove unused macro
Resolves: NEO-15666
Signed-off-by: Aleksandra Nizio <aleksandra.nizio@intel.com>
2025-07-25 15:58:32 +02:00
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 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
Chodor, Jaroslaw
767755df94 refactor: introducing AOT platforms wrapper
Signed-off-by: Chodor, Jaroslaw <jaroslaw.chodor@intel.com>
2025-06-11 15:30:24 +02:00
Marcel Skierkowski
c54c88c7f6 fix: check createDir return value
Added a check in the createDir function to verify if the file exists
(this is not an error)

Signed-off-by: Marcel Skierkowski <marcel.skierkowski@intel.com>
2025-04-29 16:28:38 +02:00
Marcel Skierkowski
85f71062ae fix: check createDir return value
Check if the createDir function returns an error code

Signed-off-by: Marcel Skierkowski <marcel.skierkowski@intel.com>
2025-04-29 11:10:19 +02:00
Chodor, Jaroslaw
2ce694c52b feature: Enabling support for redirecting FCL to IGC for OCLOC
This allows for invoking IGC as OCL C translator in OCLOC paths

Accepted debug env :
NEO_OCLOC_UseIgcAsFcl=1 ; forces IGC
NEO_OCLOC_UseIgcAsFcl=2 ; forces FCL
NEO_OCLOC_UseIgcAsFcl=0 ; use defaults

Related-To: NEO-14473
Signed-off-by: Chodor, Jaroslaw <jaroslaw.chodor@intel.com>
2025-04-15 16:44:35 +02:00
Marcel Skierkowski
b75fbe8e2c refactor: mock filesystem in ocloc ult pt.1
Mocked IO operations in ./ocloc_tests application

Mocked gtest stdout capture in ocloc tests

Related-To: NEO-14084
Signed-off-by: Marcel Skierkowski <marcel.skierkowski@intel.com>
2025-04-08 16:08:42 +02:00
Filip Hazubski
504440fc4d feature: Add ftrHeaplessMode flag
Pass hwInfo to isHeaplessModeEnabled and isForceBindlessRequired functions.

Related-To: NEO-14526

Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
2025-04-02 21:06:05 +02:00
Arek G
4751461a30 fix: ocloc: allow passing -device and -device_options in different formats
Related-To: NEO-9563
Signed-off-by: Arek G <arkadiusz.grubba@intel.com>
2025-03-25 18:07:21 +01:00
Chodor, Jaroslaw
8040d8bebf refactor: ocloc command line refactor
Related-To: NEO-14135

Signed-off-by: Chodor, Jaroslaw <jaroslaw.chodor@intel.com>
2025-02-25 11:11:28 +01:00
Kamil Kopryk
7c3468794e fix: add option to enable/disable heapless in ocloc
Related-To: GSD-10681
Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com>
2025-02-24 17:06:26 +01:00
Compute-Runtime-Validation
242a31a024 Revert "refactor: remove excess cast to C-string and add const reference"
This reverts commit 34ee40393f.

Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
2025-01-15 02:43:40 +01:00
Semenov Herman (Семенов Герман)
34ee40393f refactor: remove excess cast to C-string and add const reference
Signed-off-by: Semenov Herman (Семенов Герман) <GermanAizek@yandex.ru>
2025-01-14 13:25:31 +01:00
Artur Harasimiuk
22505ca3ed refactor: cleanup coding style
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
2024-10-02 12:42:39 +02:00
Mateusz Jablonski
922edfd68d fix(ocloc): correct ocloc name in supported devices query
previous approach was to version ocloc library but it was deprecated
right now there will be 2 known libraries:
- libocloc.so - for mainstream
- libocloc-legacy1.so for legacy platforms

Related-To: NEO-12273, NEO-9630
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2024-08-14 11:05:28 +02:00
Fabian Zwoliński
359f4d5b56 feature: add SUPPORTED_DEVICES query to ocloc
New query option
ocloc query SUPPORTED_DEVICE
allows to generate a YAML file containing
information about supported devices for:
- the current version of ocloc on Windows
- the current and previous versions of ocloc on Linux

Each version of ocloc build needs to set
NEO_OCLOC_CURRENT_LIB_NAME
NEO_OCLOC_FORMER_LIB_NAME
cmake defines for the ocloc to be able to
find a previous lib and query its supported devices.

Example of correct format:
NEO_OCLOC_FORMER_LIB_NAME=libocloc-1.0.so
NEO_OCLOC_CURRENT_LIB_NAME=libocloc-2.0.so

Related-To: NEO-9630
Signed-off-by: Fabian Zwoliński <fabian.zwolinski@intel.com>
2024-07-11 17:38:33 +02:00
Maciej Bielski
c80a5e0143 fix: avoid dereferencing nullptr
Related-To: NEO-11825

Signed-off-by: Maciej Bielski <maciej.bielski@intel.com>
2024-06-26 19:46:49 +02:00
Artur Harasimiuk
ad374fbd8f build: allow use cl_cache in ocloc
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
2024-06-13 16:06:15 +02:00
Artur Harasimiuk
cddec0f78b feature(ocloc): read cl_cache configuration from env variables
Related-To: NEO-7785
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
2024-06-13 15:41:21 +02:00
Mateusz Jablonski
a28d6557ad fix(ocloc): optimize accesses to cache when building source code
when binary is zebin then don't look for separate debug binary

Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2024-06-12 17:04:38 +02:00
Mateusz Jablonski
5fa5387781 fix(ocloc): remove incorrect ir binary caching during build from source
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2024-06-12 12:02:39 +02:00
Mateusz Hoppe
037957a7ae feature: add -stateful_address_mode to ocloc
- allows to choose bindless or bindful addressing in generated code

Related-To: NEO-11704

Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2024-06-12 07:46:12 +02:00
Mateusz Jablonski
cfd5f0c9b3 fix: use .spv for intermediate representation
Related-To: NEO-7785
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2024-06-11 12:06:57 +02:00
Compute-Runtime-Validation
f4106ca44c Revert "fix: use .spv for intermediate representation"
This reverts commit 6c9bca8cdc.

Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
2024-06-11 05:57:05 +02:00
Mateusz Jablonski
6c9bca8cdc fix: use .spv for intermediate representation
Related-To: NEO-7785
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2024-06-10 15:38:50 +02:00
Filip Hazubski
5ae2709e6e fix: Remove allow-zebin and enable-zebin compile options
Zebin is enabled by default.

Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
2024-06-10 14:08:40 +02:00
Mateusz Jablonski
d28ac15922 refactor: remove invalid device ids
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2024-06-04 15:28:05 +02:00
Chodor, Jaroslaw
e053f3a839 feature: Add support for legacy acronyms in ocloc's ids query
Expands support for deprecated acronyms to ids query.
Additionally, this commit changes default devices for legacy
acronyms.

Related-To: NEO-10190

Signed-off-by: Chodor, Jaroslaw <jaroslaw.chodor@intel.com>
2024-05-28 10:18:29 +02:00
Fabian Zwoliński
78bd3da078 fix: ocloc - add bindless mode options if bindless is enabled
If release helper is not present,
do not add bindless mode options.

Related-To: NEO-7063
Signed-off-by: Fabian Zwoliński <fabian.zwolinski@intel.com>
2024-05-23 14:10:28 +02:00
Kacper Nowak
35ca2bbea9 refactor: refactor logic for querying atomic FP capabilities
- Move logic from product helper to compiler product helper
- Add method for adjusting fp16 and extra capabilities using release
helper (if present).


Signed-off-by: Kacper Nowak <kacper.nowak@intel.com>
2024-03-28 15:27:45 +01:00
Chodor, Jaroslaw
b58717b9e3 feature: Add support for legacy acronyms in ocloc's fatbinary
Expands support for deprecated acronyms to fatbinary. Previously,
these were allowed only in single-target builds.

Related-To: NEO-10190

Signed-off-by: Chodor, Jaroslaw <jaroslaw.chodor@intel.com>
2024-02-15 10:14:49 +01:00
Chodor, Jaroslaw
9ec9cc7ee0 fix: ocloc - Add support for verbose mode
with additional -v option, ocloc will output
command line it was invoked with

Signed-off-by: Chodor, Jaroslaw <jaroslaw.chodor@intel.com>
2024-01-24 15:32:28 +01:00