-
Notifications
You must be signed in to change notification settings - Fork 787
[DeviceSanitizer] Disable ASan when the ESIMD kernel is found #14156
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add a lit test?
Done |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Hi @intel/llvm-gatekeepers, can you please merge this PR? |
Assert/assert_in_simultaneous_kernels.cpp failed on OpenCL CPU. It is not a failure I have seen before. Could you please make sure it is flaky and unrelated? If it is, we should open an issue for it. |
Yes, it is flaky and unrelated. |
Hi @steffenlarsen, I merged this PR to latest code and that test failure has disappeared. |
@@ -1411,6 +1410,21 @@ PreservedAnalyses AddressSanitizerPass::run(Module &M, | |||
ClUseStackSafety ? &MAM.getResult<StackSafetyGlobalAnalysis>(M) : nullptr; | |||
|
|||
if (Triple(M.getTargetTriple()).isSPIR()) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just noticed, can you please change this check to
if (Triple(M.getTargetTriple()).isSPIROrSPIRV()) {
We want to use the SPIR-V backend soon and that uses the SPIRV triple. Follow-up PR is fine. Thanks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ESIMD kernel doesn't support noinline functions, so we can't support sanitizer for it now.
We can't check if the kernel is ESIMD kernel at Unified Runtime, so we have to disable ASan completely when it found ESIMD kernel in device image.