oneapi-src / level-zero

oneAPI Level Zero Specification Headers and Loader
https://spec.oneapi.com/versions/latest/elements/l0/source/index.html
MIT License
208 stars 90 forks source link

Spec does not specify timestamp unit for all metric types #99

Closed eero-t closed 1 year ago

eero-t commented 1 year ago

Timestamp unit / resolution is explicitly specified as microseconds for following metrics:

But not for:

Same microsecond resolution is implied by the provided algorithm, but it should be explicitly stated also for memory bandwidth.

PS. Maybe there could be also some generic statement at start of all timestamps in the Sysman API being reported as microseconds, regardless of what resolution HW actually offers for the backend. Or is it possible that the nanoseconds and cycles mentioned in core API (https://spec.oneapi.io/level-zero/latest/core/api.html#ze-device-properties-t) could be used in Sysman API later on?

bmyates commented 1 year ago

Hi, there's a recently created repo for the L0 spec. This question would fit better there. https://github.com/oneapi-src/level-zero-spec

eero-t commented 1 year ago

Done: https://github.com/oneapi-src/level-zero-spec/issues/16

I'll close this issue after README here gets a link to that project: https://github.com/oneapi-src/level-zero/blob/master/README.md

bmyates commented 1 year ago

Added https://github.com/oneapi-src/level-zero/commit/16af2b51509894cdd45ea63ff029bf43a8773fe3

eero-t commented 1 year ago

Thanks!