Differences between revisions 2 and 3
Revision 2 as of 2009-03-11 15:09:32
Size: 410
Comment:
Revision 3 as of 2009-03-11 15:16:30
Size: 735
Comment:
Deletions are marked like this. Additions are marked like this.
Line 4: Line 4:
Under linux some global variables have to be defined to get the thing working because there is an incompatibility issue between the multithread library distributed with matlab (libguide.so) and the open source multithread library used by the gnu compiler (libgomp.so).   Under linux some environment variables have to be defined to get the thing working because there is an incompatibility issue between the multithread library distributed with matlab (libguide.so) and the open source multithread library used by the gnu compiler (libgomp.so). The simplest workaround is to add the folowwing lines in your .bashrc file:

{{{
export LD_PRELOAD=$LD_PRELOAD:/lib/libgcc_s.so.1
export LD_PRELOAD=$LD_PRELOAD:/usr/lib/libstdc++.so.6
export LD_PRELOAD=$LD_PRELOAD:/usr/lib/libgomp.so.1
}}}
  
The first two lines are necessary even without parallel programming.

Some of the mex files use parallel programming using [http://openmp.org/wp/ OpenMp]:

  • sparse_hessian_times_B_kronecker_C
  • simulate

Under linux some environment variables have to be defined to get the thing working because there is an incompatibility issue between the multithread library distributed with matlab (libguide.so) and the open source multithread library used by the gnu compiler (libgomp.so). The simplest workaround is to add the folowwing lines in your .bashrc file:

export LD_PRELOAD=$LD_PRELOAD:/lib/libgcc_s.so.1
export LD_PRELOAD=$LD_PRELOAD:/usr/lib/libstdc++.so.6
export LD_PRELOAD=$LD_PRELOAD:/usr/lib/libgomp.so.1

The first two lines are necessary even without parallel programming.

DynareWiki: UsingMultithreadedDlls (last edited 2013-06-19 16:06:29 by HoutanBastani)