We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9b20964 + 279f580 commit 907f154Copy full SHA for 907f154
source/loader/layers/sanitizer/asan_interceptor.cpp
@@ -709,7 +709,9 @@ ur_result_t SanitizerInterceptor::prepareLaunch(
709
710
// Write debug
711
// We use "uint64_t" here because EnqueueWriteGlobal will fail when it's "uint32_t"
712
- uint64_t Debug = Options(logger).Debug ? 1 : 0;
+ // Because EnqueueWriteGlobal is a async write, so
713
+ // we need to extend its lifetime
714
+ static uint64_t Debug = Options(logger).Debug ? 1 : 0;
715
EnqueueWriteGlobal(kSPIR_AsanDebug, &Debug, sizeof(Debug));
716
717
// Write shadow memory offset for global memory
0 commit comments