[llvm] [OpenMP][offload] Add LIBOMPTARGET_KERNEL_EXE_TIME (PR #222105)

Shilei Tian via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 11 06:20:17 PDT 2026


================
@@ -1146,6 +1176,10 @@ struct AMDGPUStreamTy {
   /// The device agent where the stream was created.
   hsa_agent_t Agent;
 
+  /// Factor converting HSA clock ticks into nanoseconds. Only used when kernel
+  /// duration tracing is enabled.
+  double TicksToTime;
----------------
shiltian wrote:

This is half baked. On one hand, it is via a "call back" which makes it look like a "plugin" interface; on the other hand, it needs a state in the generic part of the code.

https://github.com/llvm/llvm-project/pull/222105


More information about the llvm-commits mailing list