cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

enot
Journeyman III

N-Body simulation on GPU

GPU performance analyzing in WebGL

My simple WebGL (OpenGL ES) simulation for N=1024,...8192

http://www.ibiblio.org/e-notes/webgl/gpu/n-toy.html

is rather fast on Radeon HD 4870 (10^9 interactions per second) but about 10 times slower than other (OpenGL, Brook, Cuda based) realizations. Is it possible to detect the bottleneck in this 10kb script? E.g. WebGL realization or too direct algorithm. I'm collecting my "WebGL and simulations on GPU" notes at

http://www.ibiblio.org/e-notes/webgl/gpu/contents.htm

0 Likes
1 Reply
enot
Journeyman III

Thanks to Lars Nyland I've got 400 Gflops on Radeon HD 4870 (20 times speedup) after replacing 4096x1 textures by 64x64 ones. It is similar to the CAL based simulations and performance may be twiced by the loop-unrolling technique. N-Body is an amazing but a little special application.

0 Likes