Skip to content

Commit

Permalink
adds: hip launch operations
Browse files Browse the repository at this point in the history
  • Loading branch information
rohitdwivedula committed Jul 26, 2024
1 parent adfa2df commit 3b867fd
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 @@ -142,7 +142,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 3b867fd

Please sign in to comment.