Skip to content

Commit 1391baa

Browse files
committed
default disable
1 parent 237a4af commit 1391baa

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

source/loader/layers/sanitizer/asan_options.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ struct AsanOptions {
3838
uint32_t MaxQuarantineSizeMB = 0;
3939
bool DetectLocals = true;
4040
bool DetectPrivates = true;
41-
bool DetectKernelArguments = true;
41+
bool DetectKernelArguments = false;
4242

4343
private:
4444
AsanOptions(logger::Logger &logger) {

source/loader/layers/sanitizer/ur_sanddi.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@
1111
*/
1212

1313
#include "asan_interceptor.hpp"
14-
#include "asan_report.hpp"
15-
#include "asan_validator.hpp"
14+
#include "asan_options.hpp"
1615
#include "stacktrace.hpp"
1716
#include "ur_sanitizer_layer.hpp"
1817
#include "ur_sanitizer_utils.hpp"
@@ -1300,7 +1299,7 @@ __urdlllocal ur_result_t UR_APICALL urKernelSetArgPointer(
13001299
"==== urKernelSetArgPointer (argIndex={}, pArgValue={})", argIndex,
13011300
pArgValue);
13021301

1303-
{
1302+
if (Options(getContext()->logger).DetectKernelArguments) {
13041303
auto KI = getContext()->interceptor->getKernelInfo(hKernel);
13051304
std::scoped_lock<ur_shared_mutex> Guard(KI->Mutex);
13061305
KI->PointerArgs[argIndex] = {pArgValue, GetCurrentBacktrace()};

0 commit comments

Comments
 (0)