hi, I use multithread dispatcher with pthread (not USE_LIBSPE2) on a cell blade which has two cell CPUs. It's supposed that only the two PPUs will been used not the 16 SPUs, it that ture?
I asked this because i saw the console output like this:
sizeof SpuGatherAndProcessWorkUnitInput: 16
thanks!
kun
A small question about multithread on Cell blade!
-
- Posts: 20
- Joined: Tue Nov 04, 2008 1:50 pm
-
- Site Admin
- Posts: 4221
- Joined: Sun Jun 26, 2005 6:43 pm
- Location: California, USA
Re: A small question about multithread on Cell blade!
When you use pthread, it will not use the SPUs, but PPU instead.
Why aren't you using USE_LIBSPE2 and LibSpe2Support? That is using SPUs and should be much faster.
Thanks,
Erwin
Why aren't you using USE_LIBSPE2 and LibSpe2Support? That is using SPUs and should be much faster.
Thanks,
Erwin
-
- Posts: 20
- Joined: Tue Nov 04, 2008 1:50 pm
Re: A small question about multithread on Cell blade!
thanks a lot for your replay erwin.
i tried USE_LIBSPE2 earlier, but i always got segfault in my program when i called the "malloc" or "posix_memalign" functions, it tried to debug it, the segfault came out from the functions in the file "btAlignedAllocator.cpp" and I couldn't fix it.
Right now the bottle neck of program is not the cell blade, so i thought i should solve this problem maybe later, at least the normal version works fine.
If you can give me some suggestion about using the "USE_LIBSPE2", that will be very appreciated.
cheers
kun
i tried USE_LIBSPE2 earlier, but i always got segfault in my program when i called the "malloc" or "posix_memalign" functions, it tried to debug it, the segfault came out from the functions in the file "btAlignedAllocator.cpp" and I couldn't fix it.
Right now the bottle neck of program is not the cell blade, so i thought i should solve this problem maybe later, at least the normal version works fine.
If you can give me some suggestion about using the "USE_LIBSPE2", that will be very appreciated.
cheers
kun
-
- Posts: 20
- Joined: Tue Nov 04, 2008 1:50 pm
Re: A small question about multithread on Cell blade!
hi, i found out the mistake i made in my program why segfault came out with malloc when I USE_LIBSPE2. It's a stupid compiling and configuration mistake.
now there is some other segfault, but i will working on it.
thx
kun
now there is some other segfault, but i will working on it.
thx
kun