IBM SDK patches

emgruett
Posts: 3
Joined: Thu Jul 31, 2008 1:42 pm
Location: [Boeblingen | Sindelfingen | Esslingen], Germany

IBM SDK patches

Post by emgruett »

Hi,

I created a new toplevel makefile, an convenient way to compile Bullet with ibmsdk support. See "bullet_toplevel_ibmsdk_Makefile.patch.zip".

Then I checked the src folder and updated all ibmsdk Makefiles. So, see "src_ibmsdk_Makefiles.zip" containing patches for that:
- Makefile_src_ibmsdk
- Makefile_collision
- Makefile_dynamics
- Makefile_linearmath

Furthermore, I wrote a new makefiles for Bullet multithreading cell support based on ibmsdk makefiles. I placed them in ibmsdk folder, and created one for PPU and one for SPU.

Because of too big codesize problem for SPU with current source files, I commented 'SpuEpaPenetrationDepthSolver' in Extras\BulletMultiThreaded\SpuNarrowPhaseCollisionTask\SpuGatheringCollisionTask.cpp out as you Erwin mentioned, and left also 'SpuGjkEpa2' from spuCollision.elf out. So now the spuCollision.elf is 250KB big and the Demos are running without problems.

See "BulletMultiThreaded.zip" for new Makefiles and too big codesize for SPU workaround.

What do you think about these patches?

Thanks,

Emil
You do not have the required permissions to view the files attached to this post.
User avatar
John McCutchan
Posts: 133
Joined: Wed Jul 27, 2005 1:05 pm
Location: Berkeley, CA

Re: IBM SDK patches

Post by John McCutchan »

Hi Emil,

Since these Makefiles are only for the IBM Cell SDK, could you namespace these Makefiles ?

Something like Makefile-IBM or Makefile-CellLinux ie every Makefile ends with -IBM (or -CellLinux)

Thanks,
John
emgruett
Posts: 3
Joined: Thu Jul 31, 2008 1:42 pm
Location: [Boeblingen | Sindelfingen | Esslingen], Germany

Re: IBM SDK patches

Post by emgruett »

Hi John,

I already created subfolders 'ibmsdk' which contains ibmsdk relevant Makefiles. Is this enough or should I namespace these too?

At the beginning of my work with Bullet, I compiled Bullet on my working machine for x86 arch using CMake. After I saw that CMake overwrites Makefiles, I put ibmsdk relevant Makefiles into subfolders to seperate ibm cell from others. ;-)

Thanks,
Emil
User avatar
John McCutchan
Posts: 133
Joined: Wed Jul 27, 2005 1:05 pm
Location: Berkeley, CA

Re: IBM SDK patches

Post by John McCutchan »

Hi Emil,

That should be sufficient. I'll take a look at your patches today.

Thanks,
John
User avatar
Erwin Coumans
Site Admin
Posts: 4221
Joined: Sun Jun 26, 2005 6:43 pm
Location: California, USA

Re: IBM SDK patches

Post by Erwin Coumans »

We are working on BulletMultiThreaded, and track work on IBM SDK patches here:

http://code.google.com/p/bullet/issues/detail?id=112
User avatar
Erwin Coumans
Site Admin
Posts: 4221
Joined: Sun Jun 26, 2005 6:43 pm
Location: California, USA

Re: IBM SDK patches

Post by Erwin Coumans »

We have reverted some changes, and it was easier to simply update the old existing ibm_sdk makefiles.

Please check this topic, latest trunk should be able to build now:
http://bulletphysics.com/Bullet/phpBB3/ ... 101#p11101

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

Re: IBM SDK patches

Post by Joczhen »

Which means that there is no global ibmsdk Makefile.
To build the CellSpuDemo one has to do 3 compilation steps

1. cd src/ibmsdk
make
2. cd ../BulletMultiThreaded/
make -f Makefile.original spu ppu
3. cd ../../Demos/CellSpuDemo/ibmsdk
make


Shall we work on a Makefile which does that all in one step?

I'd volunteer to update the documentation for that in the BulletSpuOptimized.pdf