Skip to content

Commit

Permalink
[Custom Device] change the dlopen flag of custom device dylibs (Paddl…
Browse files Browse the repository at this point in the history
  • Loading branch information
BeingGod authored and iosmers committed Sep 21, 2023
1 parent fbb85d3 commit 61cda74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion paddle/fluid/platform/init.cc
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ void LoadCustomDevice(const std::string &library_dir) {
LOG(INFO) << "Try loading custom device libs from: [" << library_dir << "]";
std::vector<std::string> libs = phi::ListAllLibraries(library_dir);
for (const auto &lib_path : libs) {
auto dso_handle = dlopen(lib_path.c_str(), RTLD_NOW);
auto dso_handle = dlopen(lib_path.c_str(), RTLD_LAZY);
PADDLE_ENFORCE_NOT_NULL(
dso_handle,
platform::errors::InvalidArgument(
Expand Down

0 comments on commit 61cda74

Please sign in to comment.