java.lang.Object
org.eclipse.tracecompass.tmf.core.event.aspect.TmfDeviceAspect
org.eclipse.tracecompass.incubator.rocm.core.trace.GpuAspect
All Implemented Interfaces:
ITmfEventAspect<Integer>

public final class GpuAspect extends TmfDeviceAspect
This aspect describes which GPU is related to each GPU activity or Kernel event
Author:
Arnaud Fiorini
  • Field Details

    • INSTANCE

      public static final GpuAspect INSTANCE
      The singleton instance
  • Method Details

    • getName

      public String getName()
    • getHelpText

      public String getHelpText()
    • resolve

      public @Nullable Integer resolve(ITmfEvent event)
      Gets the GPU number if available on an event
      Parameters:
      event - The event to get the GPU number from
      Returns:
      the GPU number of the GPU on which this event was executed or null
    • equals

      public boolean equals(@Nullable Object other)
      Consider all sub-instance of this type "equal", so that they get merged in a single CPU column/aspect.
      Overrides:
      equals in class Object
      Parameters:
      other - The object to compare it with
      Returns:
      true if the object is of the same type
    • getDeviceType

      public String getDeviceType()
      Specified by:
      getDeviceType in class TmfDeviceAspect
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object