Mateusz Jablonski
900818b8fd
CMake: refactor compiling test kernels
...
Change-Id: I50b75a06fa8d3de4e79ad24623738fa582f8f122
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2019-11-08 10:28:27 +01:00
Jaroslaw Chodor
90e5cf164c
Moving hash and file_io to core
...
Change-Id: I1e6eece53fadf62a8919aa41e04deee3dac2ce60
2019-10-17 13:16:20 +02:00
Chodor, Jaroslaw
856e5c6aaf
[1/N] compiler interface refactor
...
Decouple compiler interface from Program object
Change-Id: Ibd63c6eee01d85527318ccad52e52f5487d3402e
2019-10-16 16:17:13 +02:00
Mateusz Jablonski
79e7a51908
CMake: rename IGDRCL_SOURCE_DIR to NEO_SOURCE_DIR
...
use NEO_SOURCE_DIR instead of CMAKE_SOURCE_DIR
Change-Id: Ib3774c80147941ded6bc884d83407461c89e7b8e
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2019-10-14 12:18:50 +02:00
Mateusz Jablonski
e4ed7e7f12
CMake: add IGDRCL_SOURCE_DIR to prefixes in create_project_source_tree macro
...
Change-Id: I0fceeab0b42fe58ec92fbaaa4b4704c0b2344647
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2019-10-10 16:08:21 +02:00
Jobczyk, Lukasz
882a216688
Move Debug helpers to the core dir
...
Related-To: NEO-3677
Change-Id: I2c98595190fadfa8ffd9e378e774c0d4485cbf9e
Signed-off-by: Jobczyk, Lukasz <lukasz.jobczyk@intel.com>
2019-09-05 16:00:35 +02:00
Piotr Fusik
2548bea71d
Minor clean-up.
...
Change-Id: Id1523930fc8aedf85506e254c67f6b1ca8dd020d
Signed-off-by: Piotr Fusik <piotr.fusik@intel.com>
2019-07-30 11:53:20 +02:00
Filip Hazubski
55a1ddab39
Keep platform types in a list
...
Related-To: NEO-3503
Change-Id: I7216d7a5088b0a18aebdedc386208ec398bae5ef
Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
2019-07-24 15:15:47 +02:00
Mrozek, Michal
fe26b0b406
Move debug_manager_state_restore.h to core.
...
Change-Id: I3ef4a1aec40efa4bbc8346a5b517336c42c06519
Signed-off-by: Mrozek, Michal <michal.mrozek@intel.com>
2019-07-15 17:21:38 +02:00
Mrozek, Michal
a0d98f698c
Move printCallStack to core.
...
- Move captureCallStacks as well.
- Delete always true printMemoryOpCallStack from code.
Change-Id: I46a4b1727c31b8f147d5151371c3d1a76657873b
Signed-off-by: Mrozek, Michal <michal.mrozek@intel.com>
2019-07-15 15:35:38 +02:00
Krystian
3f76ab4469
ocloc help cleanup
...
Change-Id: Iaae89f0805d4cbb55f2d5bc261ede2823de7bd71
2019-07-03 15:19:23 +02:00
Chodor, Jaroslaw
2f42f332d8
Adding support for kernel disasm using IGA
...
Change-Id: Ic75540c9b42913f5d12d66438cc4e6dcc39ceb98
2019-06-28 12:18:20 +02:00
Chodor, Jaroslaw
2e5ef30009
ocloc - checksum recalculation during reassembly
...
Resolves: NEO-2696
Change-Id: I2c049ac511e437679df9b58d00e4fb8d995bbe3e
2019-06-19 09:57:04 +02:00
Chodor, Jaroslaw
d3ed744c1b
Minimalistic kernel dump in ocloc
...
Resolves: NEO-2118
Change-Id: I7358ad991621114e287b1851cfce6254c76b63c1
2019-06-14 13:50:11 +02:00
Chodor, Jaroslaw
425dad30d0
Improving ocloc robustness
...
* don't load FCL if not needed
* don't fail because of patchtokens
* print-out incompatible interfaces
Change-Id: I9c06dc27aa4495a3cd103e7dedf1bb5dd411a5db
2019-06-12 10:38:16 +02:00
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
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
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
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
Kamil Diedrich
e2092d29ff
Fix for receiving appropriate tokens during builtin compilation
...
Change-Id: I5f73bd95bbbd0e2b59dcc85beebd3d1ee205782a
2019-01-17 14:31:29 +01:00
Cetnerowski, Adam
d46969a7f2
Rename offline compiler: cloc -> ocloc
...
Change-Id: I0595bac4c7266e77bd2ee17588694233547c8315
2018-11-21 13:31:47 +01:00
Krystian
5b9f5a6d9e
OCLDecoder PatchListSize fix
...
Change-Id: I8e4f809464b88d06ff4b5611888f1e6965aa4f19
2018-11-16 21:01:28 +01:00
Koska, Andrzej
53e7cea404
Revert commit 8c43332f53
.
...
Change-Id: I2387d0f437bf87b684165fc045a4e3bb0df6e48e
2018-11-13 13:16:16 +01: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
Koska, Andrzej
8c43332f53
Temporary WA for getcwd
...
This reverts commit df6cd7e7d8
.
Change-Id: I360c44ebaef5d74368ee63cb4d98858e646238bf
2018-09-10 16:31:53 +02:00
Koska, Andrzej
df6cd7e7d8
Revert "Temporary WA for getcwd"
...
This reverts commit 966b979f989e5de7dce2fd4c5f6ddcf28b327f37.
Change-Id: Ic374d7c260e1fe81df9bdbe03e300f617c07e45a
2018-09-10 14:38:16 +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
Dunajski, Bartosz
117a7d15ad
Aux translation [2/n]: Add new builtins
...
Each Kernel arg for aux translation needs to have own builtin kernel.
This is required to build MultiDispatchInfo before copying into SSH
Change-Id: I4b2f42518cf06bb31c31fd5f83f7da927bde99c3
2018-08-10 18:24:21 +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
Koska, Andrzej
541ea73e19
Temporary WA for getcwd
...
Change-Id: Icf480eda830210dfff505a040cb2a3b0d6a78f67
2018-08-03 10:47:56 +02:00
Chodor, Jaroslaw
b83696c1b0
Changing cloc tests to accept SpirV as IR
...
Change-Id: Ia12d3f144711bd7af639869d28d1e4a1fa80bb15
2018-07-31 13:39:01 +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
Mrozek, Michal
92266e4ad1
Disable stateless to statefull with offset optimization on BDW.
...
- BDW doesn't support this optimization
Change-Id: Ic88556214c8d9a14ddb093b7c25587575e616f83
2018-07-10 17:49:55 +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
Artur Harasimiuk
75ab0c6fe1
Switch clang-format to 6.0
...
Change-Id: Id96d1f47fb3d479d10d1022f1259dc030a148192
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
2018-06-14 09:45:00 +02:00
Mateusz Jablonski
09e4dab4f6
Create os specific thread implementation
...
Change-Id: I267d6cb021a75713c28a7bbf29384da13d2a7217
2018-05-23 17:27:31 +02:00
Artur Harasimiuk
10e5b71111
dependencies cleanup
...
move gmock/gtest to third party
Change-Id: I96b43a3de2b6f2151659a9b2eed27eb58db5ce48
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
2018-05-11 15:04:45 +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
Mateusz Jablonski
180de340d8
Define variable with binary name suffix
...
use this variable in tests as it is set once in main.cpp
create function to get binary kernel filename
Change-Id: Ibf7b4c2d390caefda4a5d7fc4667006e7f2edde8
2018-04-25 15:34:34 +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