File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -228,12 +228,17 @@ vector_class<plugin> initialize() {
228
228
continue ;
229
229
}
230
230
backend *BE = SYCLConfig<SYCL_BE>::get ();
231
- if (!BE || (*BE == backend::opencl &&
232
- PluginNames[I].first .find (" opencl" ) != std::string::npos)) {
231
+ // Use OpenCL as the default interoperability plugin.
232
+ // This will go away when we make backend interoperability selection
233
+ // explicit in SYCL-2020.
234
+ backend InteropBE = BE ? *BE : backend::opencl;
235
+
236
+ if (InteropBE == backend::opencl &&
237
+ PluginNames[I].first .find (" opencl" ) != std::string::npos) {
233
238
// Use the OpenCL plugin as the GlobalPlugin
234
239
GlobalPlugin =
235
240
std::make_shared<plugin>(PluginInformation, backend::opencl);
236
- } else if (*BE == backend::cuda &&
241
+ } else if (InteropBE == backend::cuda &&
237
242
PluginNames[I].first .find (" cuda" ) != std::string::npos) {
238
243
// Use the CUDA plugin as the GlobalPlugin
239
244
GlobalPlugin = std::make_shared<plugin>(PluginInformation, backend::cuda);
You can’t perform that action at this time.
0 commit comments