Skip to content
Snippets Groups Projects
Commit 7432f905 authored by Mattia Mancini's avatar Mattia Mancini
Browse files

Add also deepbind

parent 9e0661f4
No related branches found
No related tags found
1 merge request!170Draft: Add basic library load and function linking
Pipeline #108329 failed
......@@ -35,7 +35,8 @@ inline void RegisterFunction(dl_handle lib, std::function<T>& function,
class OnDemandFFTW {
public:
OnDemandFFTW() {
fftw_lib_ = dlopen("/usr/lib/x86_64-linux-gnu/libfftw3f.so.3", RTLD_LAZY);
fftw_lib_ = dlopen("/usr/lib/x86_64-linux-gnu/libfftw3f.so.3",
RTLD_LAZY | RTLD_DEEPBIND);
if (!fftw_lib_) {
std::cerr << "Cannot load fftw library: " << dlerror() << std::endl;
throw std::runtime_error("Cannot load fftw library");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment