Hi,
I would have 2 questions:
1. I have seen that the class (and others) allows some multithreading. From my
understanding, it is based on TBB and only multithreads the tasks.
Thus it is concerned by the GIL. Is there an automatic set up like for
multithreading but for multiprocessing instead? Any advice?
2. Using pathos for multiprocessing, I am trying to dump an instance of
SensitivityAnalysis but I cannot get it to work even with dill.
For information, I am running under macOS sierra and this is OT 1.6 (maybe it
is coming from here... I am going to upgrade but it means a refactoring on my
side).
Here is the following traceback:
sobol = ot.SensitivityAnalysis(sample1, sample2, sobol_model)
_f = dill.dumps(sobol)
File
"/Users/Pamphile/.virtualenvs/jpod/lib/python2.7/site-packages/dill/dill.py",
line 243, in dumps
dump(obj, file, protocol, byref, fmode, recurse)#, strictio)
File
"/Users/Pamphile/.virtualenvs/jpod/lib/python2.7/site-packages/dill/dill.py",
line 236, in dump
pik.dump(obj)
File
"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/pickle.py",
line 224, in dump
self.save(obj)
File
"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/pickle.py",
line 306, in save
rv = reduce(self.proto)
File
"/Applications/OpenTURNS/openturns/lib/python2.7/site-packages/openturns/common.py",
line 258, in Object___getstate__
study.add('instance', self)
File
"/Applications/OpenTURNS/openturns/lib/python2.7/site-packages/openturns/common.py",
line 688, in add
return _common.Study_add(self, *args)
NotImplementedError: Wrong number or type of arguments for overloaded function
'Study_add'.
Possible C/C++ prototypes are:
OT::Study::add(OT::InterfaceObject const &)
OT::Study::add(OT::String const &,OT::InterfaceObject const &,OT::Bool)
OT::Study::add(OT::String const &,OT::InterfaceObject const &)
OT::Study::add(OT::PersistentObject const &)
OT::Study::add(OT::String const &,OT::PersistentObject const &,OT::Bool)
OT::Study::add(OT::String const &,OT::PersistentObject const &)
Thank you for your help!
Pamphile
_______________________________________________
OpenTURNS users mailing list
[email protected]
http://openturns.org/mailman/listinfo/users