Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion src/trace_link/kineto_operator.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,16 @@ def is_kernel_launch_op(self) -> bool:
"cudaMemcpyToSymbol",
"cudaLaunchCooperativeKernel",
}
return cuda_launch_categories and self.name in cuda_launch_operations

hip_launch_operations = {
"hipLaunchKernel",
"hipExtLaunchKernel",
"hipExtModuleLaunchKernel",
"hipModuleLaunchKernel",
"hipMemcpyWithStream",
"hipMemcpyAsync",
}
return cuda_launch_categories and (self.name in cuda_launch_operations or self.name in hip_launch_operations)

def is_gpu_op(self) -> bool:
"""
Expand Down