Problem Description
working example :
https://github.com/ROCm/rocm-examples/tree/develop/Applications/bitonic_sort
try to generate device object and host object seperately then link together using tutorial
https://github.com/ROCm/hip-tests/tree/develop/samples/2_Cookbook/16_assembly_to_executable
herer is my run.sh content
hipcc -c -S --cuda-host-only -target x86_64-linux-gnu main.hip -I ../../Common -I ../../External -o host.s && \ hipcc -c -S --cuda-device-only --offload-arch=gfx942 main.hip -I ../../Common -I ../../External -o device.s && \ hipcc -c host.s -o host.o && \ clang -target amdgcn-amd-amdhsa -mcpu=gfx942 device.s -o device.o && \ clang-offload-bundler -type=o -bundle-align=4096 -targets=host-x86_64-unknown-linux-gnu,hipv4-amdgcn-amd-amdhsa--gfx942 -input=/dev/null -input=device.o -output=offload_bundle.hipfb && \ llvm-mc -triple x86_64-unknown-linux-gnu -o main_device.o hip_obj_gen.mcin --filetype=obj && \ hipcc -o final host.o main_device.o
error occurs in last step ,
Operating System
Ubuntu 22.04.4 LTS (Jammy Jellyfish)
CPU
AMD EPYC 9474F 48-Core Processor
GPU
AMD Instinct MI300X
ROCm Version
rocm-7.2.9
ROCm Component
No response
Steps to Reproduce
No response
(Optional for Linux users) Output of /opt/rocm/bin/rocminfo --support
No response
Additional Information
I am in runpod using MI300X
Problem Description
working example :
https://github.com/ROCm/rocm-examples/tree/develop/Applications/bitonic_sort
try to generate device object and host object seperately then link together using tutorial
https://github.com/ROCm/hip-tests/tree/develop/samples/2_Cookbook/16_assembly_to_executable
herer is my run.sh content
hipcc -c -S --cuda-host-only -target x86_64-linux-gnu main.hip -I ../../Common -I ../../External -o host.s && \ hipcc -c -S --cuda-device-only --offload-arch=gfx942 main.hip -I ../../Common -I ../../External -o device.s && \ hipcc -c host.s -o host.o && \ clang -target amdgcn-amd-amdhsa -mcpu=gfx942 device.s -o device.o && \ clang-offload-bundler -type=o -bundle-align=4096 -targets=host-x86_64-unknown-linux-gnu,hipv4-amdgcn-amd-amdhsa--gfx942 -input=/dev/null -input=device.o -output=offload_bundle.hipfb && \ llvm-mc -triple x86_64-unknown-linux-gnu -o main_device.o hip_obj_gen.mcin --filetype=obj && \ hipcc -o final host.o main_device.oerror occurs in last step ,
Operating System
Ubuntu 22.04.4 LTS (Jammy Jellyfish)
CPU
AMD EPYC 9474F 48-Core Processor
GPU
AMD Instinct MI300X
ROCm Version
rocm-7.2.9
ROCm Component
No response
Steps to Reproduce
No response
(Optional for Linux users) Output of /opt/rocm/bin/rocminfo --support
No response
Additional Information
I am in runpod using MI300X