Skip to content

Commit

Permalink
Add RTLD_LOCAL to dlopen call
Browse files Browse the repository at this point in the history
  • Loading branch information
aloeliger committed Feb 9, 2023
1 parent e07dc9d commit 980d1d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion emulator.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class ModelLoader {
}

HLS4MLModel* load_model() {
model_lib_ = dlopen(model_name_.c_str(), RTLD_LAZY);
model_lib_ = dlopen(model_name_.c_str(), RTLD_LAZY | RTLD_LOCAL);
if (!model_lib_) {
std::cerr << "Cannot load library: " << dlerror() << std::endl;
throw "hls4ml emulator load_model() failure!";
Expand Down

0 comments on commit 980d1d2

Please sign in to comment.