Skip to content

Commit cc75bdd

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

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
@@ -176,17 +176,6 @@ static void initializeAdapters(std::vector<AdapterPtr> &Adapters,
176176
}
177177
}
178178

179-
loaderConfigSetCodeLocationCallback(LoaderConfig, codeLocationCallback,
180-
nullptr);
181-
182-
if (ProgramManager::getInstance().kernelUsesAsan()) {
183-
if (loaderConfigEnableLayer(LoaderConfig, "UR_LAYER_ASAN")) {
184-
loaderConfigRelease(LoaderConfig);
185-
std::cerr << "Failed to enable ASAN layer\n";
186-
return;
187-
}
188-
}
189-
190179
ur_device_init_flags_t device_flags = 0;
191180
CHECK_UR_SUCCESS(loaderInit(device_flags, LoaderConfig));
192181

0 commit comments

Comments
 (0)