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.
1 parent 38a575b commit 27173c1Copy full SHA for 27173c1
source/loader/layers/sanitizer/asan_interceptor.cpp
@@ -709,7 +709,10 @@ 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;
715
+ Debug = Options(logger).Debug ? 1 : 0;
716
EnqueueWriteGlobal(kSPIR_AsanDebug, &Debug, sizeof(Debug));
717
718
// Write shadow memory offset for global memory
0 commit comments