Commit Graph

283 Commits

Author SHA1 Message Date
Mateusz Jablonski d45c16dfc2 fix: add fallback for invalid handles in extension functions
handle context, commandlist, driver, device, event, image and kernel handles

Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2024-08-28 17:22:35 +02:00
Mateusz Jablonski b7cedb99a4 fix: move gtpin initialization to first zeDriverGet call
Currently gtpin is intialized during zeInit call. However, it is not
correct as gtpin is calling other L0 API functions, like zeDriverGet
which should not be called until zeInit function finishes.

With this commit gtpin initialization is performed during first
zeDriverGet function call. In case of initialization failure
ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE will be returned every
zeDriverGet call.

Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2024-08-27 15:09:04 +02:00
Winston Zhang 0590b34cfa feature: refactor and rewrite setErrorDescription
Related-To: NEO-8379

Signed-off-by: Winston Zhang <winston.zhang@intel.com>
2024-08-21 17:26:25 +02:00
Bartosz Dunajski ebcbbcf8fe fix: add missing api exports
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
2024-07-26 12:15:28 +02:00
Mateusz Hoppe 8a7923c6ee fix: allow fork() after zeInit()
- do not release resources derived from parent process
- zeInit() in child should initilize new driver

Related-To: NEO-11761

Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2024-07-23 15:31:50 +02:00
Szymon Morek 457cb005de performance: iterate over indirect allocations once
Related-To: NEO-11921

Signed-off-by: Szymon Morek <szymon.morek@intel.com>
2024-07-09 09:31:52 +02:00
Kozlowski, Marek 43c840cb29 fix: update amount of available devices
* According to L0 specification if count is greater than
the number of devices available, then the driver shall
update the value with the correct number of devices available

Signed-off-by: Kozlowski, Marek <marek.kozlowski@intel.com>
2024-07-09 08:43:21 +02:00
Aravind Gopalakrishnan 218663e1d5 documentation: Update L0 Core release version to v1.5
Signed-off-by: Aravind Gopalakrishnan <aravind.gopalakrishnan@intel.com>
2024-06-27 19:07:48 +02:00
Neil R. Spruit 0daa0335cf feature: Define L0 Driver API for Driver Version String
Related-To: NEO-11752

- Adds zeIntelGetDriverVersionString to report the driver
version string to the user in the format:
Major.Minor.Patch+Optional

Signed-off-by: Neil R. Spruit <neil.r.spruit@intel.com>
2024-06-24 20:56:28 +02:00
Compute-Runtime-Validation 7a299ab073 Revert "feature: Define L0 Driver API for Driver Version String"
This reverts commit c51329d098.

Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
2024-06-24 03:41:47 +02:00
Neil R. Spruit c51329d098 feature: Define L0 Driver API for Driver Version String
Related-To: NEO-11752

- Adds zeIntelGetDriverVersionString to report the driver
version string to the user in the format:
Major.Minor.Patch+Optional

Signed-off-by: Neil R. Spruit <neil.r.spruit@intel.com>
2024-06-21 18:31:43 +02:00
Artur Harasimiuk a9795349b4 Revert "build: improve L0 driver versioning to allow HotFix number"
This reverts commit 56847274fa.

Reverting due to bug in unified runtime:
https://github.com/oneapi-src/unified-runtime/issues/1777

Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
2024-06-21 14:10:28 +02:00
Compute-Runtime-Validation 7a74fdb414 Revert "feature: Define L0 Driver API for Driver Version String"
This reverts commit f3ce3b5e81.

Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
2024-06-21 03:14:40 +02:00
Neil R. Spruit f3ce3b5e81 feature: Define L0 Driver API for Driver Version String
Related-To: NEO-11752

- Adds zeIntelGetDriverVersionString to report the driver
version string to the user in the format:
Major.Minor.Patch+Optional

Signed-off-by: Neil R. Spruit <neil.r.spruit@intel.com>
2024-06-20 20:35:31 +02:00
Filip Hazubski 2f6eaf149a fix: Update SIP kernel initialization logic
Initialize SIP kernel when shared device is being initialized
instead of api-specific device.

Initialize debugger when shared device is being initialized
instead of during platform or driver initialization.

