File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -387,12 +387,15 @@ static void initializePlugins(std::vector<plugin> &Plugins) {
387
387
std::cerr << " SYCL_PI_TRACE[all]: "
388
388
<< " No Plugins Found." << std::endl;
389
389
390
+ const std::string LibSYCLDir =
391
+ sycl::detail::OSUtil::getCurrentDSODir () + sycl::detail::OSUtil::DirSep;
392
+
390
393
for (unsigned int I = 0 ; I < PluginNames.size (); I++) {
391
394
std::shared_ptr<PiPlugin> PluginInformation = std::make_shared<PiPlugin>(
392
395
PiPlugin{_PI_H_VERSION_STRING, _PI_H_VERSION_STRING,
393
396
/* Targets=*/ nullptr , /* FunctionPointers=*/ {}});
394
397
395
- void *Library = loadPlugin (PluginNames[I].first );
398
+ void *Library = loadPlugin (LibSYCLDir + PluginNames[I].first );
396
399
397
400
if (!Library) {
398
401
if (trace (PI_TRACE_ALL)) {
Original file line number Diff line number Diff line change 8
8
using namespace sycl ;
9
9
10
10
int main () {
11
- // CHECK: {{(SYCL_PI_TRACE\[-1\]: dlopen\(libpi_cuda.so\) failed with)|(SYCL_PI_TRACE\[basic\]: Plugin found and successfully loaded: libpi_cuda.so)}}
12
- // CHECK: {{(SYCL_PI_TRACE\[-1\]: dlopen\(libpi_hip.so\) failed with)|(SYCL_PI_TRACE\[basic\]: Plugin found and successfully loaded: libpi_hip.so)}}
13
- // CHECK: {{(SYCL_PI_TRACE\[-1\]: dlopen\(libpi_esimd_emulator.so\) failed with)|(SYCL_PI_TRACE\[basic\]: Plugin found and successfully loaded: libpi_esimd_emulator.so)}}
11
+ // CHECK: {{(SYCL_PI_TRACE\[-1\]: dlopen\(.*/ libpi_cuda.so\) failed with)|(SYCL_PI_TRACE\[basic\]: Plugin found and successfully loaded: libpi_cuda.so)}}
12
+ // CHECK: {{(SYCL_PI_TRACE\[-1\]: dlopen\(.*/ libpi_hip.so\) failed with)|(SYCL_PI_TRACE\[basic\]: Plugin found and successfully loaded: libpi_hip.so)}}
13
+ // CHECK: {{(SYCL_PI_TRACE\[-1\]: dlopen\(.*/ libpi_esimd_emulator.so\) failed with)|(SYCL_PI_TRACE\[basic\]: Plugin found and successfully loaded: libpi_esimd_emulator.so)}}
14
14
queue q;
15
15
q.submit ([&](handler &cgh) {});
16
16
}
You can’t perform that action at this time.
0 commit comments