Add option -fgpu-sanitize to enable sanitizer for AMDGPU target.
Since it is experimental, it is off by default.
Paths
| Differential D96835
[HIP] Support device sanitizer ClosedPublic Authored by yaxunl on Feb 16 2021, 9:13 PM.
Details
Summary Add option -fgpu-sanitize to enable sanitizer for AMDGPU target. Since it is experimental, it is off by default.
Diff Detail
Event TimelineHerald added subscribers: jansvoboda11, dang, kerbowa and 3 others. · View Herald TranscriptFeb 16 2021, 9:13 PM
yaxunl added inline comments. Comment Actions Nice. LGTM with few minor nits.
This revision is now accepted and ready to land.Feb 18 2021, 10:10 AM yaxunl added inline comments. Closed by commit rG51ade31e6789: [HIP] Support device sanitizer (authored by yaxunl). · Explain WhyFeb 18 2021, 8:33 PM This revision was automatically updated to reflect the committed changes. yaxunl marked 3 inline comments as done. Conanap mentioned this in D97423: Fix a test case that checks should check whether or not it is passed into lld.Feb 24 2021, 3:59 PM Comment ActionsHello, One of our PowerPC buildbots is failing because it is named lld-multistage, which matches with this CHECK-NOT in clang/test/Driver/hip-sanitize-options.hip: ;CHECK-NOT: {{"[^"]*lld[^"]*".* ".*hip.bc"}}. https://reviews.llvm.org/D97423 Thank you!
Revision Contents
Diff 324868 clang/include/clang/Driver/Options.td
clang/include/clang/Driver/ToolChain.h
clang/lib/Driver/Driver.cpp
clang/lib/Driver/SanitizerArgs.cpp
clang/lib/Driver/ToolChain.cpp
clang/lib/Driver/ToolChains/AMDGPU.cpp
clang/lib/Driver/ToolChains/HIP.h
clang/lib/Driver/ToolChains/HIP.cpp
clang/lib/Driver/ToolChains/ROCm.h
clang/test/Driver/Inputs/rocm-invalid/README
clang/test/Driver/Inputs/rocm-invalid/amdgcn/bitcode/hip.bc
clang/test/Driver/Inputs/rocm-invalid/amdgcn/bitcode/ockl.bc
clang/test/Driver/Inputs/rocm-invalid/amdgcn/bitcode/oclc_correctly_rounded_sqrt_off.bc
clang/test/Driver/Inputs/rocm-invalid/amdgcn/bitcode/oclc_correctly_rounded_sqrt_on.bc
clang/test/Driver/Inputs/rocm-invalid/amdgcn/bitcode/oclc_daz_opt_off.bc
clang/test/Driver/Inputs/rocm-invalid/amdgcn/bitcode/oclc_daz_opt_on.bc
clang/test/Driver/Inputs/rocm-invalid/amdgcn/bitcode/oclc_finite_only_off.bc
clang/test/Driver/Inputs/rocm-invalid/amdgcn/bitcode/oclc_finite_only_on.bc
clang/test/Driver/Inputs/rocm-invalid/amdgcn/bitcode/oclc_isa_version_1010.bc
clang/test/Driver/Inputs/rocm-invalid/amdgcn/bitcode/oclc_isa_version_1011.bc
clang/test/Driver/Inputs/rocm-invalid/amdgcn/bitcode/oclc_isa_version_1012.bc
clang/test/Driver/Inputs/rocm-invalid/amdgcn/bitcode/oclc_isa_version_803.bc
clang/test/Driver/Inputs/rocm-invalid/amdgcn/bitcode/oclc_isa_version_900.bc
clang/test/Driver/Inputs/rocm-invalid/amdgcn/bitcode/oclc_isa_version_908.bc
clang/test/Driver/Inputs/rocm-invalid/amdgcn/bitcode/oclc_unsafe_math_off.bc
clang/test/Driver/Inputs/rocm-invalid/amdgcn/bitcode/oclc_unsafe_math_on.bc
clang/test/Driver/Inputs/rocm-invalid/amdgcn/bitcode/oclc_wavefrontsize64_off.bc
clang/test/Driver/Inputs/rocm-invalid/amdgcn/bitcode/oclc_wavefrontsize64_on.bc
clang/test/Driver/Inputs/rocm-invalid/amdgcn/bitcode/ocml.bc
clang/test/Driver/Inputs/rocm-invalid/amdgcn/bitcode/opencl.bc
clang/test/Driver/Inputs/rocm-invalid/bin/.hipVersion
clang/test/Driver/Inputs/rocm-invalid/include/hip/hip_runtime.h
clang/test/Driver/hip-sanitize-options.hip |
We do have BoolFOption for -fsomething/-fno-something options.