Skip to content

Commit

Permalink
Refactor hipcc.py to support target specification in tvm_callback_hip…
Browse files Browse the repository at this point in the history
…_compile
  • Loading branch information
LeiWang1999 committed Oct 29, 2024
1 parent 072a5a1 commit 27078af
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/tvm/contrib/hipcc.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,8 @@ def compile_hip(code, target_format="hsaco", arch=None, options=None, path_targe
return data


@tvm._ffi.register_func("tvm_callback_hip_compile")
def tvm_callback_hip_compile(code):
@tvm._ffi.register_func
def tvm_callback_hip_compile(code, target):
"""use hipcc to generate fatbin code for better optimization"""
hsaco = compile_hip(code, target_format="hsaco")
return hsaco

0 comments on commit 27078af

Please sign in to comment.