When compiling in device only mode (e.g. --offload-device-only), the
host linker phase would not happen and therefore, the driver should
ignore all the host linker flags.
Details
Details
- Reviewers
yaxunl - Commits
- rGcbc4bbb85c72: [HIP] Ignore host linker flags for device-only
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
clang/lib/Driver/Driver.cpp | ||
---|---|---|
4153 | The --hip-link -fgpu-rdc --offload-device-only case needs to add the linker inputs e.g. archive of bundled bitcodes. Need a test to make sure that still works. Also you need to use Driver::offloadDeviceOnly() to check whether it is device compilation only |
The --hip-link -fgpu-rdc --offload-device-only case needs to add the linker inputs e.g. archive of bundled bitcodes. Need a test to make sure that still works.
Also you need to use Driver::offloadDeviceOnly() to check whether it is device compilation only