Commits

Anonymous committed 0741b02

enforce global flags when loading _athenamp

Comments (0)

Files changed (2)

 2012-01-20  Wim Lavrijsen <WLavrijsen@lbl.gov>
-        * Workaround for differences between asetup and GaudiPolicy.
+        * Workaround for differences between asetup and GaudiPolicy. Enforce global flags
+          when loading _athenamp.
 
 2012-01-19  Wim Lavrijsen <WLavrijsen@lbl.gov>
         * More improved error propagation for corner cases. Now enabled MpProcessing.

python/MpProcessing.py

+import multiprocessing, sys, types
+dlflags = sys.getdlopenflags()
+sys.setdlopenflags( 0x100 | 0x2 )    # RTLD_GLOBAL | RTLD_NOW
 import _athenamp as amp
-import multiprocessing, sys, types
+sys.setdlopenflags( dlflags )
 
 __all__ = [ 'cpu_count' ]