Commit Graph

137 Commits

Author SHA1 Message Date
Jaroslaw Chodor
102bceb4c9 Adding bindless compilation toggles
Change-Id: I35e37e9319a660fe0e4588f7abdc821557948b18
2019-11-28 15:23:24 +01:00
Filip Hazubski
5bed747e33 Update Program::extractInternalOptions
Change-Id: Ie67a8ef7b6f010a44b252666e9d9ef48fdeac9e0
Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
2019-11-28 15:04:28 +01:00
Pawel Wilma
472a75912d Return error code from submit() to application.
Related-To: NEO-3741

Change-Id: I0e0ff6606eb6a8a77673949955c8e799689017b6
Signed-off-by: Pawel Wilma <pawel.wilma@intel.com>
2019-11-26 12:42:47 +01:00
Jaroslaw Chodor
355e8d3e5a [1/N] Program refactor - decouple from patchokens
Change-Id: I63bbf6c31a5db9e788124f22b6105e65c16c86d4
2019-11-25 19:46:21 +01:00
Igor Venevtsev
8ef1466a15 Add UNRECOVERABLE_IF to check device is not a nullptr
- allocateGlobalsSurface()

Change-Id: Ie6dbcb85228dfd99b65c12d13ad631e2079e79e1
Signed-off-by: Igor Venevtsev <igor.venevtsev@intel.com>
2019-11-25 14:56:41 +01:00
Mateusz Jablonski
e7ee6daaa0 Remove runtime/gen_common from include paths
Change-Id: I4d1f9e64e0f4099e7903234e62b070ad4235347a
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2019-11-19 13:37:34 +01:00
Igor Venevtsev
63fd26f6d6 Always specify rootDeviceIndex for graphics memory allocations
Related-To: NEO-2941

Change-Id: Ia2362fd6b4e72ede02919152475f40b3edbc3658
Signed-off-by: Igor Venevtsev <igor.venevtsev@intel.com>
2019-11-15 15:14:41 +01:00
Filip Hazubski
5f021afd6d Move HwHelper to core directory
Change-Id: I2c78a8b737ee8e61b917b4918da37e77bbd9fe34
Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
2019-11-15 14:06:40 +01:00
Jaroslaw Chodor
cab8968e1a Fixing regression in rebuildFromIr
Change-Id: If1604861180d935575cd06fb2978df114453a070
2019-11-02 21:52:16 +01:00
Maciej Plewka
51dcf2b6d2 add support for packed simd1 dispatch
Change-Id: I3f2bf8e62e0a38d358fb87f02c88c387c874f6b3
Signed-off-by: Maciej Plewka <maciej.plewka@intel.com>
2019-10-28 11:58:25 +01:00
Jaroslaw Chodor
28464ab2d4 [N/N] compiler interface refactor - move to core
Change-Id: I029e3cd7a6adde9df97a0a7760ecbf5d25d8f501
2019-10-22 19:14:09 +02:00
Jaroslaw Chodor
8ec7e45bff [2/N] compiler interface refactor (spir/spirV fix)
Fixing regression in spir/spirV scenarios

Resolves: NEO-3854, NEO-3852, NEO-3845, NEO-3851, NEO-3844

Change-Id: Ifee7f1847c7f6598428f96ae2241b3d85e58ad11
2019-10-20 20:26:10 +02:00
Daria Hinz
2196f7e216 Move ElfLib to core
Change-Id: I57987e871aac9c72dc786661c1d24f5024dd367b
Signed-off-by: Daria Hinz <daria.hinz@intel.com>
2019-10-18 08:31:12 +02: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
Artur Harasimiuk
7864c03b0a clang-tidy cleanup
Related-To: NEO-3676
Change-Id: I538c4ee3a370a71a7e470a441cd101c9ed1b285d
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
2019-10-15 19:55:43 +02:00
Jobczyk, Lukasz
419916f1b4 Add debug variable to measure processGenBinary execution time
Related-To: NEO-3773

Change-Id: I79df8e6639ce775329307f4bfb25cbac5606e8c3
Signed-off-by: Jobczyk, Lukasz <lukasz.jobczyk@intel.com>
2019-10-08 13:07:27 +02:00
Jobczyk, Lukasz
3bd4baeba3 Move a unified memory manager to the core dir
Related-To: NEO-3677

