Dominik Dabek
df2e31dbb0
Print ocloc options from file on fail if quiet
...
Currently if ocloc fails and options are read from file, no information
about them will be printed or logged if -q is passed.
With this change, ocloc will print options read from file on compilation
or initialization error.
Related-To: NEO-6002
Signed-off-by: Dominik Dabek <dominik.dabek@intel.com >
2021-12-28 16:50:05 +01:00
Dominik Dabek
b6ec17843d
Add quotes to options in cmdline printed by ocloc
...
When ocloc prints the command it was called with, enclose the -options
and -internal_options with quotes.
This allows easier copy-paste of the cmdline.
Related-To: NEO-6002
Signed-off-by: Dominik Dabek <dominik.dabek@intel.com >
2021-12-22 17:19:41 +01:00
Patryk Wrobel
09eefb4968
Unify used flags in case of IR exclusion
...
Unifies usage of flags in case of IR exclusion from ocloc's output file.
When -exclude_ir parameter is active, then internal options passed to
IGC contain -exclude-ir-from-zebin to preserve consistency. Moreover,
when only -exclude-ir-from-zebin is present, then -exclude_ir is also set.
Related-To: NEO-6477
Signed-off-by: Patryk Wrobel <patryk.wrobel@intel.com >
2021-12-17 14:30:58 +01:00
Daria Hinz
9bc04dcd9f
Add support for LKF in Product Config
...
Signed-off-by: Daria Hinz <daria.hinz@intel.com >
2021-12-16 15:31:34 +01:00
Daria Hinz
0aeca8df22
New numerical approach to platforms in ocloc
...
For AOT feature, a new approach to passing
the -device arg to ocloc is implemented.
New character: <Major>.<Minor>.<Revision>
Signed-off-by: Daria Hinz <daria.hinz@intel.com >
Related-To: NEO-5954
2021-12-15 13:02:12 +01:00
Mateusz Jablonski
e4bbed49d0
Use full path to include test.h 1/n
...
fix files in opencl
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2021-12-15 12:34:34 +01:00
Patryk Wrobel
c324279bf5
Add support for exclusion of IR from binary generated by ocloc
...
Itroduces new parameter "-exclude_ir" to ocloc CLI.
This parameter can be used to reduce output binary size
when IR is not needed.
Related-To: NEO-6477
Signed-off-by: Patryk Wrobel <patryk.wrobel@intel.com >
2021-12-08 16:11:54 +01:00
Bartosz Dunajski
537200dac5
Debug flag support to override revisionId in ocloc
...
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com >
2021-11-29 14:34:33 +01:00
Bartosz Dunajski
29f74a1a98
Rename cmake GEN variables
...
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com >
2021-11-24 14:42:57 +01:00
Kamil Kopryk
78a350494b
Fix typo
...
Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com >
2021-11-09 11:44:11 +01:00
Mateusz Hoppe
5d4771a31b
Add param to print number of tests
...
Related-To: NEO-6407
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com >
2021-11-05 15:57:04 +01:00
Kamil Kopryk
f1e839bda2
Add ocloc ults
...
Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com >
2021-11-05 11:30:27 +01:00
Mateusz Jablonski
21ef249961
Move ocl extensions logic to shared
...
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2021-11-04 17:38:15 +01:00
Kamil Kopryk
03540d5301
Refactor per platform extra settings in ocloc
...
Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com >
Related-To: NEO-6382
2021-10-28 16:24:12 +02:00
Dominik Dabek
9ce0f4d0c3
Do not append null char to build log
...
Related-To: NEO-5989
Signed-off-by: Dominik Dabek <dominik.dabek@intel.com >
2021-10-14 20:59:11 +02:00
Mateusz Hoppe
02d8b3a024
Fix ocloc options parsing
...
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com >
2021-10-12 13:02:13 +02:00
Mateusz Hoppe
b420bc6102
Revert "Fix ocloc options parsing"
...
This reverts commit ef7a6763cb3e7389542a818e58b3c200b178bc46.
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com >
2021-10-08 13:20:16 +02:00
Kamil Kopryk
cfc673b77c
Add compilerHwInfoConfig
...
Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com >
Related-To: NEO-6237
2021-10-06 21:27:34 +02:00
Mateusz Hoppe
8fd49c4e7c
Fix ocloc options parsing
...
"-g" in the middle of another option should not be parsed
as "-g"
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com >
2021-10-06 15:57:53 +02:00
Pawel Cieslak
4e4218e3cc
Add flag for disabling kernel compilations
...
Related-To: NEO-6012
Signed-off-by: Pawel Cieslak <pawel.cieslak@intel.com >
2021-09-23 00:02:26 +02:00
Artur Harasimiuk
b505bcdf79
move custom event listener to shared
...
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com >
2021-09-20 16:46:50 +02:00
Kamil Kopryk
9293c9b676
Use isMidThreadPreemptionSupported helper in compiler interface
...
Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com >
2021-09-09 18:17:09 +02:00
Krystian Chmielewski
73264c65d4
Ocloc return success when returning help
...
Signed-off-by: Krystian Chmielewski <krystian.chmielewski@intel.com >
2021-08-19 07:43:16 +02:00
Mateusz Jablonski
0e30ac71bd
Ocloc: add support for hexadecimal input of revision_id
...
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2021-08-11 11:31:29 +02:00
Fabian Zwolinski
b5d222f6cb
Add query option description to help
...
Related-To: NEO-6031
Signed-off-by: Fabian Zwolinski <fabian.zwolinski@intel.com >
2021-08-10 13:33:26 +02:00
Krystian Chmielewski
75f8fbf82e
Refactor ocloc query
...
Signed-off-by: Krystian Chmielewski <krystian.chmielewski@intel.com >
2021-08-06 14:12:45 +02:00
Bartosz Dunajski
714a1ebf53
Improve ocloc tests
...
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com >
2021-07-19 18:24:17 +02:00
Bartosz Dunajski
bec8cdd6f1
Update XE_HP_CORE files to enable unit tests
...
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com >
2021-07-08 18:41:41 +02:00
DmitryBushev
9e18416098
Add interface to extract versioning info
...
Appened ocloc interface with new 'query' feature.
Using this feature now one can extract HEAD hash and version of neo.
Signed-off-by: Bushev, Dmitry <dmitry.bushev@intel.com >
2021-06-29 13:17:15 +02:00
Filip Hazubski
b3283a4490
When initializing gtSystemInfo initialize DualSubSliceCount
...
Signed-off-by: Filip Hazubski <filip.hazubski@intel.com >
2021-06-01 14:52:19 +02:00
Artur Harasimiuk
c13dcbd143
improve test output to differentiate between ULT and AUB
...
Related-To: NEO-5901
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com >
2021-05-27 23:59:54 +02:00
Dominik Dabek
d0cb27226f
Move mocks: cif, gmm context, compilers
...
Related-To: NEO-5161
Signed-off-by: Dominik Dabek <dominik.dabek@intel.com >
2021-05-27 12:51:28 +02:00
Szymon Morek
ab52c70233
Change builtin kernels compilation process
...
.bin and .gen files for builtin kernels are generated per revision now
Resolves: NEO-5821
Signed-off-by: Szymon Morek <szymon.morek@intel.com >
2021-05-25 11:30:52 +02:00
Dominik Dabek
a5d38170ad
Move some shared tests to shared
...
Tests that are not specific to openCL or level zero
Related-To: NEO-5161
Signed-off-by: Dominik Dabek <dominik.dabek@intel.com >
2021-05-18 13:51:18 +02:00
Adam Cetnerowski
cef20f5d88
ULT renaming: Offline Compiler tests
...
Related-To: NEO-2236
Signed-off-by: Adam Cetnerowski <adam.cetnerowski@intel.com >
2021-05-18 10:34:17 +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
Kacper Nowak
e5a1d33a2b
Fix ocloc fatbinary for better gen/sku detection
...
Signed-off-by: Kacper Nowak <kacper.nowak@intel.com >
2021-04-26 12:10:03 +02:00
Kacper Nowak
f30fb9126a
Add -cl-kernel-debug-enable internal option when -g is passed to ocloclib
...
Signed-off-by: Kacper Nowak <kacper.nowak@intel.com >
2021-04-14 16:25:42 +02:00
Mateusz Hoppe
8f6b90d891
Fix expected string in ocloc test
...
- device id should be based on deviceProductTable
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com >
2021-04-07 14:29:50 +02:00
Kacper Nowak
6fe71e835b
Autodetect device type based on provided device ID in ocloc
...
Signed-off-by: Kacper Nowak <kacper.nowak@intel.com >
2021-04-06 12:04:13 +02:00
Artur Harasimiuk
cee785f8a1
ocloc refactor
...
Related-To: NEO-5538
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com >
2021-03-29 14:48:29 +02:00
Kacper Nowak
260f7e37cb
Add device product table based on device_base file for ocloc use
...
Signed-off-by: Kacper Nowak <kacper.nowak@intel.com >
2021-03-26 09:21:52 +01:00
Mateusz Hoppe
66f4c75aea
Adding DisableDeepBind debug flag
...
Related-To: NEO-4946
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com >
2021-02-23 19:19:24 +01:00
Pawel Cieslak
8a700c5187
Move non-ult shared files to single directory
...
Add SKIP_SHARED_UNIT_TESTS flag
Related-To: NEO-5201
Signed-off-by: Pawel Cieslak <pawel.cieslak@intel.com >
2021-02-10 21:03:13 +01:00
Konstanty Misiak
46ece15e09
Force ocloc cmdline log after fail even if -q option specified
...
Related-To: NEO-4784
Signed-off-by: Konstanty Misiak <konstanty.misiak@intel.com >
2021-02-10 11:33:22 +01:00
Filip Hazubski
5d922eea75
Add __IMAGE_SUPPORT__ option when compiling without device
...
Signed-off-by: Filip Hazubski <filip.hazubski@intel.com >
2021-01-20 18:50:02 +01:00
Filip Hazubski
65aecc84f1
Add __IMAGE_SUPPORT__ option for compilation
...
Signed-off-by: Filip Hazubski <filip.hazubski@intel.com >
2021-01-19 16:21:57 +01:00
Krystian Chmielewski
db371ab6b9
Ocloc compile: return zebin format as is
...
If igc returns a zebin format ocloc should return it as it is.
2021-01-13 14:09:35 +01:00
Bartosz Dunajski
646b551da0
Helper to override platform name
...
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com >
2021-01-13 11:22:44 +01:00
Mateusz Jablonski
5a5ad64f5d
Ocloc compile: support gen families exposed in help
...
fix typo in method name
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2021-01-11 19:11:56 +01:00