Commit Graph

60 Commits

Author SHA1 Message Date
Marcin Naczk ce8d24d124 Add multi command line option for ocloc
- now ocloc is able to make multi build, all options and parameters
of build are listed in separate .txt file, each line in this file
is new build.

Change-Id: Id74af826e8c1a4fe14c46ed6024efe2041a22fd0
Signed-off-by: Marcin Naczk <marcin.naczk@intel.com>
2019-05-20 16:02:20 +02:00
Artur Harasimiuk 061b436e7f cpack: don't build package when dll build is disabled
Change-Id: I63b807d33ed1cddccdb485b41ea2a2176a611190
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
2019-05-16 10:42:21 +02:00
Dunajski, Bartosz 0f87e9aa1a Rename HardwareInfo members
Change-Id: I85f56b677bafdd75dd958b488522393fc18b68af
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
2019-05-09 09:13:55 +02:00
Dunajski, Bartosz bb80d327c7 Move HardwareInfo ownership to ExecutionEnvironment [1/n]
Change-Id: I5e5b4cc45947a8841282c7d431fb69d9c397a2d4
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
2019-05-08 16:11:01 +02:00
Mateusz Hoppe d106980df6 ocloc: allow options to be used when using spirv input
Related-To: NEO-3128

Change-Id: Ib46e17003c81aff0cec23273674b639b9572c80f
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2019-04-29 14:58:57 +02:00
Maciej Dziuban 0b5f810142 Do not print error messages from BinaryEncoder/BinaryDecoder in tests
Change-Id: I45d339c233f9a45724db8d84bf5c5bd66233dcab
Signed-off-by: Maciej Dziuban <maciej.dziuban@intel.com>
2019-03-29 09:09:38 +01:00
Piotr Fusik d4a0c4852b Move EngineType to aub_stream.
Change-Id: Ieaa75aaf4aca4487833754eb38ff709adcbf0f11
Signed-off-by: Piotr Fusik <piotr.fusik@intel.com>
2019-03-27 10:06:29 +01:00
Maciej Plewka 9e52684f5b Change namespace from OCLRT to NEO
Change-Id: If965c79d70392db26597aea4c2f3b7ae2820fe96
Signed-off-by: Maciej Plewka <maciej.plewka@intel.com>
2019-03-26 15:48:19 +01:00
Artur Harasimiuk 04c2064382 do not copy compiler libraries during build
Instead of doing copy we can use LD_LIBRARY_PATH and use files from
original location

Change-Id: I3e936370da6a29fbeb00bdb4b324c13572e5ba47
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
2019-03-11 11:58:11 +01:00
Filip Hazubski 8b57d28116 clang-format: enable sorting includes
Include files are now grouped and sorted in following order:
1. Header file of the class the current file implements
2. Project files
3. Third party files
4. Standard library

Change-Id: If31af05652184169f7fee1d7ad08f1b2ed602cf0
Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
2019-02-27 11:50:07 +01:00
Artur Harasimiuk 86b4892388 don't use sanitizer when building ocloc
Change-Id: I910802b95e338414300f1b307444331801f3c87a
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
2019-02-20 09:28:54 +01:00
dongwonk 7ff379f8f3 ocloc returns error message for missing library
add error log in case libigdfcl is missing

Change-Id: I578ac5f24b9fd67e57bb23fcd6771cc822b225b9
Signed-off-by: dongwonk <dongwon.kim@intel.com>
2019-02-18 12:16:27 +01:00
Hoppe, Mateusz cb37f2a779 Add /we4189 switch to CMAKE_CXX_FLAGS for MSVC.
- treat unused local variables warnings as error in Debug

Change-Id: I2da08b72e0f0083d3cdf932fbf92ef4981a88615
2019-02-08 12:06:04 +01:00
Kamil Diedrich e2092d29ff Fix for receiving appropriate tokens during builtin compilation
Change-Id: I5f73bd95bbbd0e2b59dcc85beebd3d1ee205782a
2019-01-17 14:31:29 +01:00
Maciej Plewka 9e81469d9f Disable debug keys for ults
Change-Id: I7f69a770b21a741b5ff79e735c26d988d2b83aab
Signed-off-by: Maciej Plewka <maciej.plewka@intel.com>
2018-12-19 12:30:03 +01:00
Cetnerowski, Adam d46969a7f2 Rename offline compiler: cloc -> ocloc
Change-Id: I0595bac4c7266e77bd2ee17588694233547c8315
2018-11-21 13:31:47 +01:00
Krystian 546afdf7f0 OCL Encoder retVal fix
Change-Id: I679ca3b12b5472b58358d89ead53c0889ed01234
2018-11-21 10:00:43 +01:00
Krystian 5b9f5a6d9e OCLDecoder PatchListSize fix
Change-Id: I8e4f809464b88d06ff4b5611888f1e6965aa4f19
2018-11-16 21:01:28 +01:00
Artur Harasimiuk a3ceaf8dd4 cloc: don't crash when no arguments given
Change-Id: I183577d3c3c5a9f614ed9ab161025376fa5e7ce0
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
2018-10-25 21:35:44 +02:00
Pawel Wilma 17a0a7ecb8 Append internal options from file instead of replace
Change-Id: Ic3353e95b71e6227a9dda2afc7d940d8cd0575e2
2018-10-17 13:55:30 +02:00
Krystian 526a3a664b Adding new tool for decoding and encoding OCL binary.
Decoder decodes the binary to kernel heaps and patch token data, which
is in a human readible form. Encoder encodes it back to binary form.

