MCPcopy Create free account
hub / github.com/AdaptiveCpp/AdaptiveCpp / create_backend

Function create_backend

src/runtime/backend_loader.cpp:65–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63}
64
65hipsycl::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
81std::vector<fs::path> get_plugin_search_paths()
82{

Callers 1

createMethod · 0.85

Calls 2

get_symbol_from_libraryFunction · 0.85
emptyMethod · 0.45

Tested by

no test coverage detected