[PATCH] D141051: [CUDA][HIP] Add support for `--offload-arch=native` to CUDA and refactor
Joseph Huber via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Jan 12 12:35:34 PST 2023
jhuber6 added a comment.
In D141051#4048456 <https://reviews.llvm.org/D141051#4048456>, @srj wrote:
> For reasons that aren't yet clear to me, this change is failing to compile when using gcc-7 and targeting 32-bit targets; the error is of the form
>
> AMDGPU.cpp:773:10: error: could not convert ‘GPUArchs’ from ‘llvm::SmallVector<std::__cxx11::basic_string<char>, 1>’ to ‘llvm::Expected<llvm::SmallVector<std::__cxx11::basic_string<char> > >’
> return GPUArchs;
Probably the older GCC doesn't handle the implicit copy elision to the expected type well and thinks that it's copied. I'll put an explicit move on it.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D141051/new/
https://reviews.llvm.org/D141051
More information about the cfe-commits
mailing list