Commit Graph

39 Commits

Author SHA1 Message Date
Jaime Arteaga a6ac10088c Initialize kernel immutable data when kernel is created
This instead of when the associated module is created, to avoid
allocating memory for kernels that are never created nor used.

Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
2020-12-29 19:29:10 +01:00
macabral 720ba46548 Register kernel Elf for debugging purpose
Signed-off-by: macabral <matias.a.cabral@intel.com>
2020-12-01 17:16:14 +01:00
Mateusz Hoppe 8cac8d4b51 Fix possible device nullptr dereference
- abort will be called if device is nullptr

Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2020-11-26 22:51:44 +01:00
Young Jin Yoon 3e69b2084c Add support for zeModuleGetProperties
Signed-off-by: Young Jin Yoon <young.jin.yoon@intel.com>
2020-11-21 23:14:30 +01:00
Jaime Arteaga 905d59d7e3 Allow disabling statefull optimization in L0
Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
2020-11-18 22:33:05 +01:00
Maciej Plewka 28de4068c9 Read bindless offset from patch token
Signed-off-by: Maciej Plewka <maciej.plewka@intel.com>
2020-11-18 17:04:00 +01:00
Mateusz Hoppe 0f42ef1ed7 Differentiate between users ISA and internal ISA allocation
Related-To: NEO-5240

Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2020-11-16 13:16:30 +01:00
Maciej Plewka 3f7af19c8f Pass bindless options to compiler when bindless enabled
Signed-off-by: Maciej Plewka <maciej.plewka@intel.com>
2020-11-10 11:30:56 +01:00
Krystian Chmielewski 9f08a60a20 KernelInfo Refactor
Using kernelDescriptor.kernelMetadata.kernelName instead of
kernelInfo.name

Change-Id: I11f5721d8072a3beccb573cec4bea56cf14cf0f9
2020-10-20 13:18:09 +02:00
Bartosz Dunajski fb0651521d Linker: Fix incremental patching for local memory allocations
Change-Id: Ib85e4a2abc8a62477003853aa0c35f8107444f4e
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
2020-10-09 09:13:42 +02:00
Konstanty Misiak ff85c29e5c Do not recompile kernel if intermediate is empty
Related-To: NEO-5020

Change-Id: Ie71e1ac67a74309a90a899adb830a551922c5f35
Signed-off-by: Konstanty Misiak <konstanty.misiak@intel.com>
2020-10-06 13:47:25 +02:00
Jaroslaw Chodor 746cf7fd33 Reuse old build options if new ones are NULL
Change-Id: I435e7ec8554b0429dcf4f6f8d9d4fd80e70b68c6
2020-10-04 16:54:02 +02:00
Jaroslaw Chodor df2e76f526 Fixing residency of extern device functions
Change-Id: Icad696cbf6fb3fc0276f0d0d488bf92091525d9b
2020-10-02 12:27:59 +02:00
Bartosz Dunajski 55bd544402 Lazy evaluate arguments of printDebugStrings(...) function
Change-Id: Ie44e109fd9235c5df32fb90b9e6fc6058e558a99
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
2020-09-25 18:38:58 +02:00
Mateusz Hoppe d0a6b8aece Adjust BuildOptions used in level_zero
Change-Id: I0974127beca07012758d4e57402867754c94d388
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2020-09-15 16:41:36 +02:00
Mateusz Hoppe a5c556fe11 Create TestEnvironment in ze_intel_gpu_core_tests
Change-Id: I85306b59e220c34ee6b43790b59f5ad96ea51eca
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2020-09-11 09:53:58 +02:00
Kamil Kopryk 145fd87f5d Revert "Add adjustPlatformCoreFamilyForIgc helper"
This reverts commit 8fffdcc111.

