Previously we had some special handling here that errored out if
multiple architectures were detected. This isn't a problem anymore as
the runtime can handle multi-archicture binaries automatically. So it's
safe to simply take the first architecture that we know works. If users
use --offload-arch=native instead it will build for all the
architectures at the same time rather than just picking one. This patch
makes it consisten with the NVPTX version.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
@yaxunl Do you know why AMD uses -mcpu but we use -march here? Would there be any downside to aliasing them in the AMDGPU toolchain?
Comment Actions
In a follow up we should default to all system archs not the first one. But let's keep them in sync. LG
clang/lib/Driver/ToolChains/AMDGPUOpenMP.cpp | ||
---|---|---|
100 | Swap, shorter case first. |
Swap, shorter case first.