rocprofiler icon indicating copy to clipboard operation
rocprofiler copied to clipboard

How to view the activity of the matrix core while the kernel is running?

Open deltaguo opened this issue 2 years ago • 4 comments

I read the documentation about hardware counters and found that there is no introduction on how to monitor the active status of the matrix core. Is there currently a way to achieve this?

deltaguo avatar Jun 14 '23 07:06 deltaguo

@deltaguo Apologies for the lack of response. Do you still need assistance with this ticket? Thanks!

ppanchad-amd avatar Aug 28 '24 17:08 ppanchad-amd

@ppanchad-amd of course, i am still curious about this.

deltaguo avatar Aug 29 '24 07:08 deltaguo

Hi @deltaguo, Internal ticket has been created to assist with your issue. Thanks!

ppanchad-amd avatar Aug 29 '24 14:08 ppanchad-amd

Hi @deltaguo, sorry for the delay, I've been reaching out to internal teams to see if we have specific guidance on this. In theory I think this should be possible with Analysis View (https://rocmdocs.amd.com/projects/rocprofiler/en/latest/how-to/rocprofv2-usage.html#analysis-view), which can be used to profile your code at the instruction level, but I haven't personally tested this. Looking at the MFMA and WMMA instructions should provide insight on when and how the matrix core is being used.

schung-amd avatar Sep 23 '24 14:09 schung-amd

Closing this for now, if you have more specific questions or want additional guidance feel free to comment and we can reopen this.

schung-amd avatar Oct 08 '24 14:10 schung-amd