Go Back   IceInSpace > Equipment > Software and Computers
Register FAQ Calendar Today's Posts Search

Reply
 
Thread Tools Rate Thread
  #1  
Old 16-12-2009, 12:52 AM
g__day's Avatar
g__day (Matthew)
Tech Guru

g__day is offline
 
Join Date: Dec 2005
Location: Sydney
Posts: 2,902
Galaxy Simulations - OpenCL / Direct Compute harnessing massive GPU capabilities

http://www.youtube.com/watch?v=r1sN1ELJfNo - 1 year ago

http://www.youtube.com/watch?v=ebCou7hnol0 - 4 months ago

Note the latest Video cards are around 4-5 times more powerful than the hardware used in these demos!

Executable http://galaxy.u-aizu.ac.jp/trac/note...0/R700demo.zip

This works a treat on my ATI 5850 video card! - a galaxy with 40,000 stars flies around beautifully.

http://galaxy.u-aizu.ac.jp/trac/note...screenshot.png

* * * * * * * * * * * * * * *

This is a pretty nifty example of a simulation of 10,000 -> 40,000 stars interacting - very fast, in real time.

Previously this sort of demonstration required either alot of time or access to a node or beowolf cluster supercomputer. But next generation graphics cores (ATI's are released, NVidia are due in late Q1 2010) reveal a massive number of powerful processors (ATIs mid range has 1440 processors, the higher end 1,600 and top of the line 3,200) and you can glue multiple graphics card together.

Up to now it was pretty challenging spreading compute bound loads between a CPU and GPU. With Windows 7 and either Direct X11's direct compute, Kronos Open platform OpenCL, ATI's Stream or NVidia's CUDA it is now possible to load balance compute loads across both the CPU and GPU highly effectively.

What this demo shows is a compute bound problem being solved on the fly; 3d gravity models are order (n squared) complexity - 30,000 stars means approximately 900,000,000 (* 18 roughly) calculations per step in any simulation. GPUs have reached over 3 teraflops performance - that's 3,000,000,000,000 floating point operations per second - an order of magnitude or two more powerful than CPUs alone.

NVidia and ATI will shortly begin to release scientific demonstrations of this software. I for one would love to run galaxy simulations as my screen saver.

Matthew

Last edited by g__day; 16-12-2009 at 09:54 AM.
Reply With Quote
  #2  
Old 16-12-2009, 10:03 AM
SkyViking's Avatar
SkyViking (Rolf)
Registered User

SkyViking is offline
 
Join Date: Aug 2009
Location: Waitakere Ranges, New Zealand
Posts: 2,260
Galaxy simulations just rock don't they
I used to develop a galaxy simulation program some years ago, just for fun. I once had my computer running day and night for a month, to complete a 1.000.000 particle simulation. There are techniques to reduce the number of required calculations, so the calculation time doesn't grow exponentially (so 30,000 stars don't require 900,000,000 force calculations), it's of course a lot more complex to implement than a brute force O n^2 algorithm.

Here are some screen shots from my program and a 400,000 particle simulation made on my old Athlon 1800+:
http://www.titirangiobservatory.com/galaxymerger.html

Note: I'm not sure the executable works properly because it has been years since I last fiddled with it.
Reply With Quote
  #3  
Old 16-12-2009, 12:49 PM
g__day's Avatar
g__day (Matthew)
Tech Guru

g__day is offline
 
Join Date: Dec 2005
Location: Sydney
Posts: 2,902
I reckon a 4 way 5890 rig could just about do a 1 million star similutation in real time.

The best algorithms use a tree forcing approach to come close to order (n log n) - think wrapping everything within a "bubble of stars" as a point source of gravity at its centre of balance to everything outside that bubble.

But its cool to see the simulation fly in real time!
Reply With Quote
Reply

Bookmarks


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +10. The time is now 11:28 AM.

Powered by vBulletin Version 3.8.7 | Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Advertisement
Bintel
Advertisement
Astrophotography Prize
Advertisement