Skip to content

Commit

Permalink
Added Kernel Launch Op names for AMD GPUs
Browse files Browse the repository at this point in the history
  • Loading branch information
spandoesai committed Dec 3, 2024
1 parent b915ab8 commit df5204c
Showing 1 changed file with 10 additions and 1 deletion.
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

0 comments on commit df5204c

Please sign in to comment.