Change-Id: I0415b004ef0a1465bc2658cadc66f21a99302eca
2020-09-08 07:36:26 +02:00
Jaroslaw Chodor 0dd621be84 Make allow-zebin an opt-in
Change-Id: Id14ee231943f4c20797a934a9fb914398ff83cc4
2020-08-31 16:01:27 +02:00
Jaroslaw Chodor e16f430ecc Pass flag to IGC to allow zebin in L0
Change-Id: I8793c4e58966a5527b1d1f37bf0b54f03bf1f976
2020-08-28 09:11:42 +02:00
Jaroslaw Chodor d71e2e3b22 L0 Zebin fix for target detection
Change-Id: Ic57d70007ae7d78b1375bc75f2d806d71351d6fe
2020-08-18 23:03:39 +02:00
Kamil Kopryk 8fffdcc111 Add adjustPlatformCoreFamilyForIgc helper
Change-Id: Ic372e76c1024ca9e585bef15fab29827d33122f3
Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com>
Related-To: NEO-4865
2020-08-13 17:31:13 +02:00
Mateusz Jablonski 92aef012d9 Add implementation of module dynamic link
Change-Id: I80c9ed1b5f6b0243e89515c393d89c4f86e5d83a
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2020-08-10 11:21:31 +02:00
Jaime Arteaga 902fc2f6c4 level-zero v1.0 (2/N)
Change-Id: I1419231a721fab210e166d26a264cae04d661dcd
Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
Signed-off-by: macabral <matias.a.cabral@intel.com>
Signed-off-by: davidoli <david.olien@intel.com>
Signed-off-by: Aravind Gopalakrishnan <Aravind.Gopalakrishnan@intel.com>
Signed-off-by: Spruit, Neil R <neil.r.spruit@intel.com>
Signed-off-by: Latif, Raiyan <raiyan.latif@intel.com>
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
2020-08-03 13:11:13 +02:00
Jaime Arteaga f29dacd5c0 Add new v1.0 kernel properties
Change-Id: Ic194e2176ca96bd255e8108ac494ef4006cf6712
Signed-off: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
2020-07-31 06:03:28 +02:00
Jaroslaw Chodor d65cdab453 Zebin - yaml parser
Change-Id: If8b5bcd68b7d39bfd3fb53b619f5de973b059bff
2020-07-30 07:26:44 +02:00
Jaime Arteaga 63a801ee07 Context implementation (3/N)
Add object creators.

Change-Id: Ic656a1bd3735bce1d995c407011ef7c26eab848e
Signed-off: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
2020-07-23 15:27:24 -07:00
Mateusz Jablonski 794296334b Allow to create partially linked module
Don't allow to create kernel from partially linked module

Change-Id: Id70b484686e6d1ca79f242bf96ff92582172e378
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2020-07-16 13:02:50 +02:00
Filip Hazubski 38740c7b75 Use blit when patching data segments with Linker
Change-Id: I79e92add07f5bd7a68d4b03cf8069ed9c2cb907f
Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
2020-07-14 17:47:14 +02:00
Jaime Arteaga 5b61ad0966 Add stub for dynamic link function and for extended kernel properties
Change-Id: Ifaaf1226114233618e7959def086989cf93bd0bd
Signed-off: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
2020-06-29 02:11:29 +02:00
Mateusz Hoppe dd407681ff Check if kernel was compiled for debug
Related-To: NEO-4776

Change-Id: I54fe64430bf0c4d7972018367340a2ac88a94f99
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2020-06-23 08:51:31 +02:00
Mateusz Jablonski f0ef0d4d78 Remove redundancy from ModuleImp class
NEO::Device can be obtained from L0::Device
use modern API for MOCK_METHOD in Mock<Module>
remove not needed clang pragma from mock_module.h

Change-Id: I993fc77ee7cae56b3f21d6a60601fd649f984032
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2020-05-28 17:51:00 +02:00
chmielew 3e8f05d702 remove kernelHeader from HeapInfo
Change-Id: Ic2d441df15a7f75b5f3ef41d484969148e59715f
2020-05-28 03:59:49 -07:00
Jaime Arteaga 5b0a2ee09b Add support for specialization constants in Level Zero
Change-Id: Ifc1255365f4f25e83c5c6128f2ea4d8994e0ae8b
Signed-off: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
2020-05-27 19:18:45 +02:00
Jim Snow f0c7f5f5de Propagate errors in ModuleImp::createKernel
Change-Id: I71612013e27315841103ceaf1de9ea11c1876ac6
Signed-off-by: Jim Snow <jim.m.snow@intel.com>
2020-05-05 11:56:28 -07:00
Jaroslaw Chodor 1f8fdf4fc0 Adding relocations debug information
Change-Id: I7f5ae46dc8774d8977b1e9adaeccfd4dd5dd57af
2020-04-29 00:43:33 +02:00
Mateusz Hoppe a13c1e642d Handle debug data when using native binaries
- fix for debugger when programs are created from
binaries

Change-Id: I31bbb941c4f4aff577aa5393b3e09e9a97b868ae
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2020-04-15 17:20:08 +02:00
Mateusz Hoppe e5072225a5 Pass optimization disable option based on debugger query
Related-To: NEO-4404

Change-Id: Ie6de202dc8e818a540983b8e5fa6c789b7c15b98
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2020-04-09 19:02:02 +02:00
Bartosz Dunajski a56c27799b Constructors cleanup
Change-Id: I3b69c3951929588f346ad8557ca9a7808afe1c84
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
2020-04-06 14:06:22 +02:00
Jaime Arteaga d96e462754 Reorganize Level Zero Core API files
Change-Id: I95750b90748dd65310fa72b030ea3ab2f72d3f24
Signed-off: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
2020-03-25 11:21:43 +01:00