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
Zbigniew Zdanowicz
4602220e62
Add manager of imported host pointers
...
Related-To: NEO-5126
Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com >
2020-11-30 13:28:25 +01:00
Filip Hazubski
6c4b1f951c
Do not force cl_khr_3d_image_writes extension when compiling kernels
...
Update usage of SUPPORTED_IMAGES flag and do not use images when disabled.
Use SUPPORTED_2_0 only on fully OCL 2.1 conformant platforms.
Signed-off-by: Filip Hazubski <filip.hazubski@intel.com >
2020-11-27 17:20:46 +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
Jaime Arteaga
ba89a47aea
Add L0 extension for extended module descriptor
...
Add ZE_experimental_module_program extension to L0 driver to support
multiple input modules being passed to zeModuleCreate().
Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com >
2020-11-26 22:44:22 +01:00
Jaime Arteaga
9d632b9c92
Use C++ numeric limits instead of C macro
...
Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com >
2020-11-25 12:01:07 +01:00
Mateusz Hoppe
8aacad1854
Create DebuggerL0 only when debugging is supported
...
Related-To: NEO-5239
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com >
2020-11-23 18:28:45 +01:00
Kamil Diedrich
626b71e379
Disable Y16 layout
...
Signed-off-by: Kamil Diedrich <kamil.diedrich@intel.com >
2020-11-23 16:34:55 +01:00
Jaime Arteaga
4432547ff5
Add support for importing memory handles through zeMemAllocDevice
...
Add support for passing ze_external_memory_import_fd_t extended
structure to zeMemAllocDevice() to allocate a device memory
out of an fd handle.
Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com >
2020-11-23 04:18:03 +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
Maciej Plewka
c80353587f
Patch bindless offset
...
Related-To: NEO-4724
Signed-off-by: Maciej Plewka <maciej.plewka@intel.com >
2020-11-20 23:02:36 +01:00
Aravind Gopalakrishnan
223de6dd8c
Revert "Use device allocation for events if host visibility not set"
...
This reverts commit 2c312bc70a .
Reverting due to failures in CI
2020-11-20 21:21:11 +01:00
Sebastian Luzynski
556b6cd457
Add concurrent kernel execution type
...
Related-To: NEO-4940
Signed-off-by: Sebastian Luzynski <sebastian.jozef.luzynski@intel.com >
2020-11-20 16:12:42 +01:00
Jaime Arteaga
97437830a7
Add support for exporting memory handles through getAllocProperties
...
Add support for passing ze_external_memory_export_fd_t extended
structure to zeMemGetAllocProperties() to retrieve an fd handle
for a device allocation.
Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com >
2020-11-20 00:28:15 +01:00
Aravind Gopalakrishnan
2c312bc70a
Use device allocation for events if host visibility not set
...
Signed-off-by: Aravind Gopalakrishnan <aravind.gopalakrishnan@intel.com >
2020-11-19 22:51:04 +01:00
Mateusz Hoppe
765b6cc2ed
Initialize debugging in Os before creating debugger
...
Related-To: NEO-4516
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com >
2020-11-19 16:31:31 +01:00
Vinod Tipparaju
240563099c
Clean up code for nullptr device check during cmdlist create
...
Signed-off-by: Vinod Tipparaju <vinod.tipparaju@intel.com >
2020-11-19 04:24:34 +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
Jaroslaw Chodor
451f1e7e0d
Fixing residency of global const/var buffers
...
Signed-off-by: Jaroslaw Chodor <jaroslaw.chodor@intel.com >
2020-11-18 13:15:06 +01:00
Jaime Arteaga
3ee9c509c7
Fix typo in appendQueryKernelTimestamps
...
Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com >
2020-11-17 12:17:52 +01:00
Mateusz Hoppe
b384bda99a
Exclude internally used cmdLists and cmdQs from debugging
...
Related-To: NEO-5241
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com >
2020-11-17 12:17:34 +01:00
Kamil Diedrich
403ebc843c
Add support for media formats
...
Signed-off-by: Kamil Diedrich <kamil.diedrich@intel.com >
2020-11-17 10:36:29 +01:00
Jaime Arteaga
12598a82e5
Add support for external memory descriptors in device allocations
...
Add support for reading ze_external_memory_export_desc_t passed
to calls to zeMemAllocDevice. Current driver implementation
only supports handles as dma-buf, so add validation that only
that flag is being used.
Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com >
2020-11-16 23:54:48 +01:00
Maciej Plewka
627febba61
Fix include path
...
Signed-off-by: Maciej Plewka <maciej.plewka@intel.com >
2020-11-16 14:36:20 +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
dad1dcebc3
Add L0 hw helper
...
Signed-off-by: Maciej Plewka <maciej.plewka@intel.com >
2020-11-15 23:58:12 +01:00
Jaime Arteaga
b3700370a6
Remove dead-code functions for cache intermediate/last-level config
...
Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com >
2020-11-14 04:23:36 +01:00
Bartosz Dunajski
bc1e772ec2
Set correct device bitfield for L0 command queue allocations
...
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com >
2020-11-13 12:37:16 +01:00
Jaime Arteaga
3f6d1f5ee9
Correctly pass descriptors to L0 shared alloc function
...
Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com >
2020-11-11 07:04:54 +01:00
Jaime Arteaga
9473abc86a
Correctly pass descriptors to L0 device and host alloc functions
...
Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com >
2020-11-10 21:31:07 +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
Vinod Tipparaju
f553e1e514
Return "OUT_OF_MEMORY" when gfx alloc on device fails during cmdqueue create
...
Signed-off-by: Vinod Tipparaju <vinod.tipparaju@intel.com >
2020-11-10 06:26:02 +01:00
Jaime Arteaga
4c5ff75371
Add wait events to appendMemoryCopy
...
appendMemoryCopy has wait events since v1.0, so add the corresponding
support. Other copy operations were missing passing this
in the entry points, but already had support internally.
Also, rename some variables for consistency.
Also, remove signal event from appendMemoryCopyBlit since it is not
used.
Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com >
2020-11-09 21:28:26 +01:00
Bartosz Dunajski
40d5cc71c9
Windows includes cleanup
...
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com >
2020-11-09 14:35:38 +01:00
Jaime Arteaga
6ab9e9f1e0
Initial support for getExternalMemoryProperties and getExtensionProperties
...
Change-Id: Ib7c75dcae10bfb34dd2f703e481ecdd768370772
Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com >
2020-11-03 16:05:25 -08:00
Jaime Arteaga
87fd9b0708
Remove dead-code: OpenCL interop functions from v0.9
...
Change-Id: I4ef6eb3df8991d1ef0b6f07f81655496914cf396
Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com >
2020-11-03 14:22:24 +01:00
Vinod Tipparaju
8e6be83fcc
Add cmdContainer ULTs - idOffset & numIdd reset, Gfx alloc failure
...
ULT required to cover IDOffset and numIdd values during reset.
ULT required to cover OUT_OF_MEM retrun during init.
Fix to check for valid gfx allocation inside heap helper & destructor
Change-Id: Ied9049b33dc0605d5f5f51c96114d5e96b26a4f7
Signed-off-by: Vinod Tipparaju <vinod.tipparaju@intel.com >
2020-11-03 13:22:44 +01:00
Spruit, Neil R
3e5f3fe055
Fixed AppendMemoryFill for alignment, multi kernel execution, memory overrun
...
- Fixed Memory Fill to use aligned allocations in Destination and Source
buffer kernel arguments to ensure proper alignment of memory in the
surface state.
- Fixed patternSize == 1 case where simd size is > the size being
written resulting in the inital kernel append with group count of 0 and
the remainder kernel being executed incorrectly.
- Fixed offset calculation in the remainder kernel to be based off of
the aligned allocation offset.
- Fixed memory overrun case where size < patternsize with the minimum
size being used in the kernel.
Change-Id: I39bd83b3a83ceb6df05d374238f85f7fdf0bd09a
Signed-off-by: Spruit, Neil R <neil.r.spruit@intel.com >
2020-11-02 16:49:12 -08:00
Jaroslaw Chodor
d181a2e5a3
Fixing zeKernelGetProperties
...
Additionally, adding zell_world_jitc_ocloc BB test
Change-Id: If3b8c7e4bd4a789ec1b4f4de55ab21e91c1e7afa
2020-11-02 19:38:39 +01:00
Maciej Plewka
44af85b492
Return correct maxFillSize property
...
Related-To: NEO-5205
Change-Id: I62b7fec89451c640f70028b8d3ecb81f7655225d
Signed-off-by: Maciej Plewka <maciej.plewka@intel.com >
2020-11-02 16:10:01 +01:00
Mateusz Hoppe
17b2a29945
Remove incorrect UNRECOVERABLE_IF()
...
Change-Id: I5d56fcff8ca2449404c30b89d54f631b1da3db87
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com >
2020-10-30 17:42:57 +01:00
Jitendra Sharma
17970ad5e7
Add sysman handles for subdevice only after subdevices are created
...
Move location of assigning sysman handles, such that sysman handle
will be assigned to device and then assign that sysman handle
to subdevices of that device.
Change-Id: Ia606954a866c491e45803b903c8419ee09b1a939
Signed-off-by: Jitendra Sharma <jitendra.sharma@intel.com >
2020-10-30 09:45:08 +01:00
Jaroslaw Chodor
345e56a151
Zebin improvements
...
* cleaning-up per-thread buffer size calculations
* fixing default slm alignment to 16
* adding scratch space slots
* renaming slm addressing mode
* adding support for zeinfo version
Change-Id: I0450353788b8488a685976d7f1dd26a44360383c
2020-10-29 16:33:21 +01:00
Mateusz Hoppe
d539a7f8e4
Adjust AllocationProperties for SBA tracking buffer
...
Change-Id: I00d9d40c854c45775254b017997c53f17559daa4
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com >
2020-10-29 15:48:25 +01:00
Mateusz Hoppe
ac3b65ba82
Refactor isDebuggerActive
...
- use it for SourceLevelDebugger only
Change-Id: I130219a13d6baa1f72c5b35295afd6efa4bf37fa
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com >
2020-10-29 12:21:18 +01:00
Mateusz Hoppe
65690ccb21
Fix indirect dispatch programming
...
Related-To: NEO-5195
Change-Id: I82975abaa6323d27d3718ce1619748f7d83b55b4
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com >
2020-10-28 01:06:08 +01:00
Jaime Arteaga
2fb48224a7
Remove unneeded variable
...
Change-Id: I1abc953063ed196bc045ef3084747a5328e7d443
Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com >
2020-10-27 09:30:20 +01:00
Mrozek, Michal
f53a6acb7f
Revert "Use device allocation for events if host visibility not set"
...
This reverts commit 27e2c32daa .
Change-Id: I8035aad67a1aa1ed37d95a9bcd4354a64d75ac07
2020-10-26 00:21:27 -07:00
Aravind Gopalakrishnan
27e2c32daa
Use device allocation for events if host visibility not set
...
Change-Id: I244cfd617ae77a88dd2f4e5818d39ac7e658b216
Signed-off-by: Aravind Gopalakrishnan <Aravind.Gopalakrishnan@intel.com >
2020-10-23 22:28:45 +02:00