MCPcopy Create free account
hub / github.com/arrayfire/arrayfire / DependencyModule

Method DependencyModule

src/backend/common/DependencyModule.cpp:93–110  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

91namespace common {
92
93DependencyModule::DependencyModule(const char* plugin_file_name,
94 const char** paths)
95 : handle(nullptr)
96 , logger(common::loggerFactory("platform"))
97 , version(-1, -1) {
98 // TODO(umar): Implement handling of non-standard paths
99 UNUSED(paths);
100 if (plugin_file_name) {
101 auto fileNames = libNames(plugin_file_name, "");
102 AF_TRACE("Attempting to load: {}", fileNames[0]);
103 handle = loadLibrary(fileNames[0].c_str());
104 if (handle) {
105 AF_TRACE("Found: {}", fileNames[0]);
106 } else {
107 AF_TRACE("Unable to open {}", plugin_file_name);
108 }
109 }
110}
111
112DependencyModule::DependencyModule(
113 const vector<string>& plugin_base_file_name, const vector<string>& suffixes,

Callers

nothing calls this directly

Calls 3

loggerFactoryFunction · 0.85
libNamesFunction · 0.85
loadLibraryFunction · 0.70

Tested by

no test coverage detected