Topic
IC4NOTICE: 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.
2 replies Latest Post - ‏2011-03-21T21:38:03Z by sergechokki
SystemAdmin
SystemAdmin
10114 Posts
ACCEPTED ANSWER

Pinned topic SPU Local storage

‏2009-05-04T02:57:55Z |
hello,
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
code
float array100000;
[/code]
in the SPE src code, is it allocated in the LS or main memory ? Any help is appreciated.
Updated on 2011-03-21T21:38:03Z at 2011-03-21T21:38:03Z by sergechokki
  • jk-
    jk-
    43 Posts
    ACCEPTED ANSWER

    Re: SPU Local storage

    ‏2009-05-04T09:59:43Z  in response to SystemAdmin
    If you declare a variable on the SPE, it will use the SPE's Local Store memory.
  • sergechokki
    sergechokki
    1 Post
    ACCEPTED ANSWER

    Re: SPU Local storage

    ‏2011-03-21T21:38:03Z  in response to SystemAdmin
    have you been able to complete the program?