[PATCH] D94961: [OpenMP] Add OpenMP offloading toolchain for AMDGPU
Jon Chesterfield via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Feb 1 09:46:17 PST 2021
JonChesterfield added a comment.
I believe this is 'safe', in the sense that it can't break anything other than AMDGPU's openmp implementation, which doesn't work yet anyway. The change to non-amd code is to OpenMPActionBuilder, and while parsing `-march=gfx` isn't pretty, it won't fire on nvptx. I'm not particularly confident it is correct, but it's hard to do comprehensive testing before there's an end to end spike. I'd like to iterate in tree, with an expectation that parts of this will need to change - @jdoerfert does the OpenMP patch look adequate for now?
================
Comment at: clang/lib/Driver/Driver.cpp:755
TC = CudaTC.get();
+ } else if (TT.isAMDGCN()) {
+ const ToolChain *HostTC =
----------------
This follows the same logic as nvptx so is likely to be correct
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D94961/new/
https://reviews.llvm.org/D94961
More information about the cfe-commits
mailing list