Skip to content

[Issue]: rocm7.2 undefined symbol: __hip_fatbin_45494b3a6bfbd182 when playing with 16_assembly_to_executable #606

@clp510

Description

@clp510

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 ,

Image

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions