Physics Simulation Forum

 

All times are UTC




Post new topic Reply to topic  [ 1 post ] 
Author Message
PostPosted: Mon Dec 10, 2012 10:50 pm 
Offline

Joined: Mon Dec 10, 2012 10:45 pm
Posts: 2
Dear Bullet community,

We work at Vector Fabrics [1], where we develop tools to perform semi-automatic parallelization of C/C++ software and offer parallelization consultancy services. Recently we have been looking for parallelization opportunities in the Bullet Physics engine and we wanted to share and check our initial findings with you.

We have been performing our tests on a modified version of the 1000 stacks benchmark of the AppBenchmarks test. We modified it so that there are several islands with a large number of objects. The version of Bullet we use is 2.81, SVN revision 2613. Our experiments were performed on a Intel Core i5 with four cores.

We have discovered that the loop that creates and solves islands in function btSimulationIslandManager::buildAndProcessIslands is parallelizable with relatively little effort. We have parallelized this loop using OpenMP and we obtain nice speedups over the sequential version. Of course, there has to be enough work in order to exploit the parallelism. So we obtain speedups only when there are multiple islands in the simulation.

What we wanted to ask is whether parallelizing this loop was considered before. We see from an old forum post [2] that the idea of solving one island per thread is not new. Is there a reason why it is not in the source tree? Maybe having multiple islands is not a situation that occurs often in practice?

We are planning to release the patch and our experiments sometime in the near future.

Cheers,

Kristian Kolev and Alexey Rodriguez Yakushev

[1] http://www.vectorfabrics.com/
[2] viewtopic.php?f=4&t=3435 See comment by RobW which mentions that the solver calculates an island per thread.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC


Who is online

Users browsing this forum: Bing [Bot] and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group