Add missing makeResident calls for SIP kernel in heapless paths.

Related-To: HSD-18038645398, HSD-18038819112

Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
2024-06-20 18:30:46 +02:00
Bartosz Dunajski b28fc0f55d feature: report copy offload extension
Related-To: NEO-11376

Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
2024-06-18 16:37:28 +02:00
Jaroslaw Warchulski daec249430 refactor: remove not needed createGraphicsAllocationFromNTHandle method
Related-To: NEO-11498
Signed-off-by: Jaroslaw Warchulski <jaroslaw.warchulski@intel.com>
2024-06-18 14:25:00 +02:00
Jaroslaw Warchulski 76a05c1cab refactor: pass arrayIndex to Wddm::openNTHandle function
Related-To: NEO-11498
Signed-off-by: Jaroslaw Warchulski <jaroslaw.warchulski@intel.com>
2024-06-12 12:11:35 +02:00
Wenju He aa49d9e65e feature: add ZE_extension_image_copy as supported extension
Add null check as L0 cts test_api_ltracing_dynamic was passing a null
host ptr.

Resolves: NEO-9988

Signed-off-by: Wenju He <wenju.he@intel.com>
2024-06-12 03:30:37 +02:00
Artur Harasimiuk b8e212d728 refactor: make spdlog optional
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
2024-06-07 14:14:12 +02:00
Jaroslaw Warchulski 0ac1be7669 refactor: pass arrayIndex to Wddm::openSharedHandle function
Related-To: NEO-11498
Signed-off-by: Jaroslaw Warchulski <jaroslaw.warchulski@intel.com>
2024-06-07 09:51:26 +02:00
Neil R. Spruit 1a4ce07414 fix: add ZE_extension_linkage_inspection to driver properties
Related-To: NEO-9988

Signed-off-by: Neil R. Spruit <neil.r.spruit@intel.com>
2024-05-29 22:20:28 +02:00
Falkowski, John 20e22deced fix: add ZE_extension_kernel_max_group_size_properties to L0 driver properties
Related-To: NEO-9988

Signed-off-by: John Falkowski <john.falkowski@intel.com>
2024-05-29 16:51:00 +02:00
Compute-Runtime-Validation 4489aedf44 Revert "fix: add ZE_extension_kernel_max_group_size_properties to driver prop...
This reverts commit 06a00f5120.

Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
2024-05-24 06:50:42 +02:00
John Falkowski 06a00f5120 fix: add ZE_extension_kernel_max_group_size_properties to driver properties
Related-To: NEO-9988

Signed-off-by: John Falkowski <john.falkowski@intel.com>
2024-05-22 23:20:45 +02:00
Kulkarni, Ashwin Kumar fbb8fa7dea feature: supports git SHA logging to log file
Related-To: NEO-11364

Signed-off-by: Kulkarni, Ashwin Kumar <ashwin.kumar.kulkarni@intel.com>
2024-05-20 22:23:17 +02:00
Dominik Dabek b4d839fe29 performance(usm): l0, add usm host memory pooling
Disabled by default.

Related-To: NEO-11356

Signed-off-by: Dominik Dabek <dominik.dabek@intel.com>
2024-05-15 15:20:51 +02:00
Artur Harasimiuk 56847274fa build: improve L0 driver versioning to allow HotFix number
new format is: BBBBB.HHH, where:
* BBBBB is build number
* HHH is hotfix number

Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
2024-05-15 13:10:49 +02:00
Bartosz Dunajski d3f28b92c9 fix: report sync dispatch extension only if implicit scaling enabled
Related-To: NEO-8171

Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
2024-05-07 12:42:24 +02:00
Bartosz Dunajski 53f436095e refactor: pass hwInfo to getSupportedLocalDispatchSizes
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
2024-04-25 15:20:03 +02:00
Kulkarni, Ashwin Kumar 8c1f0836ae feature: enables basic framework for spdlogs
Related-To: NEO-10510

Signed-off-by: Kulkarni, Ashwin Kumar <ashwin.kumar.kulkarni@intel.com>
2024-04-23 07:23:46 +02:00
Bartosz Dunajski dd6040ab6e refactor: improve exp extension names
Related-To: NEO-8179

Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
2024-04-18 11:09:23 +02:00
Joshua Santosh Ranjan e0a580fce7 feature: Support for concurrent groups
Related-To: NEO-10306

