-fgpu-sanitize is incompatible with offload arch containing xnack-.
This patch checks that.
Paths
| Differential D102975
[HIP] Check compatibility of -fgpu-sanitize with offload arch ClosedPublic Authored by yaxunl on May 22 2021, 9:13 PM.
Details Summary -fgpu-sanitize is incompatible with offload arch containing xnack-. This patch checks that.
Diff Detail
Event Timeline
This revision is now accepted and ready to land.May 25 2021, 2:00 PM Closed by commit rG6d2c0950205f: [HIP] Check compatibility of -fgpu-sanitize with offload arch (authored by yaxunl). · Explain WhyMay 27 2021, 9:07 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 348297 clang/lib/Driver/ToolChains/AMDGPU.h
clang/lib/Driver/ToolChains/AMDGPU.cpp
clang/lib/Driver/ToolChains/HIP.h
clang/lib/Driver/ToolChains/HIP.cpp
clang/test/Driver/hip-sanitize-options.hip
|
I'd use a struct instead. It makes things more readable in all the other other places where we don't have the exact return type spelled out.