Skip to content

Commit d68a195

Browse files
[SYCL] ocloc64.dll added to win_proxy_loader.cpp. (#8937)
The online_compiler calls `pi::loadOsPluginLibrary("ocloc64.dll")` but the proxy loader doesn't know about that DLL. Adding it. A test exists already to test this, but it has an unmet dependency and I don't think it's ever actually been run.
1 parent 85087b2 commit d68a195

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

sycl/win_proxy_loader/win_proxy_loader.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,13 +110,15 @@ std::string getCurrentDSODir() {
110110
#define __SYCL_ESIMD_EMULATOR_PLUGIN_NAME "pi_esimd_emulator.dll"
111111
#define __SYCL_HIP_PLUGIN_NAME "libpi_hip.dll"
112112
#define __SYCL_UNIFIED_RUNTIME_PLUGIN_NAME "pi_unified_runtime.dll"
113+
#define __SYCL_ONLINE_COMPILER_LIBRARY_NAME "ocloc64.dll"
113114
#else // llvm-mingw
114115
#define __SYCL_OPENCL_PLUGIN_NAME "libpi_opencl.dll"
115116
#define __SYCL_LEVEL_ZERO_PLUGIN_NAME "libpi_level_zero.dll"
116117
#define __SYCL_CUDA_PLUGIN_NAME "libpi_cuda.dll"
117118
#define __SYCL_ESIMD_EMULATOR_PLUGIN_NAME "libpi_esimd_emulator.dll"
118119
#define __SYCL_HIP_PLUGIN_NAME "libpi_hip.dll"
119120
#define __SYCL_UNIFIED_RUNTIME_PLUGIN_NAME "libpi_unified_runtime.dll"
121+
#define __SYCL_ONLINE_COMPILER_LIBRARY_NAME "ocloc64.dll"
120122
#endif
121123

122124
// ------------------------------------
@@ -168,6 +170,9 @@ void preloadLibraries() {
168170
std::string ur_path = LibSYCLDir + __SYCL_UNIFIED_RUNTIME_PLUGIN_NAME;
169171
dllMap.emplace(ur_path, LoadLibraryA(ur_path.c_str()));
170172

173+
std::string ocloc_path = __SYCL_ONLINE_COMPILER_LIBRARY_NAME;
174+
dllMap.emplace(ocloc_path, LoadLibraryA(ocloc_path.c_str()));
175+
171176
// Restore system error handling.
172177
(void)SetErrorMode(SavedMode);
173178
if (!SetDllDirectoryA(nullptr)) {

0 commit comments

Comments
 (0)