[clang] [CUDA/HIP] fix propagate -cuid to a host-only compilation. (PR #111650)

Pankaj Dwivedi via cfe-commits cfe-commits at lists.llvm.org
Fri Nov 1 00:24:12 PDT 2024


PankajDwivedi-25 wrote:

Looks like this issue is still reproducible in latest build. I'm wondering why then it disappeared in the previously.
I'm seeing a minor difference now it is complaining about **__hip_fatbin** earlier it was **__hip_gpubin_handle_2ba9067058fbe93a**.

> ld.lld: error: undefined symbol: **__hip_fatbin**
>>> referenced by square.cpp
>>>               /work/downstream/hip-tests/samples/2_Cookbook/16_assembly_to_executable/build/square_host.o:(__hip_fatbin_wrapper)
>>> did you mean: **__hip_fatbin_**
>>> defined in: /work/downstream/hip-tests/samples/2_Cookbook/16_assembly_to_executable/build/square_device.o
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
failed to execute:/opt/rocm-6.3.0/lib/llvm/bin/clang++ --driver-mode=g++ -O3 --hip-link  /work/downstream/hip-tests/samples/2_Cookbook/16_assembly_to_executable/build/square_host.o /work/downstream/hip-tests/samples/2_Cookbook/16_assembly_to_executable/build/square_device.o -o "/work/downstream/hip-tests/samples/2_Cookbook/16_assembly_to_executable/build/square_asm.out" -O3 -parallel-jobs=4


https://github.com/llvm/llvm-project/pull/111650


More information about the cfe-commits mailing list