Skip to content

Commit c552e6d

Browse files
RossBruntonKornevNikita
authored andcommitted
[UR] Don't set codeLocationCallback/ASAN layer twice (#16303)
This code seems to be redundantly duplicated.
1 parent 00a7ff6 commit c552e6d

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

sycl/source/detail/ur.cpp

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -181,17 +181,6 @@ static void initializeAdapters(std::vector<AdapterPtr> &Adapters,
181181
break;
182182
}
183183

184-
loaderConfigSetCodeLocationCallback(LoaderConfig, codeLocationCallback,
185-
nullptr);
186-
187-
if (ProgramManager::getInstance().kernelUsesAsan()) {
188-
if (loaderConfigEnableLayer(LoaderConfig, "UR_LAYER_ASAN")) {
189-
loaderConfigRelease(LoaderConfig);
190-
std::cerr << "Failed to enable ASAN layer\n";
191-
return;
192-
}
193-
}
194-
195184
ur_device_init_flags_t device_flags = 0;
196185
CHECK_UR_SUCCESS(loaderInit(device_flags, LoaderConfig));
197186

0 commit comments

Comments
 (0)