The Clang driver additional stages to build a complete offloading
program for applications using CUDA or OpenMP offloading. This normally
requires either a source file input or a valid object file to be
handled. This would cause problems when trying to compile an assembly or
LLVM IR file through clang with flags that would enable offloading. This
patch simply adds a check to prevent the offloading toolchain from being
used if we don't have a valid source file.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
HIP toolchain allows clang driver to compile bundled bitcode or assembly for mixed host/device compilation or device-only multi-GPU compilation.
e.g.
clang --hip-link -fgpu-rdc --offload-arch=gfx906 --offload-arch=gfx908 a.bc b.s
Can you add a test to make sure this does not break HIP toolchain? Thanks.
Comment Actions
This only changes the new driver, which doesn't support HIP right now anyway. This should be captured by some existing tests but I could try to dig them up