Skip to content

Commit

Permalink
load only backend libs with prefix icicle_backend
Browse files Browse the repository at this point in the history
  • Loading branch information
yshekel committed Sep 2, 2024
1 parent 63680da commit 0d6bf5f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions icicle/src/runtime.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -280,8 +280,8 @@ extern "C" eIcicleError icicle_load_backend(const char* path, bool is_recursive)
// Extract the library name from the full path
std::string fileName = path.substr(path.find_last_of("/\\") + 1);

// Check if the library name contains "icicle" and if the path contains "/backend/"
if (fileName.find("icicle") == std::string::npos || path.find("/backend/") == std::string::npos) {
// Check if the library name contains "icicle_backend" to avoid loading
if (fileName.find("icicle_backend") == std::string::npos) {
ICICLE_LOG_VERBOSE << "Skipping: " << filePath << " - Not an Icicle backend library.";
return;
}
Expand Down

0 comments on commit 0d6bf5f

Please sign in to comment.