Joshua Santosh Ranjan
4848c67edd
Program CommandList for Metric Query
...
Add commands to the command list for multi-device execution of Metric Queries
Related-To: LOCI-2570
Signed-off-by: Joshua Santosh Ranjan <joshua.santosh.ranjan@intel.com >
2021-09-29 22:15:09 +02:00
Robert Krzemien
f431b569b7
Metric Api: Query begin/end for sub devices
...
Resolves: LOCI-2467
Signed-off-by: Robert Krzemien <robert.krzemien@intel.com >
2021-09-28 22:51:01 +02:00
Robert Krzemien
8d2fcad63f
Metric Api: Query get data for sub devices
...
Resolves: LOCI-2470
Signed-off-by: Robert Krzemien <robert.krzemien@intel.com >
2021-09-27 08:13:36 +02:00
Joshua Santosh Ranjan
d6bb9bf0dd
Metrics MultiDevice Support Add SubDevice Check
...
Adding isSubdevice check to support multi devices
Related-To: LOCI-2554
Signed-off-by: Joshua Santosh Ranjan <joshua.santosh.ranjan@intel.com >
2021-09-22 09:45:08 +02:00
Joshua Santosh Ranjan
a7f526c980
Metrics Append Streamer Marker Multi-Device Support
...
Added multi-device support for zetCommandListAppendMetricStreamerMarker
Related-To: LOCI-2492
Signed-off-by: Joshua Santosh Ranjan <joshua.santosh.ranjan@intel.com >
2021-09-16 19:32:48 +02:00
Bartosz Dunajski
c88db681d6
Fix SubDeviceCount value in Metrics
...
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com >
2021-09-16 09:39:20 +02:00
Robert Krzemien
bc2963bf31
Metric Api: Query Pool for sub devices
...
Resolves: LOCI-2462
Signed-off-by: Robert Krzemien <robert.krzemien@intel.com >
2021-09-16 00:18:52 +02:00
Joshua Santosh Ranjan
299e798159
Fix Metrics Cleanup Metrics Discovery
...
Fix cleanup metrics discovery to handle sub-device to root-device order
Add Close to metrics adapter group
Signed-off-by: Joshua Santosh Ranjan <joshua.santosh.ranjan@intel.com >
Related-To: LOCI-2500
2021-09-06 06:51:28 +02:00
Joshua Santosh Ranjan
1ee80cd382
Metric: Add sub device support for zetMetricStreamerReadData
...
Adding sub device support for Metric Streamer Read Data
Signed-off-by: Joshua Santosh Ranjan <joshua.santosh.ranjan@intel.com >
Signed-off-by: Robert Krzemien <robert.krzemien@intel.com >
Related-To: LOCI-2460
2021-09-06 06:43:13 +02:00
Bartosz Dunajski
0345d9f707
Improve queries with number of SubDevices
...
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com >
2021-09-01 14:01:57 +02:00
Joshua Santosh Ranjan
5844cbe02b
Metrics: Metric Streamer Event Support for Sub Devices
...
Adding Event Support for Sub Devices
Signed-off-by: Joshua Santosh Ranjan <joshua.santosh.ranjan@intel.com >
Related-To: LOCI-2459
2021-08-31 18:17:39 +02:00
Joshua Santosh Ranjan
d71c68ef0a
Metrics:Metric Streamer Open and Close Sub-Device Support
...
Add Support for Sub-Devices in Metric Streamer Open & Close API
Signed-off-by: Joshua Santosh Ranjan <joshua.santosh.ranjan@intel.com >
Signed-off-by: Robert Krzemien <robert.krzemien@intel.com >
Related-To: LOCI-2459
2021-08-26 07:00:47 +02:00
Joshua Santosh Ranjan
90c47946fc
Activate Metric Group for Sub-Devices
...
Update Metric Group Activation for sub-devices based on Sub device Enumeration
Signed-off-by: Joshua Santosh Ranjan <joshua.santosh.ranjan@intel.com >
Related-To: LOCI-2459
2021-08-17 10:52:33 +02:00
Robert Krzemien
7a0b3f4c03
Metric Api: Metric enumeration for all sub devices.
...
Signed-off-by: Robert Krzemien <robert.krzemien@intel.com >
Signed-off-by: Joshua Santosh Ranjan <joshua.santosh.ranjan@intel.com >
Related-To: LOCI-2422
2021-08-05 05:11:57 +02:00
davidoli
21e9def248
Modify metric query pool create for sub devices
...
Signed-off-by: davidoli <david.olien@intel.com >
2021-07-20 22:41:57 +02:00
Robert Krzemien
c6dc6bf1b9
Metrics Api: Initialize metrics devices for all sub devices
...
Signed-off-by: Robert Krzemien <robert.krzemien@intel.com >
2021-07-15 20:13:26 +02:00
davidoli
fc389b72f7
Add flexibility to disable root device metrics
...
Signed-off-by: davidoli <david.olien@intel.com >
2021-07-09 21:28:23 +02:00
Jaroslaw Chodor
0e9aa45e46
Improving OS abstraction
...
Signed-off-by: Jaroslaw Chodor <jaroslaw.chodor@intel.com >
2021-05-23 21:40:37 +02:00
lgotszal
3bd4bca911
Copyright header update
...
Dates corrected in copyright headers to reflect original publication date
(2018 for OpenCL, 2020 for Level Zero).
Signed-off-by: lgotszal <lukasz.gotszald@intel.com >
2021-05-17 20:38:19 +02:00
Piotr Maciejewski
08210f8be5
Fix for Metric Api test that attempts OS (fstat) function.
...
Signed-off-by: Piotr Maciejewski <piotr.maciejewski@intel.com >
2021-04-09 17:29:23 +02:00
Bartosz Dunajski
9cf7651643
Simplify Device classes
...
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com >
2021-04-08 19:00:59 +02:00
Piotr Maciejewski
aa05b5adb4
L0 and Ocl Metric Api sub device support
...
Signed-off-by: Piotr Maciejewski <piotr.maciejewski@intel.com >
2021-03-15 17:14:55 +01:00
Piotr Maciejewski
e33e71dee5
L0 Metric Api: proper Metrics Library deinitializtion.
...
Fixed Metrics Library deinitizaliton during Metric Streamer usage.
It allows user to deactivate metric set (and release i915 tbs interface),
so Metric Stream will not be blocked and i915 interface can be used again.
2021-02-02 08:41:12 +01:00
Matias Cabral
fa80f60ab5
Update metrics libraries file name
...
Add major number version to the metric library name
Signed-off-by: Matias Cabral <matias.a.cabral@intel.com >
2021-01-26 14:48:45 +01:00
Piotr Maciejewski
4a5599b1ee
L0 Metrics Api: multi adapter support
...
Switching to Metrics Discovery adapter interface.
2021-01-13 22:45:59 +01:00
Robert Krzemien
1bf270a804
Metric Api: Use 32-bit streamer marker value
...
Change-Id: I8488a93aa3e27828cef9da090e41e6384270cc99
Signed-off-by: Robert Krzemien <robert.krzemien@intel.com >
2020-10-16 09:15:54 +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
Bartosz Dunajski
5b31b31734
Remove low priority and internal engine index variables
...
Change-Id: I984dbcedd5456cfdee284f4d2eda1371ba77f0d0
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com >
2020-09-21 16:44:14 +02:00
Piotr Maciejewski
a65b0eb9ab
Release temporary metrics library during zeInit
...
Change-Id: Ieb399208377085821319f1bcf29589620390c536
2020-09-02 04:15:39 +02:00
Piotr Maciejewski
dcb5353200
Metric Api: execution query implementation.
...
Allows to skip workload execution between query begin / end.
Change-Id: Ice462f15eb828be1634d38027b7228f72dd96c55
2020-08-25 19:40:32 +02:00
Piotr Maciejewski
c3790388b8
Metric Api: checking paranoid mode during zeInit
...
Change-Id: I9e53f5707a959a6a2f598995495c484b72ff1931
2020-08-20 22:49:57 +02:00
Pawel Cieslak
fb821f21f5
Cmake format script
...
Related-To: NEO-1157
Change-Id: Ie1b907e838cfb9ad0d75cc8971d415f7c77103c9
Signed-off-by: Pawel Cieslak <pawel.cieslak@intel.com >
2020-08-19 16:36:30 +02:00
Matias A. Cabral
aa08eaa473
Update error code when metrics libs are not found
...
Change-Id: I178308c060f0ed49b061b5003591fd38f7688043
Signed-off-by: Matias A. Cabral <matias.a.cabral@intel.com >
2020-08-06 12:29:57 -07: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
Piotr Maciejewski
403594fce0
Metric Api 1.0: context for zetMetricStreamerOpen.
...
Change-Id: Ib121d45cad6d84891eabe49273ea42a017c50be3
2020-07-31 10:04:46 +02:00
Piotr Maciejewski
e72246a74d
Metric Api 1.0 : Max value for zetMetricGroupCalculateMetricValues.
...
Change-Id: Ie9022630e71a4c2e6dadb76ca4ec87b38fd8dfa5
2020-07-31 08:53:27 +02:00
Spruit, Neil R
697fa86e2f
Update Metrics APIs to use new enums and structs
...
Change-Id: Ic7023a1b256073496e8686ce31ef3fe9a6bec37b
Signed-off-by: Spruit, Neil R <neil.r.spruit@intel.com >
2020-07-31 00:25:17 +02:00
Robert Krzemien
92ce66bee8
Metric Api: zetMetricQueryPoolCreateExt update
...
Change-Id: I0f8f804c492bccea79bfa36fd04ef87b08026703
Signed-off-by: Robert Krzemien <robert.krzemien@intel.com >
2020-07-30 20:30:04 +02:00
Piotr Maciejewski
51e08dd07c
Metric Api 1.0: metric group properties
...
Change-Id: Ief58ef4cb13b2d3d2d6516c668e77bc78089ab17
2020-07-29 08:36:42 +02:00
Robert Krzemien
7dc8bbc160
Metric Api: Wait events for zetCommandListAppendMetricQueryEnd
...
Change-Id: I6fdf470035c1fc1f44d66778ec35ec47d0521e4d
Signed-off-by: Robert Krzemien <robert.krzemien@intel.com >
2020-07-28 19:14:05 +02:00
Robert Krzemien
f87f05bf8d
Metric Api: Renamed MetricTracer to MetricStreamer
...
Change-Id: I7de16b230685201b0f91b227f17713c3cd49d497
Signed-off-by: Robert Krzemien <robert.krzemien@intel.com >
2020-07-28 11:21:10 +02:00
Robert Krzemien
d76515a18d
Metric Api: Moved the initialization to zeInit
...
Change-Id: Ia390389e514facb3d81cc28d97bf017367e9f728
Signed-off-by: Robert Krzemien <robert.krzemien@intel.com >
2020-07-27 21:41:24 +02:00
Robert Krzemien
59ffe4ba4b
Metric Api: Return apprioprate error when dependencies not met
...
Change-Id: Ie47a69c4bf80004f7fbc1b91e2025d498e4bda6a
Signed-off-by: Robert Krzemien <robert.krzemien@intel.com >
2020-07-22 22:44:53 +02:00
Robert Krzemien
5d5a266339
Metric Api: get query report slot fix
...
Change-Id: Ib654f756159d2fe8eb6381be7debd08e2261e320
Signed-off-by: Robert Krzemien <robert.krzemien@intel.com >
2020-07-14 13:48:16 +02:00
Andrzej Swierczynski
77f50e5444
Always pass device bitfield to AllocationProperties in constructor
...
Related-To: NEO-4722
Change-Id: Ie2475bf92a3189bcb9073bec5bf5af709e597c5d
Signed-off-by: Andrzej Swierczynski <andrzej.swierczynski@intel.com >
2020-07-13 09:00:10 +02:00
Mateusz Jablonski
c6239968a5
Fix typos:
...
preffered -> preferred
deffered -> deferred
Change-Id: I1b87861590c273d7fcda5bf0c5a772bf36e1bc74
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2020-06-25 19:17:41 +02:00
Spruit, Neil R
e1d9f92b94
Fixed Global Driver to be void * with library unload driver cleanup
...
- Changed Global Driver to be a void * to avoid auto add of Global
Driver Destructor to run before destruction of other L0 data structures
that might be enqueued to destory in static object destructors.
- Added register of library unload driverdestructor to cleanup
driver/device as the last destructor run.
Change-Id: I8ba6c5c27424b942a86a2613edd52fc682ab1c64
Signed-off-by: Spruit, Neil R <neil.r.spruit@intel.com >
2020-06-22 12:59:03 +02:00
Piotr Maciejewski
79c14983cb
Sending Metric Tracer activity flag to Metrics Library.
...
Needed to make Metrics Library aware of Metric Tracer presence.
Change-Id: I3e3108e6b303adfcf5ab56ccadc2a8acc58f7ff5
2020-05-28 09:55:32 +02:00
Robert Krzemien
9b3dd97f81
Passing drm file descriptor to Metrics Library
...
Change-Id: I16b566ba262e0eeff9cb62b2a6ecc48811cdee48
Signed-off-by: Robert Krzemien <robert.krzemien@intel.com >
2020-05-21 18:33:51 +02:00
Piotr Maciejewski
8f70ba916a
Disable Metrics Library after Metric Tracer usage.
...
Metric Tracer can use Metrics Library to generate gpu commands
for Metric Tracer marker. Closing Metrics Library will force it to reintialize,
so Metric Query can use Linux time based sampling stream exclusively
(needed to activate metric set or to obtain context switch/triggered reports).
Change-Id: I3105febfbbd78b537ef0688d1b9c08ab54f9a875
2020-05-15 22:13:18 +02:00