Change-Id: Id07b1294ba24360e90c824171741cf14bd43cfad
2018-10-05 12:18:18 +02:00
Cetnerowski 17fe3e740e Cloc: correctly handle nonexistant platform
Change-Id: I85a81c10dc101e8af68dd4c52c7f604d563c4396
Signed-off-by: Cetnerowski <adam.cetnerowski@intel.com>
2018-09-26 06:02:46 +02:00
Artur Harasimiuk 40146291ad Update copyright headers
Updating files modified in 2018 only. Older files remain with old style
copyright header

Change-Id: Ic99f2e190ad74b4b7f2bd79dd7b9fa5fbe36ec92
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
2018-09-20 18:02:35 +02:00
Katarzyna Cencelewska 962b6ce883 Add support for cl-gl sharing
Change-Id: I08d7608722746baa3be61846e05eecb5419cc136
2018-09-18 11:18:46 +02:00
Kamil Diedrich d3d8b6f905 change ARRAY_COUNT macro to constexpr
Change-Id: I027c4e70e3b901f3ffb3c0971935ae67e971db07
2018-08-14 10:04:58 +02:00
Chodor, Jaroslaw 29794db9d9 Refactor cloc UTLS - use inititializer list
Using initializer list instead of C array

Change-Id: I0520fc8f782347b884b6134208e6b6edaea532dd
2018-08-13 13:10:46 +02:00
Chodor, Jaroslaw 59365ab854 Fix for cloc binary input
Cloc was truncating binary input
at first 0.

Change-Id: I10e3c9dbbfb56fedfa768e19fdf4e7c71bc47dd1
2018-08-13 11:05:18 +02:00
Kamil Diedrich 8226269bbe Reimplementation of Elf Writer
- remove is_initialize pattern
- add RAII
- replace dynamic arrays with std::vector<char>
- use fixed width integer types
- remove c-style casting
- reducing the number of code checks
- add camelCase style

Change-Id: If24a595f03865c59c86fed29db280de0084b5663
2018-08-07 17:35:39 +02:00
Chodor, Jaroslaw 02216e198d Adding spirv to cloc
cloc will now accept spirv as input
when spirv_input command line argument
is present

Change-Id: Iaca88e1bd11ec2e4b2bfbac3e372ba97fa7efc8e
2018-08-07 14:08:34 +02:00
Chodor, Jaroslaw c2454d5aa2 SpirV improvements
* Use preferredIR form compiler
* Allow .spv test files instead of .bc

Change-Id: Ia1a693be52b7391896378fbe159be85f4e7a00c1
2018-07-31 00:26:52 +02:00
Kamil Diedrich 282f335269 elflib reimplementation - initial commit
Includes:
-add explicit definition of enum types
-replace NULL for nullptr
-add namespace for constants
-replace c-style casting
-add SH_FLAG_NONE for consistency

Change-Id: I3eb8d26cc6b549e91a940ae0d3c095a9f96785f2
2018-07-26 14:03:35 +02:00
Chodor, Jaroslaw b490a1331b Refactoring/preparation for preferred IR from FCL
NEO will be querying FCL for preferrerd IR
(intermediate representation) instead of
using llvm bc.

Change-Id: I98316b5623557a9651da2a4c5e610ab26421c491
2018-07-18 16:49:29 +02:00
Hoppe, Mateusz e437589ace Add callstack printing to cloc
- callstack is printed when SEH / SigSegv / SigIll is raised

Change-Id: I4bddd1208351027ee67fc6bae2404a90022373c7
2018-07-05 14:40:56 +02:00
Stefanowski, Adam ded1a445f8 Group gen specific small cpp files together part 3
Change-Id: Id49acae4f9748a1db51c1a4051992269e21f1048
2018-06-11 15:46:55 +02:00
Stefanowski, Adam 604b04b5cd Group gen specific small cpp files together part 1
Change-Id: I554caee03f0abcb069fe38c6092c33b5f9eb04f9
2018-05-30 10:41:57 +02:00
Stefanowski, Adam c2368739ce add gen suffix for each gen files
Change-Id: Ie00e23fc6a7abf2114e62f70d66a07beaed2b502
2018-05-21 15:00:47 +02:00
Mateusz Jablonski abbc0a5471 Compile kernels per platform type (core/lp)
compiled kernels are in (binary dir)/(family name with type) folder

