I want to implement a nbody simulation using Cell architecture, but I have trouble storing the large body position array in SPUs local storage which is not enough for 100k bodies. I try to partition the array into equal sizes to distribute positions and also forces to SPEs.Then I've used DMA transfers to fetch these values. However in that case, I come across the problem of force calculation restricted to the partitioned size. In the original formula of the gravitional force calculation, it takes into account all of the bodies positions found in the system. So when I declare an array like
in the SPE src code, is it allocated in the LS or main memory ? Any help is appreciated.
NOTICE: developerWorks Community will be offline May 29-30, 2015 while we upgrade to the latest version of IBM Connections. For more information, read our upgrade FAQ.
This topic has been locked.
2 replies Latest Post - 2011-03-21T21:38:03Z by sergechokki
Pinned topic SPU Local storage
Answered question This question has been answered.
Unanswered question This question has not been answered yet.
Updated on 2011-03-21T21:38:03Z at 2011-03-21T21:38:03Z by sergechokki