Change-Id: Ib60dea2bcaaf5feea97d61cb9f54baee4c6b4b64
Signed-off-by: Jobczyk, Lukasz <lukasz.jobczyk@intel.com>
2019-09-27 10:46:35 +02:00
Kamil Diedrich
115070767c Move graphics_allocation to core folder
Change-Id: I16b8dbb57c2a40126826a232332c18ba9f563220
2019-09-18 05:26:55 +02:00
Dunajski, Bartosz
9d6dcd6fff Use Kernels maxKernelWorkGroupSize to compute WG size
Change-Id: I947b5612f36cd2437e1ead98712c914ffe4b5b15
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
2019-09-17 08:39:05 +02:00
Mateusz Jablonski
9c200530c8 Remove not needed inclusions of device.h
Change-Id: Idfd8122592f58539a569143146443c08a18dace9
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2019-09-09 15:05:29 +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
Mrozek, Michal
3f433baf38 Force stateless compilation for builtins path.
Change-Id: I8ee826fdcc455a3770fa54ee635aaeff62ee35e6
Signed-off-by: Mrozek, Michal <michal.mrozek@intel.com>
2019-09-05 13:07:21 +02:00
Mrozek, Michal
46b3012eb5 Force stateless compilation when device supports shared system memory
Change-Id: I8e11ef82baf010a9a400bc9d733b8ec37a9fbb21
Signed-off-by: Mrozek, Michal <michal.mrozek@intel.com>
2019-09-05 12:34:32 +02:00
Mrozek, Michal
a54dcd98b3 Register cache flushes when ISA allocation is destroyed.
- when ISA is being destroyed , check what are the users of it and register
instruction cache flushes there.
- For subsequent enqueue commands this would result in properly flushed
instruction cache.

Change-Id: I3791cd77ee42da9f87508c64a65cdc6238950858
Signed-off-by: Mrozek, Michal <michal.mrozek@intel.com>
2019-08-28 14:15:19 +02:00
Mateusz Jablonski
18982bd016 Move memory for slm window to memory manager
remove redundant methods from MockDevice

Related-To: NEO-3007

Change-Id: I9cc819b9c9118dbb667f5bf87d1bf15787f9b67f
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2019-08-28 12:09:17 +02:00
Jim Snow
4360aff03c Move runtime/helpers/aligned_memory.h to core/helpers
Signed-off-by: Jim Snow <jim.m.snow@intel.com>
Change-Id: I15de094c51d4eb18bfff4d17fd34e817b5525fda
2019-08-06 23:56:24 +02:00
Mrozek, Michal
926c7a2a97 Detect read only for arguments with const qualifier.
- This will catch __global const *int allocations as read only.

Change-Id: I0d128ba7c31d476d1f144233e1c3dec370f9f550
Signed-off-by: Mrozek, Michal <michal.mrozek@intel.com>
2019-08-01 10:16:58 +02:00
Mrozek, Michal
c9e25a0faf Mark constant arguments as read only in kernel argument info.
Change-Id: Icf49d9da060a144bc73e580ab77245e580e4812d
Signed-off-by: Mrozek, Michal <michal.mrozek@intel.com>
2019-07-31 12:57:35 +02:00
Piotr Fusik
dcd8728519 Use range-based for.
Change-Id: I758f6d5fcbf75baae454dedc9467532bc0b8c9d5
Signed-off-by: Piotr Fusik <piotr.fusik@intel.com>
2019-07-30 07:57:43 +02:00
Maciej Dziuban
81035485c1 Validate return value of getSVMAlloc()
Change-Id: I02ad5874fa40756f200f48c26588d7a6f72c65c9
Signed-off-by: Maciej Dziuban <maciej.dziuban@intel.com>
2019-07-26 07:14:55 +02:00
Zdunowski, Piotr
1460713d69 Fail build program if local mem size is higher then device capabilities.
Resolves: NEO-3411

