multithreading - How to multi-thread Open Dynamics Engine( ODE) -
i have been trying parallelize ode (open dynamics engine) via tbb, meaning each thread having own ode environment. didn't work, guess there variable being shared tbb threads. has ever able parallelize ode using threads (pthreads or tbb threads)?
thanks
generically, may want through source code of ode variables declared @ namespace or global scope, or variables declared static
in global, namespace, class, or function scopes. mark them thread private, using syntax suitable compiler you're using - __thread
commonly supported (at least gcc, clang, , icc), not standardized. in c++11, can use thread_local
(or, in c11, _thread_local
).
Comments
Post a Comment