HomePhabricator

[HIP] Do not unbundle object files for -fno-gpu-rdc

Description

[HIP] Do not unbundle object files for -fno-gpu-rdc

When -fno-gpu-rdc is set, device code is compiled, linked, and assembled into fat binary
and embedded as string in object files. The object files are normal object files which
can be linked by host linker. In the linking stage, the object files should not be unbundled
when -fno-gpu-rdc is set since they are normal object files, not bundles. The object files
only need to be unbundled when -fgpu-rdc is set.

Currently clang always unbundles object files, disregarding -fgpu-rdc option.

This patch fixes that.

Differential Revision: https://reviews.llvm.org/D58917

Details

Committed
yaxunlMar 5 2019, 8:07 AM
Differential Revision
D58917: [HIP] Do not unbundle object files for -fno-gpu-rdc
Branches
Unknown
Tags
Unknown