| 63 | } |
| 64 | |
| 65 | hipsycl::rt::backend *create_backend(void *plugin_handle) { |
| 66 | assert(plugin_handle); |
| 67 | |
| 68 | std::string message; |
| 69 | if (void *symbol = get_symbol_from_library( |
| 70 | plugin_handle, "hipsycl_backend_plugin_create", message)) { |
| 71 | auto create_backend_func = |
| 72 | reinterpret_cast<decltype(&hipsycl_backend_plugin_create)>(symbol); |
| 73 | |
| 74 | return create_backend_func(); |
| 75 | } else if (!message.empty()) { |
| 76 | HIPSYCL_DEBUG_WARNING << "[backend_loader] " << message << std::endl; |
| 77 | } |
| 78 | return nullptr; |
| 79 | } |
| 80 | |
| 81 | std::vector<fs::path> get_plugin_search_paths() |
| 82 | { |
no test coverage detected