Problems with Bullet on Cell

druidu
Posts: 2
Joined: Sun Dec 13, 2009 4:09 pm

Problems with Bullet on Cell

Post by druidu »

Hello,

I've been trying to compile multi-threaded support for bullet 2.75 on the Cell architecture.
There seem to be some files missing in the 2.75 release, specifically:

Code: Select all

SpuNarrowPhaseCollisionTask/SpuGjkPairDetector.cpp
SpuNarrowPhaseCollisionTask/SpuVoronoiSimplexSolver.cpp
so when I try to compile BulletMultiThreaded I get this error:

Code: Select all

$ make -f Makefile.original spu ppu
...
spu-gcc: ./SpuNarrowPhaseCollisionTask/SpuGjkPairDetector.cpp: No such file or directory
I've looked in the SVN and I see those files are only in the 2.74 branch, not in the 2.75. Is Cell support in 2.75 incomplete? I can see there are lots of Spu* files which are in 2.74 and not in 2.75. Do you recommend I use version 2.74 version for running Bullet on Cell blades?

Also, I've read about spubullet in the Bullet Manual, but I'm not a registered PS3 developer. Is there any way to get a free PS3 developer license if I'm a student? What are the differences between bullet 2.75/2.74 and spubullet?

I want to run a complex simulation in real-time, with lots of rigid bodies and constraints. Any tips for which dispatcher/solver to use and with what parameters, to optimize for this? The simulation is the only thing that will be running (plus some communication code, probably via TCP or UDP, to send information from the world (positions, constraint values, etc) and receive actions to execute (forces to apply inside the simulation).

Here is the configuration of the server I'm using:

Code: Select all

$ cat /proc/cpuinfo
processor       : 0
cpu             : Cell Broadband Engine, altivec supported
clock           : 3200.000000MHz
revision        : 48.0 (pvr 0070 3000)

processor       : 1
cpu             : Cell Broadband Engine, altivec supported
clock           : 3200.000000MHz
revision        : 48.0 (pvr 0070 3000)

processor       : 2
cpu             : Cell Broadband Engine, altivec supported
clock           : 3200.000000MHz
revision        : 48.0 (pvr 0070 3000)

processor       : 3
cpu             : Cell Broadband Engine, altivec supported
clock           : 3200.000000MHz
revision        : 48.0 (pvr 0070 3000)

timebase        : 26664522
platform        : Cell
machine         : CHRP IBM,0793-38G
Thanks
druidu
Posts: 2
Joined: Sun Dec 13, 2009 4:09 pm

Re: Problems with Bullet on Cell

Post by druidu »

Anybody? :D

In the meantime I managed to compile bullet 2.74 on the Cell and run the CellSpuDemo, but it won't work for 2.75.
User avatar
Erwin Coumans
Site Admin
Posts: 4221
Joined: Sun Jun 26, 2005 6:43 pm
Location: California, USA

Re: Problems with Bullet on Cell

Post by Erwin Coumans »

Some of the files are now using the regular implementation. Please check the cmake project files for a hint of their replacement (for example btGjkPairDetector.cpp)

Thanks,
Erwin