Change-Id: I04e0b97bfeb9e66e4ea730a15e0c6bfd764cab62
Signed-off-by: Zdunowski, Piotr <piotr.zdunowski@intel.com>
2019-07-22 17:48:23 +02:00
Kamil Kopryk
7e404e79ff Add support for unrestricted buffer sizes.
Change-Id: Ib32164cad623da46c5424feca74a140b39eb9a2c
Related-To: NEO-3314
Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com>
2019-07-22 14:44:19 +02:00
Raiyan Latif
ca74489172 Move string.h to core helpers
Change-Id: Ibaaab077ef2867b5e0db3bd215c261de9294063f
Signed-off-by: Raiyan Latif <raiyan.latif@intel.com>
2019-07-19 07:21:00 +02:00
Chodor, Jaroslaw
22c22f75d5 Relocations fix
Don't touch isa allocations if relocations are not needed

Change-Id: Ie0a5d656fb8db31b0d2f24627a5a675aaaf91bd5
2019-07-17 19:19:43 +02:00
Piotr Fusik
a141911e19 Correct misspelled identifiers.
Change-Id: Ifa629c0d6bb1b04b5cfde908f2672ef1843043f0
Signed-off-by: Piotr Fusik <piotr.fusik@intel.com>
2019-07-17 17:45:52 +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
Chodor, Jaroslaw
ab74b606e9 Fixing regression in progvar_prog_scope_init
Change-Id: I20424ce9e0c9a295bb8b9d5608252c3d4802e9da
2019-07-12 16:51:39 +02:00
Mrozek, Michal
0440b86d05 Rename SVM Memory Manager to Unified Memory Manager.
Change-Id: I1d7637a5aaca3ef5190c4f6303c81060f95744a9
2019-07-12 11:22:09 +02:00
Chodor, Jaroslaw
ce061a48ef Support for symbol/relocation tables
Change-Id: I87890f6dc36a3454ffdcab1fb9d070fdaf91e689
2019-07-10 16:51:43 +02:00
Mrozek, Michal
c093f27888 Wire in support for compiler passed work group order.
- Also add a support to state that values were passed.

Change-Id: I80006dd16984feb96dce1ac909153c191f9831cd
Signed-off-by: Mrozek, Michal <michal.mrozek@intel.com>
2019-07-02 08:18:41 +02:00
Mateusz Jablonski
223b998d92 Handle PATCH_TOKEN_MEDIA_VFE_STATE_SLOT1 patch token
Related-To: NEO-3190

Change-Id: I3e357f7e21a58e5bd2aa8cb8005b720c690664f2
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2019-06-28 01:48:50 +02:00
Mateusz Jablonski
7a3b2e583b Use GPU pointer when programming constant/global surfaces
Related-To: NEO-3127

Change-Id: I29fd5e3f3f370c21a20f403f66c0a3604be884fd
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2019-06-21 14:20:22 +02:00
Jobczyk, Lukasz
971eb7a1b4 Add initial implementation of specialization constants
Related-To: NEO-2260

Change-Id: Ib722109039555a028eb4ec0862e9de72342f9730
Signed-off-by: Jobczyk, Lukasz <lukasz.jobczyk@intel.com>
2019-06-18 09:39:32 +02:00
Mrozek, Michal
2e8e625024 [5/n] Unified Shared Memory
- Add kernel support for host um allocations
- During make resident call choose only appropriate resources for residency
- change resource types to binary bit friendly values
- enhance memory manager to only make resident compatible types

Related-To: NEO-3148

Change-Id: Ic711a4425a0d8db151a335e0357440312dc09b7e
Signed-off-by: Mrozek, Michal <michal.mrozek@intel.com>
2019-06-17 15:47:30 +02:00
Pawel Wilma
fc02d57f65 Force binary programs rebuild with debug variable RebuildPrecompiledKernels
Related-To: NEO-1865

Change-Id: Ib20e3ae3d7a40c61a52803049576bbd3ddac3b76
Signed-off-by: Pawel Wilma <pawel.wilma@intel.com>
2019-05-30 09:28:18 +02:00
Jaime Arteaga
b98b51b0d9 Move ptr.h to core folder
Change-Id: Icf0db7c767b2b1ea44fccc02b135f0f6c1f78c8f
Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
2019-05-29 00:11:34 -07:00
Maciej Plewka
f2a8fc7ea9 Print_formatter refactor
Change-Id: Icb03697281b009c853d91a63d5d21ffcde545a8f
Signed-off-by: Maciej Plewka <maciej.plewka@intel.com>
2019-05-23 21:37:50 +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