Signed-off-by: Joshua Santosh Ranjan <joshua.santosh.ranjan@intel.com>
2024-04-18 09:41:12 +02:00
Bartosz Dunajski 4f52fd504a feature: return experimental sync queue extension if supported
Related-To: NEO-8171

Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
2024-04-16 14:48:22 +02:00
Artur Harasimiuk a925afa1ab refactor: cleanup unused code
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
2024-04-11 16:06:28 +02:00
Filip Hazubski 270e8af729 performance: pass extension function name by reference
Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
2024-03-25 10:17:08 +01:00
Mateusz Hoppe 0cec5ccc32 fix: check if any of devices has BindlessHeapHelper enabled
- report Bindless_images extension in driver only when at least one
device has global bindless heaps enabled

Related-To: NEO-10352

Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2024-03-20 20:50:58 +01:00
Wenbin Lu a0faad6558 feature: report multi-hop fabric connections
In additon to physical connections we should also report multi-hop
logical connections (MDFI + XeLink) as have positive bandwidth.

Use a modified BFS algorithm to try to find a path between fabric
vertices that are not directly connected together because the KMD always
try to use MDFI link first, then go to XeLink.

Multi-hop connections are bi-directional but might not be symmetric, so
for every pair of vertices A & B that are not directly connected, we
need to try to find both `A -> B` and `B -> A`.

Related-To: GSD-7126

Signed-off-by: Wenbin Lu <wenbin.lu@intel.com>
2024-03-06 06:36:48 +01:00
Fabian Zwolinski 6b2281e66c fix: make sure builtins async init is complete when finishing driver init
Related-To: NEO-10045
Signed-off-by: Fabian Zwolinski <fabian.zwolinski@intel.com>
2024-02-20 21:15:57 +01:00
Mateusz Hoppe d9b662a735 fix: ignore ZET_ENABLE_PROGRAM_DEBUGGING when system misconfigured
- if debug not enabled in the system, ignore env var for enabling
debugging

Resolves: NEO-10370

Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2024-02-19 15:54:17 +01:00
Dunajski, Bartosz f404f3ceb1 refactor: initial support for per platform extension string
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
2024-02-19 14:47:30 +01:00
Mateusz Hoppe 22802d8680 feature: add ZE_experimental_bindless_image extension
- add definitions and functions
- Level Zero spec commit: 49c972463796e614597b028bd344e1b2f64a63b7

Related-To: NEO-10352

Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2024-02-13 15:06:41 +01:00
Dunajski, Bartosz e86a860127 refactor: remove unordered_map with extensions functions from Driver class
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
2024-02-09 10:24:54 +01:00
Dominik Dabek 371788210d performance: limit usm host allocation recycle
Query system total memory size and limit usm host allocation recycle to
use at most x%.
x is read from ExperimentalEnableDeviceAllocationCache for device and
ExperimentalEnableHostAllocationCache for host.

Related-To: GSD-7497

Signed-off-by: Dominik Dabek <dominik.dabek@intel.com>
2024-02-07 17:45:41 +01:00
John Falkowski 10ef2a28ff fix: correct for default hierachry
Resolves: NEO-10006

Signed-off-by: John Falkowski <john.falkowski@intel.com>
2024-01-15 22:15:49 +01:00
Mateusz Jablonski 27fbdde4c5 refactor: correct naming of unified memory enums
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2023-12-13 15:58:21 +01:00
Mateusz Jablonski 432142c574 refactor: correct naming of enum class constants 4/n
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2023-12-13 08:08:51 +01:00
Dunajski, Bartosz 9121209c41 feature: api support for Event sync mode
Related-To: NEO-8179

Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
2023-12-12 09:42:57 +01:00
Mateusz Jablonski b182917d9d refactor: correct naming of allocation types
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2023-12-11 16:23:37 +01:00
Compute-Runtime-Validation 33a36e5e56 Revert "feature: api support for Event sync mode"
This reverts commit 156154813a.

Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
2023-12-11 14:08:19 +01:00