Skip to content

Commit

Permalink
undo hipify of __half to rocblas_half (microsoft#18573)
Browse files Browse the repository at this point in the history
Fixes build issue seen with newer ROCm releases

Co-authored-by: Jeff Daily <[email protected]>
  • Loading branch information
2 people authored and kleiti committed Mar 22, 2024
1 parent da2130c commit c9dc4de
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tools/ci_build/amd_hipify.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ def hipify(hipify_perl_path, src_file_path, dst_file_path):
s = s.replace("HIPBLAS_OP_T", "rocblas_operation_transpose")
s = s.replace("HIPBLAS_OP_N", "rocblas_operation_none")

# in rocm 6.0, hipify-perl, the -roc option also maps __half -> rocblas_half which we don't want
s = s.replace("rocblas_half", "__half")

s = s.replace("RegisterCudaContribKernels", "RegisterRocmContribKernels")
s = s.replace("cudaEvent", "hipEvent")
s = s.replace("CreateCudaAllocator", "CreateRocmAllocator")
Expand Down

0 comments on commit c9dc4de

Please sign in to comment.