From d0bfdac8557eef7ef4148453670daa8b41468eea Mon Sep 17 00:00:00 2001 From: Beatriz Navidad Vilches Date: Tue, 5 Nov 2024 20:06:49 +0100 Subject: [PATCH] fix: fix assembly_to_executable example for ROCm 6.2.2 --- HIP-Basic/assembly_to_executable/hip_obj_gen_win.mcin | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/HIP-Basic/assembly_to_executable/hip_obj_gen_win.mcin b/HIP-Basic/assembly_to_executable/hip_obj_gen_win.mcin index 3636354e2..731af9722 100644 --- a/HIP-Basic/assembly_to_executable/hip_obj_gen_win.mcin +++ b/HIP-Basic/assembly_to_executable/hip_obj_gen_win.mcin @@ -9,12 +9,17 @@ # Input: Bundled Object file .hipfb file # Output: Host Bundled Object File .o + .section .hip_gpubin_handle,"dw" + .globl __hip_gpubin_handle_ + .p2align 12 +__hip_gpubin_handle_: + .zero 8 # Tell the assembler to place the offload bundle in the appropriate section. .section .hip_fatbin,"dw" # Make the symbol that addresses the binary public. - .globl __hip_fatbin + .globl __hip_fatbin_ # Give the bundle the required alignment of 4096 (2 ^ 12). .p2align 12 -__hip_fatbin: +__hip_fatbin_: # Include the offload bundle. .incbin "offload_bundle.hipfb"