Change-Id: Ied1827ab7f4ecc5c1de4c3535b1c0ba3b5cd86ee
2018-04-26 16:47:15 +02:00
Artur Harasimiuk 5fbdad88c6 refactor config.h usage
- add defines to command line
- remove most occurences of include "config.h"

Change-Id: I19d65d83c895fc6143d319d057a50e5ae3e78830
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
2018-04-26 10:02:15 +02:00
Hoppe, Mateusz efda64eb4a Source Level Debugger - debugger library interface
- interface to debugger dynamic library
- code is included when source level debugger header exists,
otherwise implementation is exluded from build
- unit tests do not load real dynamic library,
instead test version (DebbugerLibrary) of OsLibrary is used.

Change-Id: Id3229c77963352e8001043ee41b7d48c6b180a59
2018-04-23 11:31:37 +02:00
Hoppe, Mateusz 81362d5b7d Source Level Debugger: add generating debug data in cloc
- generate debug data to .dbg file in cloc
- generate debug kernel for ults with "-g" option
in addition to "-cl-kernel-debug-enable"
- append "-g" option for compilation and build of
programs with kernel debugging enabled to make
compiler generate debug data

Change-Id: I09401f84be6e09da167194a44d1b9a7f2bfb622d
2018-04-18 17:14:15 +02:00
Hoppe, Mateusz 320f456816 Add reading internal options from file to cloc
- if no options are passed try to read options
and internal options from text files.
- refactor code for reading from file.

Change-Id: I608c70f3afe77a4e4845fe1c96cc9d31464c6122
2018-03-27 18:06:14 +02:00
Mateusz Jablonski e3b1ba2112 Cmake refactor part 21
Add macro to simplify iteration for gens, platforms and test configs
Common usage:
1. Write macro "macro_for_each_platform", you can use variables:
   GEN_TYPE, GEN_TYPE_LOWER, PLATFORM_IT, PLATFORM_IT_LOWER
2. Write macro "macro_for_each_gen", you can use variables:
   GEN_TYPE, GEN_TYPE_LOWER
3. In macro "macro_for_each_gen" call "apply_macro_for_each_platform"
4. Call "apply_macro_for_each_gen" with gen type (SUPPORTED/TESTED)

When needed iterate over test configurations:
1. Write macro "macro_for_each_test_config", you can use variables from
   parent macro and SLICES, SUBSLICES and EU_PER_SS
2. In macro "macro_for_each_platform" call "apply_macro_for_each_test_config"
   with specified type (AUB_TESTS/MT_TESTS/UNIT_TESTS)

Change-Id: Icd537f409a224a1ffade1874065f8fee66189350
2018-03-26 17:51:34 +02:00
Koska, Andrzej dd21164b3e Adding the last character in a null terminated string
Change-Id: I4a9cad0974c8b9f1474e79e5c3d78b88dd4b004c
2018-03-26 16:45:22 +02:00
Zdanowicz, Zbigniew 029094437a Change identification of gen families from number to type
Change-Id: I780528aeb2572fc95d8cd9a20eba26687156726b
2018-03-21 19:22:46 +01:00
Cetnerowski, Adam e746081403 Offliner compiler - refactor help
Change-Id: Ie9514ea3aedb208bc653f29fe96e4b71003807fd
2018-03-21 15:09:40 +01:00
Cetnerowski, Adam 214b407353 Offline compiler - fix typo in help
Change-Id: I66d1fd899d351b3f89c610b04737893d106ae296
2018-03-20 20:19:13 +01:00
Hoppe, Mateusz cc6fa3d1e1 Kernel source debugging support 1/n
- new patch token
- program debug compilation flag
- sip kernel new methods for querying bti and debug
surface size

Change-Id: Icaddd15f269c4b76efdf926f2e346aa61cbaae02
2018-03-13 08:01:29 +01:00
Hoppe, Mateusz 3f5a56ac1c Adding "-internal_options" to cloc
- new parameter for passing internal options string
to compiler

Change-Id: I4eb75922a079eb5dcffbd3bf83141cf42a4d2830
2018-03-09 13:21:18 +01:00
Hoppe, Mateusz 8d5e099aa3 Adding "output" option to cloc for output filename
- instead using input filename for output files,
use name passed as an option.

Change-Id: Ibfa35b1d48d1b92dcfa67c5d59d9ea6a3c2e7639
2018-03-09 09:35:02 +01:00
Mateusz Jablonski 8c8b47026d Cmake refactor part 13
Cleanup offline_compiler/CMakeLists.txt
Cleanup unit_tests/offline_compiler/CMakeLists.txt

Change-Id: I1f4a2384ca64abd068b30a33ec643fa294ebaae3
2018-03-08 21:39:34 +01:00