CellSpuDemo with libspe2 breakages

Joczhen
Posts: 17
Joined: Thu Dec 20, 2007 3:17 pm

CellSpuDemo with libspe2 breakages

Post by Joczhen »

I'm about to integrate the benchmarks into the CellSpuDemo.
I stumbled over various problems on my way to achieve this goal.

Firstly the latest version doesn't compile anymore when using the ibmsdk Makefiles. I'm using svn rev. 1539

make -C src/ibmsdk && make -C src/BulletMultiThreaded/ -f Makefile.original spu ppu && make -C Demos/CellSpuDemo/ibmsdk/
(I'll propose a better way of building Bullet with ibmsdk soon)

1. btVector3.get128 isn't defined anymore
Patch proposal to fix this problem: http://code.google.com/p/bullet/issues/detail?id=148

2. undefined references when linking the CellSpuDemo
Patch proposal to fix this problem: http://code.google.com/p/bullet/issues/detail?id=149

3. undefined reference to gTotalContactPoints
I used this opportunity to rename BasicDemo2 to CellSpuDemo to be more consistent.
http://code.google.com/p/bullet/issues/detail?id=150

4. I'm ending up with the following error after executing the CellSpuDemo binary:
XDR Address not aligned: wrong Quadword alignment of LS and EA: GET ./SpuNarrowPhaseCollisionTask/SpuGatheringCollisionTask.cpp:947 from: 0x8, to: 0x2f070 - 736 bytes
Bus error

The problem is that the XDR address from where the data should be fetched is a) unaligned and more importantly b) not really the place where the data should be.
I did some initial debugging but haven't found the problem so far. I'll update the following issue tracker as soon as I have a solution: http://code.google.com/p/bullet/issues/detail?id=151
Joczhen
Posts: 17
Joined: Thu Dec 20, 2007 3:17 pm

Re: CellSpuDemo with libspe2 breakages

Post by Joczhen »

OK, these issues are fixed now and everything works with svn rev. 1540.
Thanks Erwin! 8)

But since rev. 1545 it breaks again.
The ppc/ppc64 architecture doesn't have SSE2 and thus the emmintrin.h gcc include file cannot be found.

Do you want to put a #ifdef anround this include or do you want to follow a different approach?
User avatar
Erwin Coumans
Site Admin
Posts: 4221
Joined: Sun Jun 26, 2005 6:43 pm
Location: California, USA

Re: CellSpuDemo with libspe2 breakages

Post by Erwin Coumans »

It has been fixed, thanks for the report:
http://code.google.com/p/bullet/source/detail?r=1546

Hope this helps,
Erwin
Joczhen
Posts: 17
Joined: Thu Dec 20, 2007 3:17 pm

Re: CellSpuDemo with libspe2 breakages

Post by Joczhen »

Thanks for the quick fix.
Bullet compiles smoothly now :-)