-
Notifications
You must be signed in to change notification settings - Fork 206
Closed
Labels
pluginPyTorch Profiler TensorBoard Plugin relatedPyTorch Profiler TensorBoard Plugin relatedquestionFurther information is requestedFurther information is requested
Description
I use pytorch.profiler to profile a program of matmul on GPU, it seems profiler does not record aten.mm correctly. There is stats in GPU kernel View,

but no GPU kernel stats in Trace view.

Sample code:
import torch
a = torch.rand([1, 1024, 2048], device='cuda')
b = torch.rand([2048, 2048], device='cuda')
with torch.profiler.profile(
activities=[
torch.profiler.ProfilerActivity.CPU,
torch.profiler.ProfilerActivity.CUDA,
],
on_trace_ready=torch.profiler.tensorboard_trace_handler("./mm-profile")
):
torch.matmul(a, b)
Metadata
Metadata
Assignees
Labels
pluginPyTorch Profiler TensorBoard Plugin relatedPyTorch Profiler TensorBoard Plugin relatedquestionFurther information is requestedFurther information is requested